Is this a bug?

Brian Quinlan brian at sweetapp.com
Sat May 12 07:19:39 CEST 2001


Actually, r'c:\Windows\\' is equivalent to 'c:\\Windows\\\\', which is not
what you want. Just use 'c:\\Windows\\'

John wrote:
> This just came up in one of the mailing lists I track.  Python apparently
> requires that last '\' to be escaped, even though you're using "Raw".
>
> So myPath = r'c:\Windows\\' *should* work, though I haven't tried it.





More information about the Python-list mailing list