newbie question

Michael Hudson mwh21 at cam.ac.uk
Wed Nov 24 14:22:57 EST 1999


Markus Krutz <krutz at cg.tuwien.ac.at> writes:

> How the f*** do I create a string containing a *single* "\" ?

"\\"

You might think that doesn't work because of

>>> "\\"
'\\'

but

>>> print "\\"
\

that's-another-one-for-__str__-by-default-methinks-ly y'rs
Michael




More information about the Python-list mailing list