Re-exports§
pub use crate::cpython::object::PyTypeObject;
Non- Py_LIMITED_API
Structs§
Constants§
- PyObject_
HEAD_ INIT - Py_EQ
- Py_GE
- Py_GT
- Py_LE
- Py_LT
- Py_NE
- Py_
PRINT_ RAW - Py_
TPFLAGS_ BASETYPE - Set if the type allows subclassing
- Py_
TPFLAGS_ BASE_ EXC_ SUBCLASS - Py_
TPFLAGS_ BYTES_ SUBCLASS - Py_
TPFLAGS_ DEFAULT - Py_
TPFLAGS_ DICT_ SUBCLASS - Py_
TPFLAGS_ HAVE_ FINALIZE - Py_
TPFLAGS_ HAVE_ GC - Objects support garbage collection (see objimp.h)
- Py_
TPFLAGS_ 🔒HAVE_ STACKLESS_ EXTENSION - Py_
TPFLAGS_ HAVE_ VECTORCALL Py_3_12
, orPy_3_8
and non-Py_LIMITED_API
- Set if the type implements the vectorcall protocol (PEP 590)
- Py_
TPFLAGS_ HAVE_ VERSION_ TAG - Py_
TPFLAGS_ HEAPTYPE - Set if the type object is dynamically allocated
- Py_
TPFLAGS_ IS_ ABSTRACT - Py_
TPFLAGS_ LIST_ SUBCLASS - Py_
TPFLAGS_ LONG_ SUBCLASS - Py_
TPFLAGS_ METHOD_ DESCRIPTOR Py_3_8
- Py_
TPFLAGS_ READY - Set if the type is ‘ready’ – fully initialized
- Py_
TPFLAGS_ READYING - Set while the type is being ‘readied’, to prevent recursive ready calls
- Py_
TPFLAGS_ TUPLE_ SUBCLASS - Py_
TPFLAGS_ TYPE_ SUBCLASS - Py_
TPFLAGS_ UNICODE_ SUBCLASS - Py_
TPFLAGS_ VALID_ VERSION_ TAG
Statics§
- PyBase
Object_ ⚠Type - built-in ‘object’
- PyBool_
Type ⚠ - PyLong_
Type ⚠ - PySuper_
Type ⚠ - built-in ‘super’
- PyType_
Type ⚠ - built-in ‘type’
- _Py_
None 🔒 ⚠Struct Non- GraalPy
and not (Py_3_13
andPy_LIMITED_API
) - _Py_
NotImplemented 🔒 ⚠Struct Non- GraalPy
and not (Py_3_13
andPy_LIMITED_API
)
Functions§
- PyCallable_
Check ⚠ - PyObject_
ASCII ⚠ - PyObject_
Bytes ⚠ - PyObject_
Clear ⚠Weak Refs - PyObject_
Dir ⚠ - PyObject_
Generic ⚠GetAttr - PyObject_
Generic ⚠GetDict Not ( Py_LIMITED_API
and non-Py_3_10
) - PyObject_
Generic ⚠SetAttr - PyObject_
Generic ⚠SetDict - PyObject_
GetAttr ⚠ - PyObject_
GetAttr ⚠String - PyObject_
HasAttr ⚠ - PyObject_
HasAttr ⚠String - PyObject_
Hash ⚠ - PyObject_
Hash ⚠NotImplemented - PyObject_
IsTrue ⚠ - PyObject_
Not ⚠ - PyObject_
Repr ⚠ - PyObject_
Rich ⚠Compare - PyObject_
Rich ⚠Compare Bool - PyObject_
Self ⚠Iter - PyObject_
SetAttr ⚠ - PyObject_
SetAttr ⚠String - PyObject_
Str ⚠ - PyObject_
Type ⚠Check - PyType_
Check ⚠ - PyType_
Check ⚠Exact - PyType_
Clear ⚠Cache - PyType_
Fast ⚠Subclass - PyType_
From ⚠Spec - PyType_
From ⚠Spec With Bases - PyType_
Generic ⚠Alloc - PyType_
Generic ⚠New - PyType_
GetFlags ⚠ - PyType_
GetSlot ⚠ - PyType_
HasFeature ⚠ - PyType_
IsSubtype ⚠ - PyType_
Modified ⚠ - PyType_
Ready ⚠ - Py_
IS_ ⚠TYPE - Py_Is⚠
- Py_
IsNone ⚠ - Py_None⚠
- Py_
NotImplemented ⚠ - Py_
Repr ⚠Enter - Py_
Repr ⚠Leave - Py_SIZE⚠
- Py_TYPE⚠
Non- Py_3_14
Type Aliases§
- PyObject
ObRefcnt Non- Py_3_12
and non-Py_GIL_DISABLED
- allocfunc
- binaryfunc
- descrgetfunc
- descrsetfunc
- destructor
- freefunc
- getattrfunc
- getattrofunc
- getiterfunc
- hashfunc
- initproc
- inquiry
- iternextfunc
- lenfunc
- newfunc
- objobjargproc
- objobjproc
- reprfunc
- richcmpfunc
- setattrfunc
- setattrofunc
- ssizeargfunc
- ssizeobjargproc
- ssizessizeargfunc
- ssizessizeobjargproc
- ternaryfunc
- traverseproc
- unaryfunc
- vectorcallfunc
Py_3_8
- visitproc