[Python-ideas] allow line break at operators

Stephen J. Turnbull stephen at xemacs.org
Sat Sep 3 06:38:15 CEST 2011


Guido van Rossum writes:
 > On Fri, Sep 2, 2011 at 12:28 AM, Stephen J. Turnbull <stephen at xemacs.org> wrote:

 > > Sure, but IIRC one design principle of Python is that the keyword that
 > > denotes the syntax should be the first thing on the line,
[...]
 > That's true for *statements* (except assignments and calls).
 > 
 > > Analogously, if operators are going to denote continuation, they
 > > should come first on the line.

 > That doesn't follow.

Agreed, it's not a logical implication.  The analogy is only an
analogy, but my eyes do work that way.

My conclusion is that we shouldn't try to encourage either style,
because people "see" continuation differently.  Legislating a style
isn't going to change that, I think.






More information about the Python-ideas mailing list