split long string in two code lines

Chris Angelico rosuav at gmail.com
Mon Jun 13 18:38:06 EDT 2011


On Tue, Jun 14, 2011 at 8:33 AM, Tim Chase
<python.list at tim.thechases.com> wrote:
>  print ("this is not "
>    "such a huge line "
>    "even though it has "
>    "lots of text in it."
>    )
>
>  print (
>    "this is not "
>    "such a huge line "
>    "even though it has "
>    "lots of text in it."
>    )

I'm not seeing the difference between these two. Pointer, please? *puzzled*

Related point: Do you indent the ) to the same level as the opening
quote on each line, or do you backdent it to the level of the
statement? And, does it (either way) feel like you're writing braces
in C?

ChrisA



More information about the Python-list mailing list