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,
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
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