style question

Frank Millman frank at chagford.com
Mon Jun 26 05:34:34 EDT 2006


Frank Millman wrote:
>
> How about
>
>   message = ("This is line1. "
>                      "This is line2 "
>                      "This is line3\n")
>
> The brackets mean that the lines are automatically treated as
> continuous, without the need for the ugly '\' continuation character.
>
> The opening/closing quotes on each line mean that the strings are
> contatenated into one long string.
>
> Frank Millman

Don't know what happened there - Google seems to have messed up my
indentation.

My intention was that each of the three leading quote marks line up
vertically, but when I read it back via Google Groups, the second two
lines were pushed over to the right.

Frank




More information about the Python-list mailing list