Object Implementation Support¶
This chapter describes the functions, types, and macros used when defining new object types.
- Allocating Objects on the Heap
- Common Object Structures
- Type Objects
- Quick Reference
- PyTypeObject Definition
- PyObject Slots
- PyVarObject Slots
- PyTypeObject Slots
Py_TPFLAGS_HEAPTYPE
Py_TPFLAGS_BASETYPE
Py_TPFLAGS_READY
Py_TPFLAGS_READYING
Py_TPFLAGS_HAVE_GC
Py_TPFLAGS_DEFAULT
Py_TPFLAGS_METHOD_DESCRIPTOR
Py_TPFLAGS_LONG_SUBCLASS
Py_TPFLAGS_LIST_SUBCLASS
Py_TPFLAGS_TUPLE_SUBCLASS
Py_TPFLAGS_BYTES_SUBCLASS
Py_TPFLAGS_UNICODE_SUBCLASS
Py_TPFLAGS_DICT_SUBCLASS
Py_TPFLAGS_BASE_EXC_SUBCLASS
Py_TPFLAGS_TYPE_SUBCLASS
Py_TPFLAGS_HAVE_FINALIZE
Py_TPFLAGS_HAVE_VECTORCALL
Py_TPFLAGS_IMMUTABLETYPE
Py_TPFLAGS_DISALLOW_INSTANTIATION
Py_TPFLAGS_MAPPING
Py_TPFLAGS_SEQUENCE
- Static Types
- Heap Types
- Number Object Structures
- Mapping Object Structures
- Sequence Object Structures
- Buffer Object Structures
- Async Object Structures
- Slot Type typedefs
- Examples
- Supporting Cyclic Garbage Collection