[issue11228] raw unicode strings interpret \u and \U (but not \n, \xHH, ...)
STINNER Victor
report at bugs.python.org
Thu Feb 17 00:29:26 CET 2011
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
len(ur'\u0000') == len(u'\u0000') == 1
len(ur'\U0010FFFF') == len(u'\U0010FFFF') == 1
but
>>> len(ur'\n'), len(u'\n')
(2, 1)
>>> len(ur'\x00'), len(u'\x00')
(4, 1)
\u and \U should not be interpreted in raw Unicode strings.
----------
messages: 128701
nosy: haypo
priority: normal
severity: normal
status: open
title: raw unicode strings interpret \u and \U (but not \n, \xHH, ...)
versions: Python 2.5, Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11228>
_______________________________________
More information about the Python-bugs-list
mailing list