Perhaps one of the most important structures of the Python object system is the structure that defines a new type: the PyTypeObject structure. Type objects can be handled using any of the PyObject_...| Python documentation
Creating Heap-Allocated Types: The following functions and structs are used to create heap types.| Python documentation