[docs] [issue37813] PEP 7 line-breaking with binary operations contradicts Knuth's rule

Guido van Rossum report at bugs.python.org
Tue Aug 13 14:06:10 EDT 2019


Guido van Rossum <guido at python.org> added the comment:

PEP 8 intentionally allows users to choose whether to put the operator at the start or end of the line (as long as they're consistent within a file or project). This is to avoid a barrage of "style fixes" that are just noise.

But PEP 7 is only for CPython's own C code style, and here I don't want things to change. When it comes to readability of our code surely there are bigger fish to fry.

So I'm closing this as won't fix.

----------
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37813>
_______________________________________


More information about the docs mailing list