Re: Decorated class question

2012-01-16 Thread Ian Kelly
On Mon, Jan 16, 2012 at 8:10 AM, deathweaselx86 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,

Re: Decorated class question

2012-01-16 Thread Devin Jeanpierre
On Mon, Jan 16, 2012 at 10:10 AM, deathweaselx86 wrote: > If I decorate a class, then subclass it, does my subclass feature > whatever the decorator did to my superclass? Yes. The following two things are completely equivalent: @foo class Bar(...): ... # and class Bar(...) ... # immedi

Decorated class question

2012-01-16 Thread deathweaselx86
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? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list