backslash plague: paths containing "\a" somewhere

tim tim.vets at
Thu Nov 24 17:34:54 CET 2005

trying to work with a directory in windows, that has "\a" in the full 

this works:

 >>> c = string.replace('c:\content\ce\cw\cvd', '\\', '\\')
 >>> c

this doesn't:

 >>> c = string.replace('c:\content\a\a\avd', '\\', '\\')
 >>> c

same goes for paths containing "\b"

what's the workaround?

thank you!

More information about the Python-list mailing list