Hot to split string literals that will across two or more lines ?

Sam Pointon free.condiments at gmail.com
Thu Nov 17 22:30:14 EST 2005


> 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
whitespace.




More information about the Python-list mailing list