Q: quoting string without escapes
Steve Holden
steve at holdenweb.com
Mon Jan 31 14:09:10 EST 2005
Xah Lee wrote:
> in Python, is there a way to quote a string as to avoid escaping ' or "
> inside the string?
>
> i.e. like Perl's q or qq.
> thanks.
>
> Xah
> xah at xahlee.org
> http://xahlee.org/PageTwo_dir/more.html
>
Aren't you the guy who's telling the whole world how to write Python and
Perl? Unusual to find arrogance and humility in such close proximity.
Please stop cross-posting your ill-informed and inflammatory stuff to
c.l.py and c.l.perl.m. And now I have your attention, the answer to your
question is ...
Use triple-quoting.
followups-set'ly y'rs - steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
More information about the Python-list
mailing list