On 2021-06-22 9:25 a.m., Chris Angelico wrote: > (Oh, and another wrinkle, although a small one: Code objects would > need to keep track of their modules. Currently functions do, but code > objects don't. But that seems unlikely to introduce further > complications.) What? No you just stop emitting LOAD_ATTR and instead emit LOAD_LOCAL '__opcode_load_attr_impl__' and call it with the relevant values. > > ChrisA > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/H5QSWNLWC4HOR3JPXBNDWCSE2QFHXPS6/ > Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GLM2YWGRWHOAIQ7EJOXUNPGPY7HEEZPN/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: Extension methods in Python Soni L.
- [Python-ideas] Re: Extension methods in Python Chris Angelico
- [Python-ideas] Re: Extension methods in Python Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Soni L.
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Soni L.
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Soni L.
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Soni L.
- [Python-ideas] Re: Extension methods in Pytho... Steven D'Aprano
- [Python-ideas] Re: Extension methods in Pytho... Chris Angelico
- [Python-ideas] Re: Extension methods in Pytho... Soni L.