Newbie question

Emile van Sebille emile at fenx.com
Sun Mar 3 16:36:48 EST 2002


"Martin v. Loewis" 
> If you want to output a string in Python source format, but using
> triple quotes, I believe you have to implement this yourself.
> 

[ducking...;-)]

>>> print '''"""%s"""''' % "Spam & Eggs!"
"""Spam & Eggs!"""


-- 

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list