ending a string with a backslash
John Salerno
johnjsal at NOSPAMgmail.com
Sun Apr 30 23:19:52 EDT 2006
Edward Elliott wrote:
> John Salerno wrote:
>> Obviously the single backslash at the end of 'path' will cause a
>> problem, and escaping it with a backslash seems to fix this problem, but
>> how does escaping work when I already have it as a raw string?
>
> see the first two items here:
> http://www.ferg.org/projects/python_gotchas.html
#2 was very helpful. But if I want to use forward slashes instead, can I
just replace the backslashes with them, or must I use the
os.path.normcase() function to do it?
More information about the Python-list
mailing list