* __locallookup__ is now required for all metatypes and is therefore
defined on type.
The method was optional to make it easier to
detect if the attribute lookup cache can be used, but
the same idea can be used when "type" implements tp_locallookup.
* Added benchmarking results with PyBench.
* Title better reflects what's proposed
* Try to clarify the proposal (by changing the text and adding examples)
* Add background information on why I'm working on this proposal
* Slight semantic change: "type" does not provide a __locallookup__
method. This was done to ensure that the type attribute cache
can be kept.
This replaces a special method that was tuned for use by super()
by one that is also usable for PyObject_GenericGetAttr, and has
a cleaner interface (a method on the meta type instead of static method
on the type that didn't really know what it wanted to be).
Next up: provide prototype implementation, then post to python-dev again.