(original) (raw)
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