#23395: Clarification on PEP 8 E501: line too long (> 79 characters)
--------------------------------------+------------------------------------
Reporter: nrogers64 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by nrogers64):
Tim, the only issue I have with your proposed wording at django-developers
is this:
> Documentation, comments, and docstrings should be wrapped at 79
characters.
As stated by bmispelon, PEP 8 says:
> 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.
Also, I'm not sure if Carl is correct or not in this statement that he
made:
> With recent updates to PEP 8 to accommodate longer lines, the stated
policy is no longer an exception to PEP 8
The quote from PEP 8 shown above seems to imply that you can go up to 99
characters if you want to, but no more than that. Maybe I'm
misinterpreting that, though.
--
Ticket URL: <https://code.djangoproject.com/ticket/23395#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.612e6430c14fc7a965f161518f19bdcc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.