[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created
Adam Olsen
report at bugs.python.org
Sun Oct 4 02:09:28 CEST 2009
Adam Olsen <rhamph at gmail.com> added the comment:
Looks like the failure mode has changed here, presumably due to issue
#3672 patches. It now always fails, even after loading from a .pyc.
This is using py3k via bzr, which reports itself as 3.2a0
$ rm unicodetest.pyc
$ ./python -c 'import unicodetest'
Result: False
Len: 2 1
Repr: '\ud800\udd23' '\U00010123'
[28877 refs]
$ ./python -c 'import unicodetest'
Result: False
Len: 2 1
Repr: '\ud800\udd23' '\U00010123'
[28708 refs]
----------
versions: +Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3297>
_______________________________________
More information about the Python-bugs-list
mailing list