[issue29336] merge tuples in module

Serhiy Storchaka report at bugs.python.org
Sat Jan 21 03:48:06 EST 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue29336>
_______________________________________


More information about the Python-bugs-list mailing list