What is the difference between these two methods of defining a class in python:
class TestClass(object):
def __init__(self):
pass
and
class TestClass:
def __init__(self):
pass
I don't understand the role of (object)
in defining a class and I would appreciate your explanation of it. I did not find any answer to my question looking at the original documentation of python on classes here.