Well, I can immediately say that there is nothing special about the second method:
class my_class():
content...
. , Python , @chepner. , (, ) , () , .
, Python .
Python 2.x
:
class my_class:
content...
Python 2.2 . Python :
() : x , x.__class__ x, type(x) <type 'instance'>. , , , , .
Python 2.2 , object :
class my_class(object):
content...
, . , :
... . x - , type(x) x.__class__...
, . SO, .
Python 3.x
Python 3.x object , , .
, :
class my_class(object):
content...
:
class my_class:
content...
. , object, Python.