Ezio Melotti <ezio.melo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to