[Python-ideas] 80 character line width vs. something wider
Curt Hagenlocher
curt at hagenlocher.org
Wed May 20 06:08:02 CEST 2009
On Tue, May 19, 2009 at 8:51 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Curt Hagenlocher <curt at hagenlocher.org> writes:
>>> Unless -- hypothetically -- the architect decides that all the source
>> in the project will follow PEP-8 and you want to do an end-run around
>> the decision because you're tired of losing five minutes every few
>> hours as a result of working out how to reformat a block of code to
>> best respect the 80-char limit.
>> As pointed out elsewhere in this thread, very often the superior
> solution is not to re-*format* the same statement to fit, but to
> re-*factor* the code so it's less deeply indented or does less in each
> statement.
Yes, "refactor" is a much better word than "reformat" for what I was thinking.
--
Curt Hagenlocher
curt at hagenlocher.org
More information about the Python-ideas
mailing list