Python (e.g. 2.5) does not accept a backslash as the LAST character of a raw
string:
>>> r"\"
File "<stdin>", line 1
r"\"
^
Syntax Error: EOL while scanning single-quoted string.
path = r'\MyDir\MySubDir\' # raises same error
path = r'\MyDir\MySubDir' # no error
Isn't this a bug?
Rob Cliffe_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com