[Zope-dev] Interfaces vs ZCA concepts

Christian Theune ct at gocept.com
Wed Dec 16 02:44:47 EST 2009


On 12/15/2009 11:32 PM, Tres Seaver wrote:
> Given that the choice to use __call__ is not widely enough accepted, I
> think something like your solution makes sense.  I'm not sure that
> hooking __getattr__ is going to be performant enough, but a similar
> mechanism probably could be made fast enough.

That sounds a lot like what the SQLAlchemy guys did with their 
attrgetter (well, that was 2007 IIRC so they might be doing something 
even more fun by now. Just in case someone goes for hunting down a fast 
pluggable __getattr__-alike.


-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the Zope-Dev mailing list