Replace "looks ugly" with a hopefully more concrete explanation of why line

wrapping is bad - it disrupts the visual structure of the code.
This commit is contained in:
Skip Montanaro 2008-02-21 16:21:15 +00:00
parent 27a750c61d
commit fe647edb10
1 changed files with 5 additions and 4 deletions

View File

@ -77,10 +77,11 @@ Code lay-out
There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to have
several windows side-by-side. The default wrapping on such devices looks
ugly. Therefore, please limit all lines to a maximum of 79 characters.
For flowing long blocks of text (docstrings or comments), limiting the
length to 72 characters is recommended.
several windows side-by-side. The default wrapping on such devices
disrupts the visual structure of the code, making it more difficult to
understand. Therefore, please limit all lines to a maximum of 79
characters. For flowing long blocks of text (docstrings or comments),
limiting the length to 72 characters is recommended.
The preferred way of wrapping long lines is by using Python's implied line
continuation inside parentheses, brackets and braces. If necessary, you