[issue42007] Line continuation after Boolean operation
Raymond Hettinger
report at bugs.python.org
Sun Oct 11 23:53:20 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Sorry, I don't think this proposal has a chance.
Python doesn't require statement terminators like ";" in C. Accordingly, it needs to have a clean and consistent rule to close a statement. The rule that has worked well for us it that a statement is terminated by a newline unless there is a line continuation character, or a colon to begin a new suite, or an open expression delimiter (parenthesis, square bracket or curly brace).
Adding a special case exception to the rule might look nice but would complicate learning the language, and it would complicate the implementation as well.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42007>
_______________________________________
More information about the Python-bugs-list
mailing list