Break line across lines (not in '[]' or '{}')?

Robert Oschler no_replies at fake_email_address.invalid
Wed Jun 11 02:29:23 CEST 2003


John,

Thanks, I didn't know that it was really a tuple 'underneath'.  I have no
problem with parentheses, I didn't realize I could add them.

thx

--
Robert Oschler,
Android Technologies, Inc.
http://www.androidtechnologies.com
- The home of Off-Book! (tm)
The scene memorization tool for Actors and Actresses!

"John Roth" <johnroth at ameritech.net> wrote in message
news:vecfof6rn7t510 at news.supernews.com...
>
>
> I think the slot assignment is a garden variety tuple,
> so putting parenthesis around it should do what you want.
>
>   __slots__ = ('one', 'two',
>            'three')
>
> This is a technical detail about tuples: it's the comma that
> is significant in defining a tuple, not the parenthesis. Except in
> two cases, the parens are simply syntactic sugar. (They make
> the tuple into an expression.)
>
> If there's some reason you don't want to use parenthesis,
> use a backslash before the newline at the end of the line.
>
> John Roth
> >
> > --
> >
> >
> >
> > Robert Oschler,
> > Android Technologies, Inc.
> > http://www.androidtechnologies.com
> > - The home of Off-Book! (tm)
> > The scene memorization tool for Actors and Actresses!
> >
> >
> >
>
>






More information about the Python-list mailing list