Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Redcat Newsgroups: comp.lang.python Subject: Re: split long string in two code lines Date: 13 Jun 2011 22:21:07 GMT Lines: 15 Message-ID: <95ngqjFvocU6@mid.individual.net> References: <4df681ae$0$2694$4fafbaef@reader1.news.tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net BFNgIhnbssOOhHoa7AwEPQj8ogFzndvFfuilf/b969S7/t0+5S Cancel-Lock: sha1:knt2TVH4g3c6WB3UZpWhzCXtGXs= User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7564 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"