[Python-ideas] Fast global cacheless lookup

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Nov 23 00:33:15 CET 2007


Neil Toronto wrote:
> The hard 
> part may be distinguishing LOAD_ATTR applied to self from LOAD_ATTR 
> applied to something else.

Why would you *want* to distinguish that? A decent attribute
lookup acceleration mechanism should work for attributes of
any object, not just self. Think method calls, which are
probably even more common than accesses to globals.

--
Greg



More information about the Python-ideas mailing list