[issue5057] Unicode-width dependent optimization leads to non-portable pyc file
Ezio Melotti
report at bugs.python.org
Mon May 14 14:20:08 CEST 2012
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
This whole issue doesn't affect 3.3.
For 2.7/3.2 there are three possible options:
1) remove constant folding altogether on unicode (this is the solution adopted by PyPy);
2) scan the string up to the index looking for non-BMP chars and disable the constant folding if they are found (probably not very efficient);
3) leave the "buggy" code there (might lead to obscure failures in remote cases);
Any opinions?
----------
versions: -Python 3.1, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5057>
_______________________________________
More information about the Python-bugs-list
mailing list