[issue8821] Range check on unicode repr

Antoine Pitrou report at bugs.python.org
Sun Aug 1 22:24:02 CEST 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

Well, the patch was technically useless since, as mentioned, unicode strings are terminated by a NUL character by design.

Anyway, I now get the following error on the 2.7 branch. Perhaps it's related:

FAIL: test_ucs4 (test.test_unicode.UnicodeTest)
Traceback (most recent call last):
  File "/home/antoine/cpython/27/Lib/test/test_unicode.py", line 941, in test_ucs4
    self.assertEqual(x, y)
AssertionError: '\\udbc0\\udc00' != '\\U00100000'

nosy: +pitrou
status: closed -> open

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list