[Python-ideas] 80 character line width vs. something wider

Ben Finney ben+python at benfinney.id.au
Wed May 20 05:51:37 CEST 2009

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

And that re-factoring isn't lost time; it's saved time when later
readers try to understand the code.

 \            “There was a point to this story, but it has temporarily |
  `\                    escaped the chronicler's mind.” —Douglas Adams |
_o__)                                                                  |
Ben Finney

More information about the Python-ideas mailing list