Raw string question

Emile van Sebille emile at fenx.com
Tue Feb 27 11:20:42 EST 2001


It can, you just need to escape it if it's the last
character:

a=r"c:\path\\"


--

Emile van Sebille
emile at fenx.com
-------------------


"Larry Bates" <lbates at syscon-computers.com> wrote in message
news:3a9bc4f5$1 at news1.dbtech.net...
> Why can't a raw string end with a backslash (\)?
>
> example
>
> a=r"c:\path\"
>
> doesn't work
>
> a=r"c:\path"
>
> works fine
>
> Thanks, Larry
>
>
> BTW - I'm using ActiveState PythonWin (if makes any
difference).
>
>
>
>





More information about the Python-list mailing list