In Python 2, classes should explicitly be defined as subclasses of object. In Python 3, this will be the default.
>>> class A(object):
pass
>>> class B():
pass
>>> type(B)
<type 'classobj'>
>>> type(A)
<type 'type'>
I use Python 2.7 and as I know in 2.7 class
inherits from object
.