New submission from STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11228> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com