Python interpreter is showing NameError on using Object.
>>> class test(Object): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Object' is not defined
Python version is 2.7.3.
I haven’t been able to remove this error. Am I missing something here?
objectmust be lower-case. TryIn Python 3.x, you can also just leave it out:
(In 2.x, you should not do that until you are ready to face the monstrosity of classic classes)