Serhiy Storchaka added the comment: See the patch in issue30416. I'm not sure these checks should be added to the peephole optimizer, but this isn't very difficult.
---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21074> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com