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 -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://firstname.lastname@example.org/message/H5QSWN... Code of Conduct: http://python.org/psf/codeofconduct/