I came across the following code snippet while reading some code in Python:
class Base(object):
def __init__(self):
print "Base created"
What is this object
that the above mentioned class is inheriting from? Now, I do understand that this is a 'new style' object defined from Python 2.2. However, I'm not sure I understand what exactly this object
is. I have seen other classes in Python too inheriting from object
.
Is this a class defined in Python?