abcd wrote: > When do I need to use a trailing slash to separate code over multiple > lines. > > For example: > > x = "hello world, this is my multiline " + \ > "string!!!!"
Yes.
>
> x = {'name' : \
> 'bob'}
No.
You don't need trailing slashes whenever there's a pair of {}, [] or ()
wrapping things.
I never use trailing slashes -- I just wrap the expression in parentheses.
STeVe
--
http://mail.python.org/mailman/listinfo/python-list
