[issue12252] '\u' in unicode raw string raise an syntax error

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jun 3 12:11:04 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Even in "raw" unicode strings, \u is processed as an escape sequence; see the very last paragraph of
http://docs.python.org/reference/lexical_analysis.html#string-literals

Yes, this can be surprising, and was changed with Python 3.
Python 2 versions can't be changed for compatibility reasons.

----------
nosy: +amaury.forgeotdarc
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12252>
_______________________________________


More information about the Python-bugs-list mailing list