Skip to content

Instantly share code, notes, and snippets.

@achiang
Created September 30, 2015 22:03
Show Gist options
  • Save achiang/b9914519119538b74bc8 to your computer and use it in GitHub Desktop.
Save achiang/b9914519119538b74bc8 to your computer and use it in GitHub Desktop.
The default wrapping in most tools disrupts the visual structure of the code, making it more difficult to
understand. The limits are chosen to avoid wrapping in editors with the window width set to 80, even if the tool
places a marker glyph in the final column when wrapping lines. Some web based tools may not offer dynamic line
wrapping at all.
Some teams strongly prefer a longer line length. 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 from 80 to 100 characters
(effectively increasing the maximum length to 99 characters), 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment