Re-exports§
pub use crate::cpython::object::PyTypeObject;Non- Py_LIMITED_API
Structs§
- PyObject
- PyObject
ObFlags AndRefcnt 64-bit and Py_3_14and non-Py_GIL_DISABLEDand little-endian - This struct is anonymous in CPython, so the name was given by PyO3 because Rust structs need a name.
- PyType_
Slot - PyType_
Spec - PyVar
Object
Enums§
- PySend
Result Py_3_10
Constants§
- PyObject_
HEAD_ INIT - Py_
CONSTANT_ ELLIPSIS Py_3_13 - Py_
CONSTANT_ EMPTY_ BYTES Py_3_13 - Py_
CONSTANT_ EMPTY_ STR Py_3_13 - Py_
CONSTANT_ EMPTY_ TUPLE Py_3_13 - Py_
CONSTANT_ FALSE Py_3_13 - Py_
CONSTANT_ NONE Py_3_13 - Py_
CONSTANT_ NOT_ IMPLEMENTED Py_3_13 - Py_
CONSTANT_ ONE Py_3_13 - Py_
CONSTANT_ TRUE Py_3_13 - Py_
CONSTANT_ ZERO Py_3_13 - 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_ DISALLOW_ INSTANTIATION Py_3_10 - 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_12or 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_ IMMUTABLETYPE Py_3_10 - Py_
TPFLAGS_ IS_ ABSTRACT - Py_
TPFLAGS_ ITEMS_ AT_ END Py_3_12 - Py_
TPFLAGS_ LIST_ SUBCLASS - Py_
TPFLAGS_ LONG_ SUBCLASS - Py_
TPFLAGS_ MANAGED_ DICT Py_3_11and non-Py_LIMITED_API - Py_
TPFLAGS_ MANAGED_ WEAKREF Py_3_12and non-Py_LIMITED_API - Py_
TPFLAGS_ MAPPING Py_3_10and non-Py_LIMITED_API - Py_
TPFLAGS_ METHOD_ DESCRIPTOR - 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_ SEQUENCE Py_3_10and non-Py_LIMITED_API - Py_
TPFLAGS_ TUPLE_ SUBCLASS - Py_
TPFLAGS_ TYPE_ SUBCLASS - Py_
TPFLAGS_ UNICODE_ SUBCLASS - Py_
TPFLAGS_ VALID_ VERSION_ TAG - _PyObject_
MIN_ 🔒ALIGNMENT
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- GraalPyand not (Py_3_13andPy_LIMITED_API) - _Py_
NotImplemented 🔒 ⚠Struct Non- GraalPyand not (Py_3_13andPy_LIMITED_API)
Functions§
- PyCallable_
Check ⚠ - PyObject_
ASCII ⚠ - PyObject_
Bytes ⚠ - PyObject_
Clear ⚠Weak Refs - PyObject_
DelAttr ⚠Py_3_13, orPyPyand non-Py_3_11 - PyObject_
DelAttr ⚠String Py_3_13, orPyPyand non-Py_3_11 - PyObject_
Dir ⚠ - PyObject_
Generic ⚠GetAttr - PyObject_
Generic ⚠GetDict Not ( Py_LIMITED_APIand non-Py_3_10) - PyObject_
Generic ⚠SetAttr - PyObject_
Generic ⚠SetDict - PyObject_
GetAttr ⚠ - PyObject_
GetAttr ⚠String - PyObject_
GetOptional ⚠Attr Py_3_13 - PyObject_
GetOptional ⚠Attr String Py_3_13 - PyObject_
GetType ⚠Data Py_3_12 - PyObject_
HasAttr ⚠ - PyObject_
HasAttr ⚠String - PyObject_
HasAttr ⚠String With Error Py_3_13 - PyObject_
HasAttr ⚠With Error Py_3_13 - 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_
Freeze ⚠Py_3_14 - PyType_
From ⚠Metaclass Py_3_12 - PyType_
From ⚠Module AndSpec Py_3_10, orPy_3_9and non-Py_LIMITED_API - PyType_
From ⚠Spec - PyType_
From ⚠Spec With Bases - PyType_
Generic ⚠Alloc - PyType_
Generic ⚠New - PyType_
GetFlags ⚠ - PyType_
GetFully ⚠Qualified Name Py_3_13 - PyType_
GetModule ⚠Py_3_10, orPy_3_9and non-Py_LIMITED_API - PyType_
GetModule ⚠ByDef Py_3_13, orPy_3_11and non-Py_LIMITED_API - PyType_
GetModule ⚠Name Py_3_13 - PyType_
GetModule ⚠State Py_3_10, orPy_3_9and non-Py_LIMITED_API - PyType_
GetName ⚠Py_3_11 - PyType_
GetQual ⚠Name Py_3_11 - PyType_
GetSlot ⚠ - PyType_
GetType ⚠Data Size Py_3_12 - PyType_
HasFeature ⚠ - PyType_
IsSubtype ⚠ - PyType_
Modified ⚠ - PyType_
Ready ⚠ - Py_
GetConstant ⚠Py_3_13 - Py_
GetConstant ⚠Borrowed Py_3_13 - Py_
IS_ ⚠TYPE Not ( Py_LIMITED_APIandPy_3_15) - Py_Is⚠
- Py_
IsNone ⚠ - Py_None⚠
- Py_
NotImplemented ⚠ - Py_
Repr ⚠Enter - Py_
Repr ⚠Leave - Py_SIZE⚠
- Py_TYPE⚠
Type Aliases§
- 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
- visitproc
Unions§
- PyObject
ObRefcnt Py_3_12and non-Py_GIL_DISABLED - This union is anonymous in CPython, so the name was given by PyO3 because Rust union need a name.