Class definition in Python

Python 3.x:

1
class NewClass(object):

new-style class

1
class NewClass:

new-style class implicitly inherits from object

Python 2.x:

1
class NewClass(object):

new-style class

1
class NewClass:

old-style class(quite old, don’t use)

reference page:
Stack Overflow Answer
Python Doc Discussion