Are line continuations needed?
Heather Coppersmith
me at privacy.net
Wed Apr 7 19:03:16 EDT 2004
On Wed, 07 Apr 2004 14:05:29 GMT,
wallacethinmintr at eircom.net (Russell Wallace) wrote:
> Python lets you continue a single logical line across more than
> one physical line, either by putting a \ at the end or letting
> it happen automatically with an incomplete infix operator.
> I'm wondering how often is this feature needed? Would there be
> any problems if it weren't part of the language?
Completely contrived:
if a == b or b == c or c == d or d == e or e == f or f == g ....
No, I can't imagine this sort of thing actually coming up, and
yes, it's "fixable" with some extra parenthesese:
if (a == b or b == c or c == d) or (d == e or e == f
or f == g ....
Regards,
Heather
--
Heather Coppersmith
That's not right; that's not even wrong. -- Wolfgang Pauli
More information about the Python-list
mailing list