On 17/03/21 2:54 am, Marvin van Aalst wrote:
it should in principle be possible to transform the code from |Class.method|to |method(class:type)|, *before compilation*essentially allowing the same optimizations.
I don't think this transformation would help with anything. If the static analysis can work out what class of object a name refers to, and what methods and attributes it has, it can generate code that is just as efficient. -- Greg _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/ZEWMGYXCXXRMXRJJ32TQP3U5V2OLMRGX/ Code of Conduct: http://python.org/psf/codeofconduct/
