_typeobject Struct Reference

#include <object.h>

Public Attributes

PyObject_VAR_HEAD const char * tp_name
 
Py_ssize_t tp_basicsize
 
Py_ssize_t tp_itemsize
 
destructor tp_dealloc
 
Py_ssize_t tp_vectorcall_offset
 
getattrfunc tp_getattr
 
setattrfunc tp_setattr
 
PyAsyncMethodstp_as_async
 
reprfunc tp_repr
 
PyNumberMethodstp_as_number
 
PySequenceMethodstp_as_sequence
 
PyMappingMethodstp_as_mapping
 
hashfunc tp_hash
 
ternaryfunc tp_call
 
reprfunc tp_str
 
getattrofunc tp_getattro
 
setattrofunc tp_setattro
 
PyBufferProcstp_as_buffer
 
unsigned long tp_flags
 
const char * tp_doc
 
traverseproc tp_traverse
 
inquiry tp_clear
 
richcmpfunc tp_richcompare
 
Py_ssize_t tp_weaklistoffset
 
getiterfunc tp_iter
 
iternextfunc tp_iternext
 
struct PyMethodDeftp_methods
 
struct PyMemberDeftp_members
 
struct PyGetSetDeftp_getset
 
struct _typeobjecttp_base
 
PyObjecttp_dict
 
descrgetfunc tp_descr_get
 
descrsetfunc tp_descr_set
 
Py_ssize_t tp_dictoffset
 
initproc tp_init
 
allocfunc tp_alloc
 
newfunc tp_new
 
freefunc tp_free
 
inquiry tp_is_gc
 
PyObjecttp_bases
 
PyObjecttp_mro
 
PyObjecttp_cache
 
PyObjecttp_subclasses
 
PyObjecttp_weaklist
 
destructor tp_del
 
unsigned int tp_version_tag
 
destructor tp_finalize
 
vectorcallfunc tp_vectorcall
 

Member Data Documentation

◆ tp_name

PyObject_VAR_HEAD const char* tp_name

◆ tp_basicsize

Py_ssize_t tp_basicsize

◆ tp_itemsize

Py_ssize_t tp_itemsize

◆ tp_dealloc

destructor tp_dealloc

◆ tp_vectorcall_offset

Py_ssize_t tp_vectorcall_offset

◆ tp_getattr

getattrfunc tp_getattr

◆ tp_setattr

setattrfunc tp_setattr

◆ tp_as_async

PyAsyncMethods* tp_as_async

◆ tp_repr

reprfunc tp_repr

◆ tp_as_number

PyNumberMethods* tp_as_number

◆ tp_as_sequence

PySequenceMethods* tp_as_sequence

◆ tp_as_mapping

PyMappingMethods* tp_as_mapping

◆ tp_hash

hashfunc tp_hash

◆ tp_call

ternaryfunc tp_call

◆ tp_str

reprfunc tp_str

◆ tp_getattro

getattrofunc tp_getattro

◆ tp_setattro

setattrofunc tp_setattro

◆ tp_as_buffer

PyBufferProcs* tp_as_buffer

◆ tp_flags

unsigned long tp_flags

◆ tp_doc

const char* tp_doc

◆ tp_traverse

traverseproc tp_traverse

◆ tp_clear

inquiry tp_clear

◆ tp_richcompare

richcmpfunc tp_richcompare

◆ tp_weaklistoffset

Py_ssize_t tp_weaklistoffset

◆ tp_iter

getiterfunc tp_iter

◆ tp_iternext

iternextfunc tp_iternext

◆ tp_methods

struct PyMethodDef* tp_methods

◆ tp_members

struct PyMemberDef* tp_members

◆ tp_getset

struct PyGetSetDef* tp_getset

◆ tp_base

struct _typeobject* tp_base

◆ tp_dict

PyObject* tp_dict

◆ tp_descr_get

descrgetfunc tp_descr_get

◆ tp_descr_set

descrsetfunc tp_descr_set

◆ tp_dictoffset

Py_ssize_t tp_dictoffset

◆ tp_init

initproc tp_init

◆ tp_alloc

allocfunc tp_alloc

◆ tp_new

newfunc tp_new

◆ tp_free

freefunc tp_free

◆ tp_is_gc

inquiry tp_is_gc

◆ tp_bases

PyObject* tp_bases

◆ tp_mro

PyObject* tp_mro

◆ tp_cache

PyObject* tp_cache

◆ tp_subclasses

PyObject* tp_subclasses

◆ tp_weaklist

PyObject* tp_weaklist

◆ tp_del

destructor tp_del

◆ tp_version_tag

unsigned int tp_version_tag

◆ tp_finalize

destructor tp_finalize

◆ tp_vectorcall

vectorcallfunc tp_vectorcall