This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Dan Rose, mark.dickinson, methane, serhiy.storchaka, tim.peters, vstinner
Date 2018-07-12.05:08:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531372136.22.0.56676864532.issue34100@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-07-12 05:08:56serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, mark.dickinson, vstinner, methane, Dan Rose
2018-07-12 05:08:56serhiy.storchakasetmessageid: <1531372136.22.0.56676864532.issue34100@psf.upfronthosting.co.za>
2018-07-12 05:08:56serhiy.storchakalinkissue34100 messages
2018-07-12 05:08:56serhiy.storchakacreate