CPython's type Implementation in C (the Metaclass)
type is the metaclass of every Python object: calling type(obj) returns the class of obj, and class Foo: ultimately calls type.__new__. In CPython the same object that represents …
type is the metaclass of every Python object: calling type(obj) returns the class of obj, and class Foo: ultimately calls type.__new__. In CPython the same object that represents …