
On Tue, Aug 10, 2021 at 5:11 PM Mark Shannon <mark@hotpy.org> wrote:
Currently, reference implementation of PEP 649 has been suspended. We need to revive it and measure performance/memory impact.
As far as I remember, the reference implementation created a function object for each methods.
No function object is created under normal circumstances. __annotations__ is a property that calls the underlying __co_annotations__ property, which lazily creates a callable.
I'll leave it to Larry to explain why __co_annotations__ isn't just a code object.
I am talking about methods. As far as I remember, function objects are created for each method to keep class namespace. Larry explained it and possible optimization. That's what I am waiting for. https://mail.python.org/archives/list/python-dev@python.org/message/2OOCEE6O... Regards, -- Inada Naoki <songofacandy@gmail.com>