Serhiy Storchaka added the comment: Following patch uses _PyCode_ConstantKey() as a key. This allows supporting integers, floats, bytes, etc.
But I think we can go further and merge constants recursively. See also issue28813. ---------- nosy: +rhettinger Added file: http://bugs.python.org/file46371/merge-constants.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29336> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com