raw strings under windows

Cecil H. Whitley cwhitley at earthlink.net
Sat Jun 14 05:04:03 CEST 2003

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.


Cecil Whitley

More information about the Python-list mailing list