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 methane
Recipients Mark.Shannon, gvanrossum, methane
Date 2021-08-31.04:39:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630384743.66.0.284721762097.issue45056@roundup.psfhosted.org>
In-reply-to
Content
I think LOAD_CONST None + RETURN_VALUE is added here. And it removed by optimize_cfg().

https://github.com/python/cpython/blob/793f55bde9b0299100c12ddb0e6949c6eb4d85e5/Python/compile.c#L7795-L7797

I don't know how easy to remove this unnecessary None.
But LOAD_COMMON_CONST idea can remove all None from co_consts.
https://github.com/iritkatriel/cpython/pull/27
History
Date User Action Args
2021-08-31 04:39:03methanesetrecipients: + methane, gvanrossum, Mark.Shannon
2021-08-31 04:39:03methanesetmessageid: <1630384743.66.0.284721762097.issue45056@roundup.psfhosted.org>
2021-08-31 04:39:03methanelinkissue45056 messages
2021-08-31 04:39:03methanecreate