On Tue, Aug 10, 2021 at 5:11 PM Mark Shannon <m...@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/2OOCEE6OMBQYEIJXEGFWIBE62VPIJHP5/ Regards, -- Inada Naoki <songofaca...@gmail.com> _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ROPYNKOG5GJIM233LEESA5AH75W7G2YI/ Code of Conduct: http://python.org/psf/codeofconduct/