Skip to content
Opensource internals
  • Posts

Metaclass

CPython's type Implementation in C (the Metaclass)

Oct 20, 2026 9 min read Jay Hubbert

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 …

PythonCpythonInternalsTypeMetaclass

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·