[Python-Dev] special method lookup: how much do we care? (original) (raw)
Benjamin Peterson benjamin at python.org
Fri May 8 20:09:56 CEST 2009
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] special method lookup: how much do we care?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
A while ago, Guido declared that all special method lookups on new-style classes bypass getattr and getattribute. This almost completely consistent now, and I've been working on patching up a few incorrect cases. I've know hit enter and exit. The compiler generates LOAD_ATTR instructions for these, so it uses the normal lookup. The only way I can see to fix this is add a new opcode which uses _PyObject_LookupSpecial, but I don't think we really care this much. Opinions?
-- Regards, Benjamin
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] special method lookup: how much do we care?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]