split long string in two code lines
Redcat
redcat at catfolks.net
Mon Jun 13 18:21:07 EDT 2011
More information about the Python-list mailing list
Mon Jun 13 18:21:07 EDT 2011
- Previous message (by thread): split long string in two code lines
- Next message (by thread): I want this to work. [[]] * n
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message (by thread): split long string in two code lines
- Next message (by thread): I want this to work. [[]] * n
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list