[Python-ideas] allow line break at operators
ron3200 at gmail.com
Sun Sep 4 17:22:32 CEST 2011
On Sat, 2011-09-03 at 13:38 +0900, Stephen J. Turnbull wrote:
> 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.
I like to start continued lines with an operator as well. I also think
it helps me keep it in my head a bit easier when I do that.
I think this is one of those areas where computers and people differ,
but it may also depend on the persons native language as to what works
better for them.
More information about the Python-list