deferred decorator

Nick Coghlan ncoghlan at
Wed Dec 8 12:44:44 CET 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.


Nick Coghlan   |   ncoghlan at   |   Brisbane, Australia

More information about the Python-list mailing list