Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
The co_consts vector is already as short as possible, except cases when tuples are created at code generation time, but this is not related to this issue (see issue33318 and issue33325). >>> def f(): ... a = (1.0, 1.0) ... b = (1.0, 1.0) ... >>> f.__code__.co_consts (None, (1.0, 1.0)) >>> f.__code__.co_consts[1][0] is f.__code__.co_consts[1][1] False ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34100> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com