deferred decorator
Nick Coghlan
ncoghlan at iinet.net.au
Wed Dec 8 06:44:44 EST 2004
Bryan wrote:
> i'm also curious if it's possible to write this recipe using the new
> class style for the Deffered class. it appears you can nolonger
> delegate all attributes including special methods to the contained
> object by using the __getattr__ or the new __getattribute__ methods.
> does anyone know how to port this recipe to the new class style?
Override __getattribute__. I don't know why you think it doesn't let you
override all attribute accesses, as that's exactly what it is for.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at email.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
More information about the Python-list
mailing list