PEP8 revised: max line lengths

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Aug 2 00:28:46 EDT 2013


On Thu, 01 Aug 2013 20:51:43 -0400, Roy Smith wrote:

> In article <mailman.93.1375386763.1251.python-list at python.org>,
>  Terry Reedy <tjreedy at udel.edu> wrote:
> 
>> Newly revised this morning:
>> http://www.python.org/dev/peps/pep-0008/#maximum-line-length summary:
>> 72 for text block (comments, triple-quoted strings) 79 for normal code
>> 99 for code that is really more readable with extra
> 
> And the people did rejoice and did feast upon the lambs and toads and
> tree-sloths and fruit-bats and orangutans and breakfast cereals.

Except on Python-Dev, where feedback on allowing longer lines is almost 
entirely negative. The consensus seems to be, if you have a line of code 
that is more than 79 characters, and less than 100 characters, and there 
is no clean way to break it over multiple lines, then it is acceptable to 
not break it.


-- 
Steven



More information about the Python-list mailing list