split long string in two code lines
Redcat
redcat at catfolks.net
Mon Jun 13 18:21:07 EDT 2011
On Mon, 13 Jun 2011 23:31:29 +0200, Tracubik wrote:
> 1 def foo():
> 2 for index in ...
> 3 for plsdoit in ...
> 4 print "this is a very long string that i'm going to/ 5
> write here, it'll be for sure longer than 80 columns"
If you're going to use the \ anyway, how about:
> 1 def foo():
> 2 for index in ...
> 3 for plsdoit in ...
> 4 print "this is a very long string that i'm going to "
> 5 + "write here, it'll be for sure longer than 80
columns"
More information about the Python-list
mailing list