Inada Naoki <songofaca...@gmail.com> added the comment:
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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45056> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com