When to derive from object?
paul.nospam at rudin.co.uk
Tue Oct 13 20:08:12 CEST 2009
Benjamin Kaplan <benjamin.kaplan at case.edu> writes:
> It's redundant. Python 3 cleaned up a lot of the warts that appeared
> in Python over the years. Old-style classes (classes that didn't
> inherit from object) were one of them. Every class in Python 3 is
> derived from object whether you specify it or not.
... it could be argued that having two ways to specify the same thing
(derivation from object explictly or implicitly) is a wart in itself :/
More information about the Python-list