Printing Strings, un-parsed by Python
Aahz Maruch
aahz at netcom.com
Sun Sep 5 02:15:57 EDT 1999
In article <37D20750.8DF17216 at home.com>,
Neil Conway <neilconway at home.com> wrote:
>
>Hello all. I am using Python for CGI, and I am printing out fairly large
>blocks of text that I would like Python to print, without worrying about
>what is inside (whether it includes quotes, slashes, backslashes,
>whatever)
Use raw triple-quoted strings. For example:
r'''
foo
\t
'''
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6 (if you want to know, do some research)
More information about the Python-list
mailing list