Reduce need of backslash
Nicolas Fleury
nid_oizo at yahoo.com_removethe_
Sat Sep 27 15:49:59 EDT 2003
Stephen Horne wrote:
> Basically, when I need to break an expression over multiple lines, the
> odds are that it already has parentheses anyway. And I wouldn't indent
> that way anyway, I'd do it as...
>
> a = ( firstitem
> + seconditem
> + ( thirditem
> * fourthitem
> )
> )
But that's indentation anyway. If the rule would be "all lines with a
superior indentation are part of the previous line", would that work?
This way it would not be necessary to add the parenthesis. I wonder if
I'm missing something...
Regards,
Nicolas
More information about the Python-list
mailing list