Reduce need of backslash

Nicolas Fleury nid_oizo at yahoo.com_remove_the_
Fri Sep 26 15:46:19 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
>        )
>     )

Didn't know about that possibility; I though it would assign a one 
element tuple.  I just read that a one-element tuple is written (x,). 
Everything's fine now, thx ;)

Nicolas





More information about the Python-list mailing list