Can I use decorators to manipulate return type or create methods?

Diez B. Roggisch deets at
Fri Oct 20 10:45:10 CEST 2006

WakeBdr schrieb:
> Diez,
> I get what that accomplishes now, but I'm having problems in my
> implementation.  I was able to write a standalone class that worked
> correctly.  However, in my code the class that I need to exhibit this
> functionality inherits from another class.  This seems to cause
> problems when I attempt to implement you solution.

You need to give a __metaclass__ to one of them, and I think they must 
be new-style-classes.


More information about the Python-list mailing list