raw strings under windows
Gerhard Häring
gh at ghaering.de
Fri Jun 13 23:38:33 EDT 2003
Cecil H. Whitley wrote:
> 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.
http://www.python.org/cgi-bin/faqw.py?query=raw+string&querytype=simple&casefold=yes&req=search
-- Gerhard
More information about the Python-list
mailing list