Threading.py Class Syntax and Super

Casey casey.mcginty at gmail.com
Wed Sep 16 06:23:08 EDT 2009


Hi,

I noticed that the many (if not all) classes in threading.py[1] all
inherit from object, yet non of the init methods call super(). I am
curious as to why this is the chosen implementation? If the benefit of
new-style classes is to support multiple inheritance, then isn't this
"broken" if the class __init__ method does not make a call to super?

[1] http://svn.python.org/view/python/trunk/Lib/threading.py?view=markup

Thanks,
- Casey



More information about the Python-list mailing list