You can leave out the "+" if you want, adjacent strings are
automatically
concatenated.

print "a string which is very loooooo" \
         "ooooong."

Perhaps this is more efficient, since the string concatenation can be
done by Python's parser rather than at runtime?

Lars Kellogg-Stedman <[EMAIL PROTECTED]>  wrote:
>
> > print "a string whcih is very very looooooooooooooooooooooooooooooooooo\
> > oooooooooooooooooooong."
>
>
> print "a string which is very loooooo" \
>         + "ooooong."
>
> -- Lars


--
Lars Kellogg-Stedman <[EMAIL PROTECTED]>
This email address will expire on 2005-11-23.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to