newbie question

Michael Hudson mwh21 at cam.ac.uk
Wed Nov 24 20:22:57 CET 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