Attribute descriptor and subclassing stuff
Methods to implement standard operations
Functions to access object as input/output buffer
Method suites for standard classes
Method suites for standard classes
Attribute descriptor and subclassing stuff
_
For allocation
_
More standard operations (here for binary compatibility)
delete references to contained objects
Methods to implement standard operations
_
Attribute descriptor and subclassing stuff
Documentation string
Flags to define presence of optional/expanded features
Low-level free-memory routine
Methods to implement standard operations
More standard operations (here for binary compatibility)
Attribute descriptor and subclassing stuff
More standard operations (here for binary compatibility)
Attribute descriptor and subclassing stuff
For PyObject_IS_GC
For allocation
Iterators
Attribute descriptor and subclassing stuff
Attribute descriptor and subclassing stuff
method resolution order
For printing, in format "<module>.<name>"
Attribute descriptor and subclassing stuff
Methods to implement standard operations
rich comparisons
Methods to implement standard operations
More standard operations (here for binary compatibility)
_
call function for all accessible objects
Type attribute cache version tag. Added in version 2.6
_
weak reference enabler
Type objects contain a string containing the type name (to help somewhat in debugging), the allocation parameters (see PyObject_New() and PyObject_NewVar()), and methods for accessing objects of the type. Methods are optional, a nil pointer meaning that particular kind of access is not available for this type. The Py_DECREF() macro uses the tp_dealloc method without checking for a nil pointer; it should always be implemented except if the implementation can guarantee that the reference count will never reach zero (e.g., for statically allocated type objects).
NB: the methods for certain type groups are now contained in separate method blocks.