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 · c...@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 _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )