[Tutor] a class query

python at bdurham.com python at bdurham.com
Mon Jun 7 18:25:38 CEST 2010

> In Python 2.x, all classes are old-style unless you directly or indirectly inherit from object. If you inherit from nothing, it is an old-style class regardless of whether you say class Name: pass or class Name(): pass. In Python 3.x, there are no old-style classes.

Thanks Steven!


More information about the Tutor mailing list