I think this aspect of raw strings is a bit ugle but it is not a bug...

The last character in a raw string cannot be a '\' because '\' is still used
to escape quotes, just like in regular strings. Unlike regular strings,
however, backslashes used to escape quotes remain in the string.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Stanislav
Fink
Sent: Friday, May 11, 2001 2:24 PM
To: [EMAIL PROTECTED]
Subject: Raw string error


Is this a bug in Python, or my misunderstanding of row string
>>> c = r'c:\'
Traceback (  File "<interactive input>", line 1
    c = r'c:\'
             ^
SyntaxError: invalid token

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to