Strings across lines

Peter Hansen peter at engcorp.com
Thu Jun 27 10:02:21 EDT 2002


Thomas Guettler wrote:
> 
> Derek Thomson wrote:
> 
> > Thomas Guettler wrote:
> 
> [cut]
> 
> > print ( 'foo ................. %s ' +
> >         'bar ................. %s '   ) % (foo, bar)
> 
> That's better than "foo" + \ "bar". Thank you!

And better yet, now that you have two adjacent strings you don't even
need to use the + ...  (but it only works because of the brackets, 
again).

-Peter



More information about the Python-list mailing list