[issue5057] Unicode-width dependent optimization leads to non-portable pyc file
Ezio Melotti
report at bugs.python.org
Thu Apr 14 14:56:37 CEST 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
Here's a new patch that checks that newconst is not NULL and that it's a unicode object.
I added a test for the case where it's NULL. I don't think it's possible to test the case when newconst is not unicode though, because unicode subclasses are not literals and don't get optimized in the first place.
----------
Added file: http://bugs.python.org/file21661/issue5057-2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5057>
_______________________________________
More information about the Python-bugs-list
mailing list