This was added in 7112960 by @gvanrossum
In its current state it reads:
For flowing long blocks of text with fewer structural restrictions (docstrings or comments), the line length should be limited to 72 characters.
...
For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the nominal line length ..., provided that comments and docstrings are still wrapped at 72 characters.
...
The Python standard library is conservative and requires limiting lines to 79 characters (and docstrings/comments to 72).
The 72 is pervasive throughout the text but doesn't seem to have any rationale behind it.
For instance, this dictates the first line be rewritten but not the second (despite being the same length)
-# this is a very long comment talking about the next line directly below this
+# this is a very long comment talking about the next line directly
+# below this
this = a + very + very + very + very + very + very + long + line + '79 chars.'
as far as I can tell the only place this would/could make a difference is when accessing and printing __doc__. Though inspect.getdoc does the correct thing (removing linebreaks, dedenting, etc.).
It seems arbitrary to me, but I might be overlooking something 😆
Ideally this issue results in:
- some text clarifying the rationale for this or
- the 72 character recommendation removed
The reason I bring this up is the current (unreleased) master of pycodestyle has added a lint rule for this bit of pep8 and imposing that will likely cause (nearly) every repository in existence to fail on this rule. PyCQA/pycodestyle#828 (comment)
This was added in 7112960 by @gvanrossum
In its current state it reads:
The 72 is pervasive throughout the text but doesn't seem to have any rationale behind it.
For instance, this dictates the first line be rewritten but not the second (despite being the same length)
as far as I can tell the only place this would/could make a difference is when accessing and printing
__doc__. Thoughinspect.getdocdoes the correct thing (removing linebreaks, dedenting, etc.).It seems arbitrary to me, but I might be overlooking something 😆
Ideally this issue results in:
The reason I bring this up is the current (unreleased) master of
pycodestylehas added a lint rule for this bit of pep8 and imposing that will likely cause (nearly) every repository in existence to fail on this rule. PyCQA/pycodestyle#828 (comment)