PyHeapTypeObject

The *real* layout of a type object when allocated on the heap

Members

Variables

as_async
PyAsyncMethods as_async;

Availability: >= 3.5

as_buffer
PyBufferProcs as_buffer;

_

as_mapping
PyMappingMethods as_mapping;

_

as_number
PyNumberMethods as_number;

_

as_sequence
PySequenceMethods as_sequence;

as_sequence comes after as_mapping, so that the mapping wins when both the mapping and the sequence define a given operator (e.g. __getitem__). see add_operators() in typeobject.c .

ht_cached_keys
void* ht_cached_keys;
Undocumented in source.
ht_name
PyObject* ht_name;

Availability: >= 2.5

ht_qualname
PyObject* ht_qualname;
Undocumented in source.
ht_slots
PyObject* ht_slots;

Availability: >= 2.5

ht_type
PyTypeObject ht_type;

Availability: >= 2.5

name
PyObject* name;

Availability: 2.4

slots
PyObject* slots;

Availability: 2.4

type
PyTypeObject type;

Availability: 2.4

Meta