On Mon, Jan 16, 2012 at 8:10 AM, deathweaselx86 <deathwea...@gmail.com> wrote: > Pardon me if this is a silly question. > > If I decorate a class, then subclass it, does my subclass feature > whatever the decorator did to my superclass?
That depends on what the decorator did. Changes made directly to the class itself, such as items added to the class dict, will be inherited. Other operations performed, such as registering the class with a framework of some sort, are not inherited and would need the decorator to be applied to the subclass as well. Cheers, Ian -- http://mail.python.org/mailman/listinfo/python-list