Synchronizing methods of a class

Diez B. Roggisch deetsNOSPAM at web.de
Tue Feb 8 08:08:41 EST 2005


> My Question:
> 
> If I decorate these function references in __class__.__dict__, am I
> doing it only for my specific instance of that class or the base class
> as well?

A class is a class - so yes, all instances are affected. You might want to
think about metaclasses for decorating.
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list