[issue11228] raw unicode strings interpret \u and \U (but not \n, \xHH, ...)
STINNER Victor
report at bugs.python.org
Thu Feb 17 00:57:02 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> Python 2.x could not be changed, for compatibility reasons.
Well, it is not a bug because it is documented!
<< When an 'r' or 'R' prefix is used in conjunction with a 'u' or 'U' prefix, then the \uXXXX and \UXXXXXXXX escape sequences are processed while all other backslashes are left in the string. >>
I agree that Python2 cannot be changed, but this behaviour is a little bit surprising :-) Let's move to Python3!
----------
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11228>
_______________________________________
More information about the Python-bugs-list
mailing list