How to do a Decorator Here?
Michele Simionato
michele.simionato at gmail.com
Wed Feb 21 00:44:53 EST 2007
On Feb 20, 9:20 pm, "Gregory Piñero" <gregpin... at gmail.com> wrote:
> Or is this not what decorators do? I'm trying to avoid subclassing if I can.
Your problem, overriding a method, is what inheritance was made for.
If you want
to know more about decorators, see Dr Mertz's last article
http://www-128.ibm.com/developerworks/linux/library/l-cpdecor.html
Michele Simionato
More information about the Python-list
mailing list