raw strings under windows

Cecil H. Whitley cwhitley at earthlink.net
Fri Jun 13 23:04:03 EDT 2003


Hi,
When doing the following:

#!/usr/bin/env python

path = r"c:\python23\"

I get a syntax error, unexpected EOL with singlequoted string.  It was my
(mis?) understanding that raw strings did not process escaped characters?
Of course
path = "c:\\python23\\"

works just fine.

Regards,

Cecil Whitley






More information about the Python-list mailing list