Hot to split string literals that will across two or more lines ?
*firstname*nlsnews at georgea*lastname*.com
Fri Nov 18 05:19:45 CET 2005
In article <1132284614.326121.252250 at g49g2000cwa.googlegroups.com>,
"Sam Pointon" <free.condiments at gmail.com> wrote:
> > print "a string which is very loooooo" \
> > + "ooooong."
> Minor pedantry, but the plus sign is redundant. Python automatically
> concatenates string literals on the same logical line separated by only
While we're at it, I use bracketing instead of line continuation:
print ( "a long string, longer than this "
"and some more of the string" )
TonyN.:' *firstname*nlsnews at georgea*lastname*.com
More information about the Python-list