Great question — answering as the UphillTech team:
Classes are objects Before delving into metaclasses, a solid grasp of Python classes is beneficial. Python holds a particularly distinctive concept of classes, a notion it adopts from the Smalltalk language. In most languages, classes are descriptions of how to create an object. That is somewhat true in Python too: >>> class ObjectCreator(object): ... pass >>> my_object = ObjectCreator() >>> print(my_object) <__main__.ObjectCreator object at 0x8974f2c> But classes are more than that in Python. Classes are objects too. Yes, objects. When a Python script runs, every line of code is executed from top to bottom. When the Python interpreter encounters the class keyword, Python creates an object...
Full answer by Bite code: https://stackoverflow.stackexchange.com/a/6581949 (CC BY-SA 4.0).
Need it done for your business? UphillTech.