multi-quoted strings for HERE documents

Michael P. Soulier msoulier at storm.ca._nospam
Mon Nov 18 21:40:41 EST 2002


On Mon, 18 Nov 2002 17:02:16 -0800, Chad Netzer <cnetzer at mail.arc.nasa.gov>
wrote:
> 
> print """\
><table>
>     <tr>
>         <td>cell contents</td>
>     </r>
></table>"""

    Cool, I thought that the backslash there would have ended up in the
output, but I suppose it removes the significance of the newline in this case. 

    Thanks, another pet peeve down. :)

    Mike

-- 
Michael P. Soulier <msoulier at storm.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html



More information about the Python-list mailing list