Is this a bug?

John Hopkins john_hopkins at bigfoot.com
Fri May 11 22:25:09 EDT 2001


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.

--
John Hopkins
john_hopkins at bigfoot.com

<costas at meezon.com> wrote in message
news:3af2b89d.338629833 at News.CIS.DFN.DE...
> The following example gives me an error in PythonWin 2.0.
>
>    myPath = r'c:\Windows\'
>
> It does not like the last BS.
>
> However
>
>    myPath = r'c:\Windows'
>
> works fine.
>
> Any ideas?
>
> Costas





More information about the Python-list mailing list