doubling slashes in a string
Max Møller Rasmussen
maxm at normik.dk
Mon Oct 9 05:15:21 EDT 2000
Well being lazy as I am I would just use one of the following forms:
print r'c:\temp\test.txt'
print 'c:/temp/test.txt'
None of that backslash nonsense to me.
--------------------------------------
From: Joshua Muskovitz [mailto:josh at open.com]
Man, I just have to say, I *love* python. I was struggling with the problem
of how to take a pathname and double all of the backslashes in it, so that
(for example)
More information about the Python-list
mailing list