Expand description
Raw FFI declarations for Python’s C API.
PyO3 can be used to write native Python modules or run Python code and modules from Rust.
This crate just provides low level bindings to the Python interpreter. It is meant for advanced users only - regular PyO3 users shouldn’t need to interact with this crate at all.
The contents of this crate are not documented here, as it would entail basically copying the documentation from CPython. Consult the Python/C API Reference Manual for up-to-date documentation.
§Safety
The functions in this crate lack individual safety documentation, but generally the following apply:
- Pointer arguments have to point to a valid Python object of the correct type, although null pointers are sometimes valid input.
- The vast majority can only be used safely while the GIL is held.
- Some functions have additional safety requirements, consult the Python/C API Reference Manual for more information.
§Feature flags
PyO3 uses feature flags to enable you to opt-in to additional functionality. For a detailed description, see the Features chapter of the guide.
§Optional feature flags
The following features customize PyO3’s behavior:
abi3
: Restricts PyO3’s API to a subset of the full Python API which is guaranteed by PEP 384 to be forward-compatible with future Python versions.extension-module
: This will tell the linker to keep the Python symbols unresolved, so that your module can also be used with statically linked Python interpreters. Use this feature when building an extension module.
§rustc
environment flags
PyO3 uses rustc
’s --cfg
flags to enable or disable code used for different Python versions.
If you want to do this for your own crate, you can do so with the pyo3-build-config
crate.
Py_3_7
,Py_3_8
,Py_3_9
,Py_3_10
,Py_3_11
,Py_3_12
,Py_3_13
: Marks code that is only enabled when compiling for a given minimum Python version.Py_LIMITED_API
: Marks code enabled when theabi3
feature flag is enabled.Py_GIL_DISABLED
: Marks code that runs only in the free-threaded build of CPython.PyPy
- Marks code enabled when compiling for PyPy.GraalPy
- Marks code enabled when compiling for GraalPy.
Additionally, you can query for the values Py_DEBUG
, Py_REF_DEBUG
,
Py_TRACE_REFS
, and COUNT_ALLOCS
from py_sys_config
to query for the
corresponding C build-time defines. For example, to conditionally define
debug code using Py_DEBUG
, you could do:
#[cfg(py_sys_config = "Py_DEBUG")]
println!("only runs if python was compiled with Py_DEBUG")
To use these attributes, add pyo3-build-config
as a build dependency in
your Cargo.toml
:
[build-dependencies]
pyo3-build-config ="0.23.5"
And then either create a new build.rs
file in the project root or modify
the existing build.rs
file to call use_pyo3_cfgs()
:
fn main() {
pyo3_build_config::use_pyo3_cfgs();
}
§Minimum supported Rust and Python versions
pyo3-ffi
supports the following Python distributions:
- CPython 3.7 or greater
- PyPy 7.3 (Python 3.9+)
- GraalPy 24.0 or greater (Python 3.10+)
§Example: Building Python Native modules
PyO3 can be used to generate a native Python module. The easiest way to try this out for the
first time is to use maturin
. maturin
is a tool for building and publishing Rust-based
Python packages with minimal configuration. The following steps set up some files for an example
Python module, install maturin
, and then show how to build and import the Python module.
First, create a new folder (let’s call it string_sum
) containing the following two files:
Cargo.toml
[lib]
name = "string_sum"
# "cdylib" is necessary to produce a shared library for Python to import from.
#
# Downstream Rust code (including code in `bin/`, `examples/`, and `tests/`) will not be able
# to `use string_sum;` unless the "rlib" or "lib" crate type is also included, e.g.:
# crate-type = ["cdylib", "rlib"]
crate-type = ["cdylib"]
[dependencies.pyo3-ffi]
version = "0.23.5"
features = ["extension-module"]
[build-dependencies]
# This is only necessary if you need to configure your build based on
# the Python version or the compile-time configuration for the interpreter.
pyo3_build_config = "0.23.5"
If you need to use conditional compilation based on Python version or how
Python was compiled, you need to add pyo3-build-config
as a
build-dependency
in your Cargo.toml
as in the example above and either
create a new build.rs
file or modify an existing one so that
pyo3_build_config::use_pyo3_cfgs()
gets called at build time:
build.rs
fn main() {
pyo3_build_config::use_pyo3_cfgs()
}
src/lib.rs
use std::os::raw::{c_char, c_long};
use std::ptr;
use pyo3_ffi::*;
static mut MODULE_DEF: PyModuleDef = PyModuleDef {
m_base: PyModuleDef_HEAD_INIT,
m_name: c_str!("string_sum").as_ptr(),
m_doc: c_str!("A Python module written in Rust.").as_ptr(),
m_size: 0,
m_methods: unsafe { METHODS as *const [PyMethodDef] as *mut PyMethodDef },
m_slots: std::ptr::null_mut(),
m_traverse: None,
m_clear: None,
m_free: None,
};
static mut METHODS: &[PyMethodDef] = &[
PyMethodDef {
ml_name: c_str!("sum_as_string").as_ptr(),
ml_meth: PyMethodDefPointer {
PyCFunctionFast: sum_as_string,
},
ml_flags: METH_FASTCALL,
ml_doc: c_str!("returns the sum of two integers as a string").as_ptr(),
},
// A zeroed PyMethodDef to mark the end of the array.
PyMethodDef::zeroed(),
];
// The module initialization function, which must be named `PyInit_<your_module>`.
#[allow(non_snake_case)]
#[no_mangle]
pub unsafe extern "C" fn PyInit_string_sum() -> *mut PyObject {
let module = PyModule_Create(ptr::addr_of_mut!(MODULE_DEF));
if module.is_null() {
return module;
}
#[cfg(Py_GIL_DISABLED)]
{
if PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED) < 0 {
Py_DECREF(module);
return std::ptr::null_mut();
}
}
module
}
/// A helper to parse function arguments
/// If we used PyO3's proc macros they'd handle all of this boilerplate for us :)
unsafe fn parse_arg_as_i32(obj: *mut PyObject, n_arg: usize) -> Option<i32> {
if PyLong_Check(obj) == 0 {
let msg = format!(
"sum_as_string expected an int for positional argument {}\0",
n_arg
);
PyErr_SetString(PyExc_TypeError, msg.as_ptr().cast::<c_char>());
return None;
}
// Let's keep the behaviour consistent on platforms where `c_long` is bigger than 32 bits.
// In particular, it is an i32 on Windows but i64 on most Linux systems
let mut overflow = 0;
let i_long: c_long = PyLong_AsLongAndOverflow(obj, &mut overflow);
#[allow(irrefutable_let_patterns)] // some platforms have c_long equal to i32
if overflow != 0 {
raise_overflowerror(obj);
None
} else if let Ok(i) = i_long.try_into() {
Some(i)
} else {
raise_overflowerror(obj);
None
}
}
unsafe fn raise_overflowerror(obj: *mut PyObject) {
let obj_repr = PyObject_Str(obj);
if !obj_repr.is_null() {
let mut size = 0;
let p = PyUnicode_AsUTF8AndSize(obj_repr, &mut size);
if !p.is_null() {
let s = std::str::from_utf8_unchecked(std::slice::from_raw_parts(
p.cast::<u8>(),
size as usize,
));
let msg = format!("cannot fit {} in 32 bits\0", s);
PyErr_SetString(PyExc_OverflowError, msg.as_ptr().cast::<c_char>());
}
Py_DECREF(obj_repr);
}
}
pub unsafe extern "C" fn sum_as_string(
_self: *mut PyObject,
args: *mut *mut PyObject,
nargs: Py_ssize_t,
) -> *mut PyObject {
if nargs != 2 {
PyErr_SetString(
PyExc_TypeError,
c_str!("sum_as_string expected 2 positional arguments").as_ptr(),
);
return std::ptr::null_mut();
}
let (first, second) = (*args, *args.add(1));
let first = match parse_arg_as_i32(first, 1) {
Some(x) => x,
None => return std::ptr::null_mut(),
};
let second = match parse_arg_as_i32(second, 2) {
Some(x) => x,
None => return std::ptr::null_mut(),
};
match first.checked_add(second) {
Some(sum) => {
let string = sum.to_string();
PyUnicode_FromStringAndSize(string.as_ptr().cast::<c_char>(), string.len() as isize)
}
None => {
PyErr_SetString(
PyExc_OverflowError,
c_str!("arguments too large to add").as_ptr(),
);
std::ptr::null_mut()
}
}
}
With those two files in place, now maturin
needs to be installed. This can be done using
Python’s package manager pip
. First, load up a new Python virtualenv
, and install maturin
into it:
$ cd string_sum
$ python -m venv .env
$ source .env/bin/activate
$ pip install maturin
Now build and execute the module:
$ maturin develop
# lots of progress output as maturin runs the compilation...
$ python
>>> import string_sum
>>> string_sum.sum_as_string(5, 20)
'25'
As well as with maturin
, it is possible to build using setuptools-rust or
manually. Both offer more flexibility than maturin
but require further
configuration.
This example stores the module definition statically and uses the PyModule_Create
function
in the CPython C API to register the module. This is the “old” style for registering modules
and has the limitation that it cannot support subinterpreters. You can also create a module
using the new multi-phase initialization API that does support subinterpreters. See the
sequential
project located in the examples
directory at the root of the pyo3-ffi
crate
for a worked example of how to this using pyo3-ffi
.
§Using Python from Rust
To embed Python into a Rust binary, you need to ensure that your Python installation contains a shared library. The following steps demonstrate how to ensure this (for Ubuntu).
To install the Python shared library on Ubuntu:
sudo apt install python3-dev
While most projects use the safe wrapper provided by pyo3,
you can take a look at the orjson
library as an example on how to use pyo3-ffi
directly.
For those well versed in C and Rust the tutorials from the CPython documentation
can be easily converted to rust as well.
Re-exports§
pub use crate::_PyWeakReference as PyWeakReference;
Non- PyPy
and non-Py_LIMITED_API
and non-GraalPy
pub use self::marshal::*;
Non- Py_LIMITED_API
Modules§
- compat
- C API Compatibility Shims
- marshal
Non- Py_LIMITED_API
- structmember
Deprecated
Macros§
- c_str
- This is a helper macro to create a
&'static CStr
.
Structs§
- PyASCII
Object Non- Py_LIMITED_API
- PyAsync
Methods Non- Py_LIMITED_API
- PyBase
Exception Object Non- Py_LIMITED_API
- PyBuffer
Procs Non- Py_LIMITED_API
- PyByte
Array Object Neither PyPy
norGraalPy
norPy_LIMITED_API
- PyBytes
Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_LIMITED_API
- PyCFunction
Object Py_3_9
and non-Py_LIMITED_API
and non-GraalPy
- PyCMethod
Object Py_3_9
and non-PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyCode
Object Neither PyPy
norGraalPy
andPy_3_8
and non-Py_3_11
and non-Py_LIMITED_API
- PyCompact
Unicode Object Non- Py_LIMITED_API
- PyCompiler
Flags Non- Py_LIMITED_API
- PyComplex
Object Non- Py_LIMITED_API
- PyConfig
Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyDate
Time_ CAPI Non- Py_LIMITED_API
- PyDate
Time_ Date Non- Py_LIMITED_API
- Structure representing a
datetime.date
- PyDate
Time_ Date Time Non- Py_LIMITED_API
- Structure representing a
datetime.datetime
. - PyDate
Time_ Delta Non- Py_LIMITED_API
- Structure representing a
datetime.timedelta
. - PyDate
Time_ Time Non- Py_LIMITED_API
- Structure representing a
datetime.time
. - PyDescr
Object Non- Py_LIMITED_API
- PyDict
Keys Object Non- PyPy
and non-Py_LIMITED_API
- PyDict
Object Non- PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyFloat
Object Non- Py_LIMITED_API
- PyFrame
Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_3_11
- PyFunction
Object Neither PyPy
norGraalPy
andPy_3_10
and non-Py_LIMITED_API
- PyFuture
Features Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_3_13
- PyGen
Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyGet
SetDef - Represents the PyGetSetDef structure.
- PyGet
SetDescr Object Non- Py_LIMITED_API
- PyHash_
Func Def Neither Py_LIMITED_API
norPyPy
norGraalPy
- PyHeap
Type Object Non- Py_LIMITED_API
- PyImport
Error Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyInterpreter
State - PyList
Object Non- Py_LIMITED_API
and non-PyPy
- PyLong
Object - PyMapping
Methods Non- Py_LIMITED_API
- PyMem
Allocator Ex Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyMember
Def - Represents the PyMemberDef structure.
- PyMember
Descr Object Non- Py_LIMITED_API
- PyMethod
Def - Represents the PyMethodDef structure.
- PyMethod
Descr Object Non- Py_LIMITED_API
- PyModule
Def - PyModule
Def_ Base - PyModule
Def_ Slot - PyNumber
Methods Non- Py_LIMITED_API
- PyOS
Error Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyObject
- PyObject
Arena Allocator Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyPre
Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PySequence
Methods Non- Py_LIMITED_API
- PySet
Object Neither Py_LIMITED_API
norPyPy
norGraalPy
- PySlice
Object Non- Py_LIMITED_API
- PyStatus
Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStop
Iteration Object Non- Py_LIMITED_API
- PyStruct
Sequence_ Desc - PyStruct
Sequence_ Field - PySyntax
Error Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PySystem
Exit Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyThread
State - PyTry
Block Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_3_11
- PyTuple
Object Non- Py_LIMITED_API
- PyType
Object Non- Py_LIMITED_API
- PyType_
Slot - PyType_
Spec - PyUnicode
Error Object Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyUnicode
Object Non- Py_LIMITED_API
- PyVar
Object - PyWide
String List Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyWrapper
Descr Object Non- Py_LIMITED_API
- Py_
buffer Non- Py_3_11
and non-Py_LIMITED_API
- Py_
complex Non- Py_LIMITED_API
- _PyDate
Time_ Base Date Time Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Structure representing a
datetime.datetime
without atzinfo
member. - _PyDate
Time_ Base Time Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Structure representing a
datetime.time
without atzinfo
member. - _PyErr_
Stack Item Non- Py_LIMITED_API
and non-PyPy
- _PyOpcache
Non- Py_LIMITED_API
- _PyWeak
Reference Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- _frozen
Non- Py_LIMITED_API
and non-PyPy
- _inittab
Non- Py_LIMITED_API
and non-PyPy
- setentry
Neither Py_LIMITED_API
norPyPy
norGraalPy
- wrapperbase
Non- Py_LIMITED_API
Enums§
- PyGIL
State_ STATE - PyMem
Allocator Domain Non- Py_LIMITED_API
- PySend
Result Py_3_10
- _PyStatus_
TYPE Py_3_8
and non-PyPy
and non-Py_LIMITED_API
Constants§
- CO_
ASYNC_ GENERATOR Non- Py_LIMITED_API
- CO_
COROUTINE Non- Py_LIMITED_API
- CO_
FUTURE_ ABSOLUTE_ IMPORT Non- Py_LIMITED_API
- CO_
FUTURE_ BARRY_ AS_ BDFL Non- Py_LIMITED_API
- CO_
FUTURE_ DIVISION Non- Py_LIMITED_API
- CO_
FUTURE_ GENERATOR_ STOP Non- Py_LIMITED_API
- CO_
FUTURE_ PRINT_ FUNCTION Non- Py_LIMITED_API
- CO_
FUTURE_ UNICODE_ LITERALS Non- Py_LIMITED_API
- CO_
FUTURE_ WITH_ STATEMENT Non- Py_LIMITED_API
- CO_
GENERATOR Non- Py_LIMITED_API
- CO_
ITERABLE_ COROUTINE Non- Py_LIMITED_API
- CO_
MAXBLOCKS Non- Py_LIMITED_API
- CO_
NESTED Non- Py_LIMITED_API
- CO_
NEWLOCALS Non- Py_LIMITED_API
- CO_
NOFREE Non- Py_LIMITED_API
- CO_
OPTIMIZED Non- Py_LIMITED_API
- CO_
VARARGS Non- Py_LIMITED_API
- CO_
VARKEYWORDS Non- Py_LIMITED_API
- FUTURE_
ABSOLUTE_ IMPORT Non- Py_LIMITED_API
- FUTURE_
BARRY_ AS_ BDFL Non- Py_LIMITED_API
- FUTURE_
DIVISION Non- Py_LIMITED_API
- FUTURE_
GENERATORS Non- Py_LIMITED_API
- FUTURE_
GENERATOR_ STOP Non- Py_LIMITED_API
- FUTURE_
NESTED_ SCOPES Non- Py_LIMITED_API
- FUTURE_
PRINT_ FUNCTION Non- Py_LIMITED_API
- FUTURE_
UNICODE_ LITERALS Non- Py_LIMITED_API
- FUTURE_
WITH_ STATEMENT Non- Py_LIMITED_API
- MAX_
CO_ EXTRA_ USERS - METH_
CLASS - METH_
COEXIST - METH_
FASTCALL Py_3_10
or non-Py_LIMITED_API
- METH_
KEYWORDS - METH_
METHOD Py_3_9
and non-Py_LIMITED_API
- METH_
NOARGS - METH_O
- METH_
STATIC - METH_
VARARGS - PYOS_
STACK_ MARGIN - PYTHON_
ABI_ VERSION - PYTHON_
API_ VERSION - PY_
BIG_ ENDIAN Little-endian - PY_
ITERSEARCH_ CONTAINS Non- Py_LIMITED_API
- PY_
ITERSEARCH_ COUNT Non- Py_LIMITED_API
- PY_
ITERSEARCH_ INDEX Non- Py_LIMITED_API
- PY_
LITTLE_ ENDIAN Little-endian - PY_
SSIZE_ T_ MAX - PY_
SSIZE_ T_ MIN - PY_
STDIOTEXTMODE - PY_
VECTORCALL_ ARGUMENTS_ OFFSET Non- Py_LIMITED_API
andPy_3_8
- PyBUF_
ANY_ CONTIGUOUS Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
CONTIG Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
CONTIG_ RO Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
C_ CONTIGUOUS Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
FORMAT Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
FULL Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
FULL_ RO Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
F_ CONTIGUOUS Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
INDIRECT Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
MAX_ NDIM Non- Py_3_11
and non-Py_LIMITED_API
- Maximum number of dimensions
- PyBUF_
ND Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
READ Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
RECORDS Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
RECORDS_ RO Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
SIMPLE Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
STRIDED Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
STRIDED_ RO Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
STRIDES Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
WRITABLE Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
WRITE Non- Py_3_11
and non-Py_LIMITED_API
- PyBUF_
WRITEABLE Non- Py_3_11
and non-Py_LIMITED_API
- PyDate
Time_ CAPSULE_ NAME Non- Py_LIMITED_API
- PyModule
Def_ HEAD_ INIT - PyObject_
HEAD_ INIT - PySet_
MINSIZE - PyTrace_
CALL Non- Py_LIMITED_API
- PyTrace_
C_ CALL Non- Py_LIMITED_API
- PyTrace_
C_ EXCEPTION Non- Py_LIMITED_API
- PyTrace_
C_ RETURN Non- Py_LIMITED_API
- PyTrace_
EXCEPTION Non- Py_LIMITED_API
- PyTrace_
LINE Non- Py_LIMITED_API
- PyTrace_
OPCODE Non- Py_LIMITED_API
- PyTrace_
RETURN Non- Py_LIMITED_API
- PyUnicode_
1BYTE_ KIND Non- Py_LIMITED_API
- PyUnicode_
2BYTE_ KIND Non- Py_LIMITED_API
- PyUnicode_
4BYTE_ KIND Non- Py_LIMITED_API
- PyUnicode_
WCHAR_ KIND Deprecated Non- Py_LIMITED_API
and non-Py_3_12
- PyWrapper
Flag_ KEYWORDS Non- Py_LIMITED_API
- Py_
AUDIT_ READ Py_3_10
- Py_
CLEANUP_ SUPPORTED - Py_
DTSF_ ADD_ DOT_ 0 - Py_
DTSF_ ALT - Py_
DTSF_ SIGN - Py_
DTST_ FINITE - Py_
DTST_ INFINITE - Py_
DTST_ NAN - Py_EQ
- Py_GE
- Py_GT
- Py_
HASH_ EXTERNAL - Py_
HASH_ FNV - Py_
HASH_ SIPHAS H24 - Py_LE
- Py_LT
- Py_NE
- Py_
PRINT_ RAW - Py_
READONLY - Py_
RELATIVE_ OFFSET - 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_ 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_ IMMUTABLETYPE Py_3_10
- Py_
TPFLAGS_ IS_ ABSTRACT - Py_
TPFLAGS_ LIST_ SUBCLASS - Py_
TPFLAGS_ LONG_ SUBCLASS - Py_
TPFLAGS_ MAPPING Py_3_10
and non-Py_LIMITED_API
- 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_ SEQUENCE Py_3_10
and non-Py_LIMITED_API
- Py_
TPFLAGS_ TUPLE_ SUBCLASS - Py_
TPFLAGS_ TYPE_ SUBCLASS - Py_
TPFLAGS_ UNICODE_ SUBCLASS - Py_
TPFLAGS_ VALID_ VERSION_ TAG - Py_
T_ BOOL - Py_
T_ BYTE - Py_
T_ CHAR - Py_
T_ DOUBLE - Py_
T_ FLOAT - Py_
T_ INT - Py_
T_ LONG - Py_
T_ LONGLONG - Py_
T_ OBJECT_ EX - Py_
T_ PYSSIZET - Py_
T_ SHORT - Py_
T_ STRING - Py_
T_ STRING_ INPLACE - Py_
T_ UBYTE - Py_
T_ UINT - Py_
T_ ULONG - Py_
T_ ULONGLONG - Py_
T_ USHORT - Py_
UNICODE_ REPLACEMENT_ CHARACTER - Py_
am_ aiter - Py_
am_ anext - Py_
am_ await - Py_
bf_ getbuffer - Py_
bf_ releasebuffer - Py_
eval_ input - Py_
file_ input - Py_
fstring_ input Py_3_9
- Py_
func_ type_ input Py_3_8
- Py_
mod_ create - Py_
mod_ exec - Py_
mp_ ass_ subscript - Py_
mp_ length - Py_
mp_ subscript - Py_
nb_ absolute - Py_
nb_ add - Py_
nb_ and - Py_
nb_ bool - Py_
nb_ divmod - Py_
nb_ float - Py_
nb_ floor_ divide - Py_
nb_ index - Py_
nb_ inplace_ add - Py_
nb_ inplace_ and - Py_
nb_ inplace_ floor_ divide - Py_
nb_ inplace_ lshift - Py_
nb_ inplace_ matrix_ multiply - Py_
nb_ inplace_ multiply - Py_
nb_ inplace_ or - Py_
nb_ inplace_ power - Py_
nb_ inplace_ remainder - Py_
nb_ inplace_ rshift - Py_
nb_ inplace_ subtract - Py_
nb_ inplace_ true_ divide - Py_
nb_ inplace_ xor - Py_
nb_ int - Py_
nb_ invert - Py_
nb_ lshift - Py_
nb_ matrix_ multiply - Py_
nb_ multiply - Py_
nb_ negative - Py_
nb_ or - Py_
nb_ positive - Py_
nb_ power - Py_
nb_ remainder - Py_
nb_ rshift - Py_
nb_ subtract - Py_
nb_ true_ divide - Py_
nb_ xor - Py_
single_ input - Py_
sq_ ass_ item - Py_
sq_ concat - Py_
sq_ contains - Py_
sq_ inplace_ concat - Py_
sq_ inplace_ repeat - Py_
sq_ item - Py_
sq_ length - Py_
sq_ repeat - Py_
tp_ alloc - Py_
tp_ base - Py_
tp_ bases - Py_
tp_ call - Py_
tp_ clear - Py_
tp_ dealloc - Py_
tp_ del - Py_
tp_ descr_ get - Py_
tp_ descr_ set - Py_
tp_ doc - Py_
tp_ finalize - Py_
tp_ free - Py_
tp_ getattr - Py_
tp_ getattro - Py_
tp_ getset - Py_
tp_ hash - Py_
tp_ init - Py_
tp_ is_ gc - Py_
tp_ iter - Py_
tp_ iternext - Py_
tp_ members - Py_
tp_ methods - Py_
tp_ new - Py_
tp_ repr - Py_
tp_ richcompare - Py_
tp_ setattr - Py_
tp_ setattro - Py_
tp_ str - Py_
tp_ traverse - SSTATE_
INTERNED_ IMMORTAL Non- Py_LIMITED_API
- SSTATE_
INTERNED_ MORTAL Non- Py_LIMITED_API
- SSTATE_
NOT_ INTERNED Non- Py_LIMITED_API
- _PyHASH_
MULTIPLIER - _Py_
T_ NONE Deprecated - _Py_
T_ OBJECT Deprecated - _Py_
WRITE_ RESTRICTED Deprecated
Statics§
- PyAsync
Gen_ ⚠Type Non- Py_LIMITED_API
- PyBase
Object_ ⚠Type - built-in ‘object’
- PyBool_
Type ⚠ - PyByte
Array ⚠Iter_ Type - PyByte
Array_ ⚠Type - PyBytes
Iter_ ⚠Type - PyBytes_
Type ⚠ - PyCFunction_
Type ⚠ - PyCMethod_
Type ⚠Py_3_9
and non-PyPy
and non-Py_LIMITED_API
- PyCall
Iter_ ⚠Type - PyCapsule_
Type ⚠ - PyClass
Method ⚠Descr_ Type - PyCode_
Type ⚠Neither PyPy
norGraalPy
and non-Py_LIMITED_API
- PyComplex_
Type ⚠ - PyContext
Token_ ⚠Type Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠Type Py_3_8
and non-Py_LIMITED_API
- PyContext_
Type ⚠Py_3_8
and non-Py_LIMITED_API
- PyCoro_
Type ⚠Non- Py_LIMITED_API
- PyDict
Items_ ⚠Type - PyDict
Iter ⚠Item_ Type - PyDict
Iter ⚠Key_ Type - PyDict
Iter ⚠Value_ Type - PyDict
Keys_ ⚠Type - PyDict
Proxy_ ⚠Type - PyDict
RevIter ⚠Item_ Type Py_3_8
- PyDict
RevIter ⚠Key_ Type Py_3_8
- PyDict
RevIter ⚠Value_ Type Py_3_8
- PyDict
Values_ ⚠Type - PyDict_
Type ⚠ - PyEllipsis_
Type ⚠ - PyEnum_
Type ⚠ - PyExc_
Arithmetic ⚠Error - PyExc_
Assertion ⚠Error - PyExc_
Attribute ⚠Error - PyExc_
Base ⚠Exception - PyExc_
BlockingIO ⚠Error - PyExc_
Broken ⚠Pipe Error - PyExc_
Buffer ⚠Error - PyExc_
Bytes ⚠Warning - PyExc_
Child ⚠Process Error - PyExc_
Connection ⚠Aborted Error - PyExc_
Connection ⚠Error - PyExc_
Connection ⚠Refused Error - PyExc_
Connection ⚠Reset Error - PyExc_
Deprecation ⚠Warning - PyExc_
EOFError ⚠ - PyExc_
Encoding ⚠Warning Py_3_10
- PyExc_
Environment ⚠Error - PyExc_
Exception ⚠ - PyExc_
File ⚠Exists Error - PyExc_
File ⚠NotFound Error - PyExc_
Floating ⚠Point Error - PyExc_
Future ⚠Warning - PyExc_
Generator ⚠Exit - PyExc_
IOError ⚠ - PyExc_
Import ⚠Error - PyExc_
Import ⚠Warning - PyExc_
Indentation ⚠Error - PyExc_
Index ⚠Error - PyExc_
Interrupted ⚠Error - PyExc_
IsADirectory ⚠Error - PyExc_
KeyError ⚠ - PyExc_
Keyboard ⚠Interrupt - PyExc_
Lookup ⚠Error - PyExc_
Memory ⚠Error - PyExc_
Module ⚠NotFound Error - PyExc_
Name ⚠Error - PyExc_
NotA ⚠Directory Error - PyExc_
NotImplemented ⚠Error - PyExc_
OSError ⚠ - PyExc_
Overflow ⚠Error - PyExc_
Pending ⚠Deprecation Warning - PyExc_
Permission ⚠Error - PyExc_
Process ⚠Lookup Error - PyExc_
Recursion ⚠Error - PyExc_
Recursion ⚠Error Inst - PyExc_
Reference ⚠Error - PyExc_
Resource ⚠Warning - PyExc_
Runtime ⚠Error - PyExc_
Runtime ⚠Warning - PyExc_
Stop ⚠Async Iteration - PyExc_
Stop ⚠Iteration - PyExc_
Syntax ⚠Error - PyExc_
Syntax ⚠Warning - PyExc_
System ⚠Error - PyExc_
System ⚠Exit - PyExc_
TabError ⚠ - PyExc_
Timeout ⚠Error - PyExc_
Type ⚠Error - PyExc_
Unbound ⚠Local Error - PyExc_
Unicode ⚠Decode Error - PyExc_
Unicode ⚠Encode Error - PyExc_
Unicode ⚠Error - PyExc_
Unicode ⚠Translate Error - PyExc_
Unicode ⚠Warning - PyExc_
User ⚠Warning - PyExc_
Value ⚠Error - PyExc_
Warning ⚠ - PyExc_
Zero ⚠Division Error - PyFilter_
Type ⚠ - PyFloat_
Type ⚠ - PyFrame_
Type ⚠Non- Py_LIMITED_API
- PyFrozen
Set_ ⚠Type - PyFunction_
Type ⚠Non- Py_LIMITED_API
and not (PyPy
and non-Py_3_8
) - PyGen_
Type ⚠Non- Py_LIMITED_API
- PyGet
SetDescr_ ⚠Type - PyImport_
Frozen ⚠Modules Non- Py_LIMITED_API
and non-PyPy
- PyImport_
Inittab ⚠Non- Py_LIMITED_API
and non-PyPy
- PyList
Iter_ ⚠Type - PyList
RevIter_ ⚠Type - PyList_
Type ⚠ - PyLong
Range ⚠Iter_ Type - PyLong_
Type ⚠ - PyMap_
Type ⚠ - PyMember
Descr_ ⚠Type - PyMemory
View_ ⚠Type - PyMethod
Descr_ ⚠Type - PyModule
Def_ ⚠Type - PyModule_
Type ⚠ - PyProperty_
Type ⚠ - PyRange
Iter_ ⚠Type - PyRange_
Type ⚠ - PyReversed_
Type ⚠ - PySeq
Iter_ ⚠Type - PySet
Iter_ ⚠Type - PySet_
Type ⚠ - PySlice_
Type ⚠ - PySuper_
Type ⚠ - built-in ‘super’
- PyTrace
Back_ ⚠Type - PyTuple
Iter_ ⚠Type - PyTuple_
Type ⚠ - PyType_
Type ⚠ - built-in ‘type’
- PyUnicode
Iter_ ⚠Type - PyUnicode_
Type ⚠ - PyWrapper
Descr_ ⚠Type - PyZip_
Type ⚠ - Py_
Bytes ⚠Warning Flag Deprecated Non- Py_LIMITED_API
- Py_
Debug ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
Dont ⚠Write Bytecode Flag Deprecated Non- Py_LIMITED_API
- Py_
File ⚠System Default Encode Errors Deprecated - Py_
File ⚠System Default Encoding Deprecated - Py_
Frozen ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
HasFile ⚠System Default Encoding Deprecated - Py_
Hash ⚠Randomization Flag Non- Py_LIMITED_API
- Py_
Ignore ⚠Environment Flag Deprecated Non- Py_LIMITED_API
- Py_
Inspect ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
Interactive ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
Isolated ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
NoSite ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
NoUser ⚠Site Directory Deprecated Non- Py_LIMITED_API
- Py_
Optimize ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
Quiet ⚠Flag Deprecated Non- Py_LIMITED_API
- Py_
Unbuffered ⚠Stdio Flag Deprecated Non- Py_LIMITED_API
- Py_
UseClass ⚠Exceptions Flag Deprecated Non- Py_LIMITED_API
- Py_
Verbose ⚠Flag Deprecated Non- Py_LIMITED_API
- _PyCoro
Wrapper_ ⚠Type Non- Py_LIMITED_API
- _PyManaged
Buffer_ ⚠Type Non- Py_LIMITED_API
- _PyMethod
Wrapper_ ⚠Type Non- Py_LIMITED_API
- _PySet_
Dummy ⚠Non- Py_LIMITED_API
- _PyWeakref_
Callable ⚠Proxy Type - _PyWeakref_
Proxy ⚠Type - _PyWeakref_
RefType ⚠
Functions§
- PyAny
Set_ ⚠Check - PyAny
Set_ ⚠Check Exact Non- PyPy
- PyArg_
Parse ⚠ - PyArg_
Parse ⚠Tuple - PyArg_
Parse ⚠Tuple AndKeywords - PyArg_
Unpack ⚠Tuple - PyArg_
Validate ⚠Keyword Arguments - PyAsync
Gen_ ⚠Check Exact Non- Py_LIMITED_API
- PyBool_
Check ⚠ - PyBool_
From ⚠Long - PyBuffer_
Fill ⚠Contiguous Strides Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
Fill ⚠Info Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
From ⚠Contiguous Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
GetPointer ⚠Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
IsContiguous ⚠Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
Release ⚠Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
Size ⚠From Format Non- Py_3_11
and non-Py_LIMITED_API
- PyBuffer_
ToContiguous ⚠Non- Py_3_11
and non-Py_LIMITED_API
- PyByte
Array_ ⚠AsString - PyByte
Array_ ⚠Check - PyByte
Array_ ⚠Check Exact - PyByte
Array_ ⚠Concat - PyByte
Array_ ⚠From Object - PyByte
Array_ ⚠From String AndSize - PyByte
Array_ ⚠Resize - PyByte
Array_ ⚠Size - PyBytes_
AsString ⚠ - PyBytes_
AsString ⚠AndSize - PyBytes_
Check ⚠ - PyBytes_
Check ⚠Exact - PyBytes_
Concat ⚠ - PyBytes_
Concat ⚠AndDel - PyBytes_
Decode ⚠Escape - PyBytes_
From ⚠Format - PyBytes_
From ⚠Object - PyBytes_
From ⚠String - PyBytes_
From ⚠String AndSize - PyBytes_
Repr ⚠ - PyBytes_
Size ⚠ - PyCFunction_
Call ⚠Deprecated Non- Py_3_13
- PyCFunction_
Check ⚠Py_3_9
- PyCFunction_
Check ⚠Exact Py_3_9
- PyCFunction_
GET_ ⚠CLASS Py_3_9
and non-PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyCFunction_
GET_ ⚠FLAGS Py_3_9
and non-PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyCFunction_
GET_ ⚠FUNCTION Py_3_9
and non-PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyCFunction_
GET_ ⚠SELF Py_3_9
and non-PyPy
and non-Py_LIMITED_API
and non-GraalPy
- PyCFunction_
GetFlags ⚠ - PyCFunction_
GetFunction ⚠ - PyCFunction_
GetSelf ⚠ - PyCFunction_
New ⚠Py_3_9
- PyCFunction_
NewEx ⚠Py_3_9
- PyCMethod_
Check ⚠Py_3_9
and non-PyPy
and non-Py_LIMITED_API
- PyCMethod_
Check ⚠Exact Py_3_9
and non-PyPy
and non-Py_LIMITED_API
- PyCMethod_
New ⚠Py_3_9
- PyCall
Iter_ ⚠Check - PyCall
Iter_ ⚠New - PyCallable_
Check ⚠ - PyCapsule_
Check ⚠Exact - PyCapsule_
GetContext ⚠ - PyCapsule_
GetDestructor ⚠ - PyCapsule_
GetName ⚠ - PyCapsule_
GetPointer ⚠ - PyCapsule_
Import ⚠ - PyCapsule_
IsValid ⚠ - PyCapsule_
New ⚠ - PyCapsule_
SetContext ⚠ - PyCapsule_
SetDestructor ⚠ - PyCapsule_
SetName ⚠ - PyCapsule_
SetPointer ⚠ - PyCode_
Addr2 ⚠Line Non- Py_LIMITED_API
and non-GraalPy
- PyCode_
Check ⚠Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyCode_
GetNum ⚠Free Neither PyPy
norGraalPy
andPy_3_10
and non-Py_3_11
and non-Py_LIMITED_API
- PyCode_
New ⚠Non- Py_LIMITED_API
and non-GraalPy
- PyCode_
NewEmpty ⚠Non- Py_LIMITED_API
and non-GraalPy
- PyCode_
NewWith ⚠PosOnly Args Non- Py_LIMITED_API
and non-GraalPy
andPy_3_8
- PyCode_
Optimize ⚠Non- Py_LIMITED_API
- PyCodec_
Backslash ⚠Replace Errors - PyCodec_
Decode ⚠ - PyCodec_
Decoder ⚠ - PyCodec_
Encode ⚠ - PyCodec_
Encoder ⚠ - PyCodec_
Ignore ⚠Errors - PyCodec_
Incremental ⚠Decoder - PyCodec_
Incremental ⚠Encoder - PyCodec_
Known ⚠Encoding - PyCodec_
Lookup ⚠Error - PyCodec_
Register ⚠ - PyCodec_
Register ⚠Error - PyCodec_
Replace ⚠Errors - PyCodec_
Stream ⚠Reader - PyCodec_
Stream ⚠Writer - PyCodec_
Strict ⚠Errors - PyCodec_
Unregister ⚠Py_3_10
and non-PyPy
- PyCodec_
XMLChar ⚠RefReplace Errors - PyCompile_
Opcode ⚠Stack Effect Non- Py_LIMITED_API
- PyCompile_
Opcode ⚠Stack Effect With Jump Non- Py_LIMITED_API
andPy_3_8
- PyComplex_
AsCComplex ⚠Non- Py_LIMITED_API
- PyComplex_
Check ⚠ - PyComplex_
Check ⚠Exact - PyComplex_
FromC ⚠Complex Non- Py_LIMITED_API
- PyComplex_
From ⚠Doubles - PyComplex_
Imag ⚠AsDouble - PyComplex_
Real ⚠AsDouble - PyConfig_
Clear ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
Init ⚠Isolated Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
Init ⚠Python Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
Read ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
SetArgv ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
SetBytes ⚠Argv Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
SetBytes ⚠String Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
SetString ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyConfig_
SetWide ⚠String List Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyContext
Token_ ⚠Check Exact Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠Check Exact Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠Get Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠New Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠Reset Py_3_8
and non-Py_LIMITED_API
- PyContext
Var_ ⚠Set Py_3_8
and non-Py_LIMITED_API
- PyContext_
Check ⚠Exact Py_3_8
and non-Py_LIMITED_API
- PyContext_
Copy ⚠Py_3_8
and non-Py_LIMITED_API
- PyContext_
Copy ⚠Current Py_3_8
and non-Py_LIMITED_API
- PyContext_
Enter ⚠Py_3_8
and non-Py_LIMITED_API
- PyContext_
Exit ⚠Py_3_8
and non-Py_LIMITED_API
- PyContext_
New ⚠Py_3_8
and non-Py_LIMITED_API
- PyCoro_
Check ⚠Exact Non- Py_LIMITED_API
- PyDate
TimeAPI ⚠Non- Py_LIMITED_API
- Returns a pointer to a
PyDateTime_CAPI
instance - PyDate
Time_ ⚠Check Non- Py_LIMITED_API
- Check if
op
is aPyDateTimeAPI.DateTimeType
or subtype. - PyDate
Time_ ⚠Check Exact Non- Py_LIMITED_API
- Check if
op
’s type is exactlyPyDateTimeAPI.DateTimeType
. - PyDate
Time_ ⚠DATE_ GET_ FOLD Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the fold component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 1]
- PyDate
Time_ ⚠DATE_ GET_ HOUR Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the hour component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 23]
- PyDate
Time_ ⚠DATE_ GET_ MICROSECOND Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the microsecond component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 999999]
- PyDate
Time_ ⚠DATE_ GET_ MINUTE Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the minute component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 59]
- PyDate
Time_ ⚠DATE_ GET_ SECOND Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the second component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 59]
- PyDate
Time_ ⚠DATE_ GET_ TZINFO Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the tzinfo component of a
PyDateTime_DateTime
. Returns a pointer to aPyObject
that should be either NULL or an instance of adatetime.tzinfo
subclass. - PyDate
Time_ ⚠DELTA_ GET_ DAYS Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the days component of a
PyDateTime_Delta
. - PyDate
Time_ ⚠DELTA_ GET_ MICROSECONDS Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the seconds component of a
PyDateTime_Delta
. - PyDate
Time_ ⚠DELTA_ GET_ SECONDS Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the seconds component of a
PyDateTime_Delta
. - PyDate
Time_ ⚠From Timestamp Non- Py_LIMITED_API
and non-PyPy
- PyDate
Time_ ⚠GET_ DAY Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the day component of a
PyDateTime_Date
orPyDateTime_DateTime
. Returns a signed integer in the interval[1, 31]
. - PyDate
Time_ ⚠GET_ MONTH Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the month component of a
PyDateTime_Date
orPyDateTime_DateTime
. Returns a signed integer in the range[1, 12]
. - PyDate
Time_ ⚠GET_ YEAR Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the year component of a
PyDateTime_Date
orPyDateTime_DateTime
. Returns a signed integer greater than 0. - PyDate
Time_ ⚠IMPORT Non- Py_LIMITED_API
- Populates the
PyDateTimeAPI
object - PyDate
Time_ ⚠TIME_ GET_ FOLD Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the fold component of a
PyDateTime_Time
. Returns a signed integer in the interval[0, 1]
- PyDate
Time_ ⚠TIME_ GET_ HOUR Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the hour component of a
PyDateTime_Time
. Returns a signed integer in the interval[0, 23]
- PyDate
Time_ ⚠TIME_ GET_ MICROSECOND Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the microsecond component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 999999]
- PyDate
Time_ ⚠TIME_ GET_ MINUTE Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the minute component of a
PyDateTime_Time
. Returns a signed integer in the interval[0, 59]
- PyDate
Time_ ⚠TIME_ GET_ SECOND Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the second component of a
PyDateTime_DateTime
. Returns a signed integer in the interval[0, 59]
- PyDate
Time_ ⚠TIME_ GET_ TZINFO Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Retrieve the tzinfo component of a
PyDateTime_Time
. Returns a pointer to aPyObject
that should be either NULL or an instance of adatetime.tzinfo
subclass. - PyDate
Time_ ⚠Time Zone_ UTC Non- Py_LIMITED_API
- PyDate_
Check ⚠Non- Py_LIMITED_API
- Type Check macros
- PyDate_
Check ⚠Exact Non- Py_LIMITED_API
- Check if
op
’s type is exactlyPyDateTimeAPI.DateType
. - PyDate_
From ⚠Timestamp Non- Py_LIMITED_API
and non-PyPy
- PyDelta_
Check ⚠Non- Py_LIMITED_API
- Check if
op
is aPyDateTimeAPI.DetaType
or subtype. - PyDelta_
Check ⚠Exact Non- Py_LIMITED_API
- Check if
op
’s type is exactlyPyDateTimeAPI.DeltaType
. - PyDescr_
NewClass ⚠Method - PyDescr_
NewGet ⚠Set - PyDescr_
NewMember ⚠ - PyDescr_
NewMethod ⚠ - PyDict
Items_ ⚠Check - PyDict
Keys_ ⚠Check - PyDict
Proxy_ ⚠New - PyDict
Values_ ⚠Check - PyDict
View ⚠Set_ Check - PyDict_
Check ⚠ - PyDict_
Check ⚠Exact - PyDict_
Clear ⚠ - PyDict_
Contains ⚠ - PyDict_
Copy ⚠ - PyDict_
DelItem ⚠ - PyDict_
DelItem ⚠String - PyDict_
GetItem ⚠ - PyDict_
GetItem ⚠String - PyDict_
GetItem ⚠With Error - PyDict_
Items ⚠ - PyDict_
Keys ⚠ - PyDict_
Merge ⚠ - PyDict_
Merge ⚠From Seq2 - PyDict_
New ⚠ - PyDict_
Next ⚠ - PyDict_
SetItem ⚠ - PyDict_
SetItem ⚠String - PyDict_
Size ⚠ - PyDict_
Update ⚠ - PyDict_
Values ⚠ - PyErr_
BadArgument ⚠ - PyErr_
BadInternal ⚠Call - PyErr_
Check ⚠Signals - PyErr_
Clear ⚠ - PyErr_
Display ⚠ - PyErr_
Exception ⚠Matches - PyErr_
Fetch ⚠ - PyErr_
Format ⚠ - PyErr_
GetExc ⚠Info - PyErr_
Given ⚠Exception Matches - PyErr_
NewException ⚠ - PyErr_
NewException ⚠With Doc - PyErr_
NoMemory ⚠ - PyErr_
Normalize ⚠Exception - PyErr_
Occurred ⚠ - PyErr_
Print ⚠ - PyErr_
Print ⚠Ex - PyErr_
Program ⚠Text - PyErr_
Resource ⚠Warning - PyErr_
Restore ⚠ - PyErr_
SetExc ⚠Info - PyErr_
SetFrom ⚠Errno - PyErr_
SetFrom ⚠Errno With Filename - PyErr_
SetFrom ⚠Errno With Filename Object - PyErr_
SetFrom ⚠Errno With Filename Objects - PyErr_
SetImport ⚠Error - PyErr_
SetImport ⚠Error Subclass - PyErr_
SetInterrupt ⚠ - PyErr_
SetInterrupt ⚠Ex Py_3_10
- PyErr_
SetNone ⚠ - PyErr_
SetObject ⚠ - PyErr_
SetString ⚠ - PyErr_
Syntax ⚠Location - PyErr_
Syntax ⚠Location Ex - PyErr_
Warn ⚠Ex - PyErr_
Warn ⚠Explicit - PyErr_
Warn ⚠Format - PyErr_
Write ⚠Unraisable - PyEval_
Acquire ⚠Lock - PyEval_
Acquire ⚠Thread - PyEval_
Call ⚠Function Deprecated Non- Py_3_13
- PyEval_
Call ⚠Method Deprecated Non- Py_3_13
- PyEval_
Call ⚠Object Deprecated Non- Py_3_13
- PyEval_
Call ⚠Object With Keywords Deprecated Non- Py_3_13
- PyEval_
Eval ⚠Code - PyEval_
Eval ⚠Code Ex - PyEval_
Eval ⚠Frame - PyEval_
Eval ⚠Frame Ex - PyEval_
GetBuiltins ⚠ - PyEval_
GetCall ⚠Stats - PyEval_
GetFrame ⚠ - PyEval_
GetFunc ⚠Desc - PyEval_
GetFunc ⚠Name - PyEval_
GetGlobals ⚠ - PyEval_
GetLocals ⚠ - PyEval_
Init ⚠Threads Deprecated - PyEval_
Release ⚠Lock - PyEval_
Release ⚠Thread - PyEval_
Restore ⚠Thread - PyEval_
Save ⚠Thread - PyEval_
SetProfile ⚠Non- PyPy
and non-Py_LIMITED_API
- PyEval_
SetTrace ⚠Non- PyPy
and non-Py_LIMITED_API
- PyEval_
Threads ⚠Initialized Deprecated Non- Py_3_13
- PyException
Class_ ⚠Check - PyException
Instance_ ⚠Check - PyException
Instance_ ⚠Class Non- PyPy
- PyException_
GetCause ⚠ - PyException_
GetContext ⚠ - PyException_
GetTraceback ⚠ - PyException_
SetCause ⚠ - PyException_
SetContext ⚠ - PyException_
SetTraceback ⚠ - PyFile_
From ⚠Fd - PyFile_
GetLine ⚠ - PyFile_
Write ⚠Object - PyFile_
Write ⚠String - PyFloat_
AS_ ⚠DOUBLE Non- Py_LIMITED_API
- PyFloat_
AsDouble ⚠ - PyFloat_
Check ⚠ - PyFloat_
Check ⚠Exact - PyFloat_
From ⚠Double - PyFloat_
From ⚠String - PyFloat_
GetInfo ⚠ - PyFloat_
GetMax ⚠ - PyFloat_
GetMin ⚠ - PyFrame_
Block ⚠Pop Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_3_11
- PyFrame_
Block ⚠Setup Non- Py_LIMITED_API
- PyFrame_
Check ⚠Non- Py_LIMITED_API
- PyFrame_
Fast ⚠ToLocals Non- Py_LIMITED_API
- PyFrame_
Fast ⚠ToLocals With Error Non- Py_LIMITED_API
- PyFrame_
GetCode ⚠Non- GraalPy
and (Py_3_10
, orPy_3_9
and non-Py_LIMITED_API
) - PyFrame_
GetLine ⚠Number - PyFrame_
Locals ⚠ToFast Non- Py_LIMITED_API
- PyFrame_
New ⚠Non- Py_LIMITED_API
and non-GraalPy
- PyFrozen
Set_ ⚠Check Non- PyPy
- PyFrozen
Set_ ⚠Check Exact Neither PyPy
norGraalPy
- PyFrozen
Set_ ⚠New - PyFunction_
Check ⚠Non- Py_LIMITED_API
and not (PyPy
and non-Py_3_8
) - PyFunction_
GetAnnotations ⚠Non- Py_LIMITED_API
- PyFunction_
GetClosure ⚠Non- Py_LIMITED_API
- PyFunction_
GetCode ⚠Non- Py_LIMITED_API
- PyFunction_
GetDefaults ⚠Non- Py_LIMITED_API
- PyFunction_
GetGlobals ⚠Non- Py_LIMITED_API
- PyFunction_
GetKw ⚠Defaults Non- Py_LIMITED_API
- PyFunction_
GetModule ⚠Non- Py_LIMITED_API
- PyFunction_
New ⚠Non- Py_LIMITED_API
- PyFunction_
NewWith ⚠Qual Name Non- Py_LIMITED_API
- PyFunction_
SetAnnotations ⚠Non- Py_LIMITED_API
- PyFunction_
SetClosure ⚠Non- Py_LIMITED_API
- PyFunction_
SetDefaults ⚠Non- Py_LIMITED_API
- PyFunction_
SetKw ⚠Defaults Non- Py_LIMITED_API
- PyGC_
Collect ⚠ - PyGC_
Disable ⚠Py_3_10
- PyGC_
Enable ⚠Py_3_10
- PyGC_
IsEnabled ⚠Py_3_10
- PyGIL
State_ ⚠Check Non- Py_LIMITED_API
- PyGIL
State_ ⚠Ensure - PyGIL
State_ ⚠GetThis Thread State Non- PyPy
- PyGIL
State_ ⚠Release - PyGen_
Check ⚠Non- Py_LIMITED_API
- PyGen_
Check ⚠Exact Non- Py_LIMITED_API
- PyGen_
New ⚠Non- Py_LIMITED_API
- PyHash_
GetFunc ⚠Def Neither Py_LIMITED_API
norPyPy
norGraalPy
- PyHeap
Type_ ⚠GET_ MEMBERS Non- Py_LIMITED_API
and non-Py_3_11
- PyImport_
AddModule ⚠ - PyImport_
AddModule ⚠Object - PyImport_
Append ⚠Inittab - PyImport_
Exec ⚠Code Module - PyImport_
Exec ⚠Code Module Ex - PyImport_
Exec ⚠Code Module Object - PyImport_
Exec ⚠Code Module With Pathnames - PyImport_
Extend ⚠Inittab Non- Py_LIMITED_API
and non-PyPy
- PyImport_
GetImporter ⚠ - PyImport_
GetMagic ⚠Number - PyImport_
GetMagic ⚠Tag - PyImport_
GetModule ⚠Dict - PyImport_
Import ⚠ - PyImport_
Import ⚠Frozen Module - PyImport_
Import ⚠Frozen Module Object - PyImport_
Import ⚠Module - PyImport_
Import ⚠Module Ex - PyImport_
Import ⚠Module Level - PyImport_
Import ⚠Module Level Object - PyImport_
Import ⚠Module NoBlock - PyImport_
Reload ⚠Module - PyIndex_
Check ⚠Neither Py_LIMITED_API
norPyPy
- PyInterpreter
State_ ⚠Clear Non- PyPy
- PyInterpreter
State_ ⚠Delete Non- PyPy
- PyInterpreter
State_ ⚠Get Py_3_9
and non-PyPy
- PyInterpreter
State_ ⚠GetDict Py_3_8
and non-PyPy
- PyInterpreter
State_ ⚠GetID Non- PyPy
- PyInterpreter
State_ ⚠Head Non- Py_LIMITED_API
- PyInterpreter
State_ ⚠Main Non- Py_LIMITED_API
and non-PyPy
- PyInterpreter
State_ ⚠New Non- PyPy
- PyInterpreter
State_ ⚠Next Non- Py_LIMITED_API
- PyInterpreter
State_ ⚠Thread Head Non- Py_LIMITED_API
and non-PyPy
- PyIter_
Check ⚠Py_3_8
orPyPy
- PyIter_
Next ⚠ - PyIter_
Send ⚠Non- PyPy
andPy_3_10
- PyList_
Append ⚠ - PyList_
AsTuple ⚠ - PyList_
Check ⚠ - PyList_
Check ⚠Exact - PyList_
GET_ ⚠ITEM Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Macro, trading safety for speed
- PyList_
GET_ ⚠SIZE Non- Py_LIMITED_API
and non-PyPy
- PyList_
GetItem ⚠ - PyList_
GetSlice ⚠ - PyList_
Insert ⚠ - PyList_
New ⚠ - PyList_
Reverse ⚠ - PyList_
SET_ ⚠ITEM Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Macro, only to be used to fill in brand new lists
- PyList_
SetItem ⚠ - PyList_
SetSlice ⚠ - PyList_
Size ⚠ - PyList_
Sort ⚠ - PyLong_
AsDouble ⚠ - PyLong_
AsLong ⚠ - PyLong_
AsLong ⚠AndOverflow - PyLong_
AsLong ⚠Long - PyLong_
AsLong ⚠Long AndOverflow - PyLong_
AsSize_ ⚠t - PyLong_
AsSsize_ ⚠t - PyLong_
AsUnsigned ⚠Long - PyLong_
AsUnsigned ⚠Long Long - PyLong_
AsUnsigned ⚠Long Long Mask - PyLong_
AsUnsigned ⚠Long Mask - PyLong_
AsVoid ⚠Ptr - PyLong_
Check ⚠ - PyLong_
Check ⚠Exact - PyLong_
From ⚠Double - PyLong_
From ⚠Long - PyLong_
From ⚠Long Long - PyLong_
From ⚠Size_ t - PyLong_
From ⚠Ssize_ t - PyLong_
From ⚠String - PyLong_
From ⚠Unsigned Long - PyLong_
From ⚠Unsigned Long Long - PyLong_
From ⚠Void Ptr - PyLong_
GetInfo ⚠ - PyMapping_
Check ⚠ - PyMapping_
DelItem ⚠ - PyMapping_
DelItem ⚠String - PyMapping_
GetItem ⚠String - PyMapping_
HasKey ⚠ - PyMapping_
HasKey ⚠String - PyMapping_
Items ⚠ - PyMapping_
Keys ⚠ - PyMapping_
Length ⚠Non- PyPy
- PyMapping_
SetItem ⚠String - PyMapping_
Size ⚠ - PyMapping_
Values ⚠ - PyMem_
Calloc ⚠ - PyMem_
Free ⚠ - PyMem_
GetAllocator ⚠Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyMem_
Malloc ⚠ - PyMem_
RawCalloc ⚠Non- Py_LIMITED_API
- PyMem_
RawFree ⚠Non- Py_LIMITED_API
- PyMem_
RawMalloc ⚠Non- Py_LIMITED_API
- PyMem_
RawRealloc ⚠Non- Py_LIMITED_API
- PyMem_
Realloc ⚠ - PyMem_
SetAllocator ⚠Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyMem_
Setup ⚠Debug Hooks Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyMember_
GetOne ⚠ - PyMember_
SetOne ⚠ - PyMemory
View_ ⚠Check - PyMemory
View_ ⚠From Buffer Py_3_11
or non-Py_LIMITED_API
- PyMemory
View_ ⚠From Memory - PyMemory
View_ ⚠From Object - PyMemory
View_ ⚠GetContiguous - PyModule
Def_ ⚠Init - PyModule_
AddFunctions ⚠ - PyModule_
AddInt ⚠Constant - PyModule_
AddObject ⚠ - PyModule_
AddObject ⚠Ref Py_3_10
- PyModule_
AddString ⚠Constant - PyModule_
AddType ⚠Py_3_10
, orPy_3_9
and non-Py_LIMITED_API
- PyModule_
Check ⚠ - PyModule_
Check ⚠Exact - PyModule_
Create ⚠ - PyModule_
Create2 ⚠Non- py_sys_config="Py_TRACE_REFS"
- PyModule_
Exec ⚠Def - PyModule_
From ⚠DefAnd Spec - PyModule_
From ⚠DefAnd Spec2 Non- py_sys_config="Py_TRACE_REFS"
- PyModule_
GetDef ⚠ - PyModule_
GetDict ⚠ - PyModule_
GetFilename ⚠Deprecated Not (Windows and PyPy
) - PyModule_
GetFilename ⚠Object Non- PyPy
- PyModule_
GetName ⚠ - PyModule_
GetName ⚠Object Non- PyPy
- PyModule_
GetState ⚠ - PyModule_
New ⚠ - PyModule_
NewObject ⚠ - PyModule_
SetDoc ⚠String - PyNumber_
Absolute ⚠ - PyNumber_
Add ⚠ - PyNumber_
And ⚠ - PyNumber_
AsSsize_ ⚠t - PyNumber_
Check ⚠ - PyNumber_
Divmod ⚠ - PyNumber_
Float ⚠ - PyNumber_
Floor ⚠Divide - PyNumber_
InPlace ⚠Add - PyNumber_
InPlace ⚠And - PyNumber_
InPlace ⚠Floor Divide - PyNumber_
InPlace ⚠Lshift - PyNumber_
InPlace ⚠Matrix Multiply - PyNumber_
InPlace ⚠Multiply - PyNumber_
InPlace ⚠Or - PyNumber_
InPlace ⚠Power - PyNumber_
InPlace ⚠Remainder - PyNumber_
InPlace ⚠Rshift - PyNumber_
InPlace ⚠Subtract - PyNumber_
InPlace ⚠True Divide - PyNumber_
InPlace ⚠Xor - PyNumber_
Index ⚠ - PyNumber_
Invert ⚠ - PyNumber_
Long ⚠ - PyNumber_
Lshift ⚠ - PyNumber_
Matrix ⚠Multiply - PyNumber_
Multiply ⚠ - PyNumber_
Negative ⚠ - PyNumber_
Or ⚠ - PyNumber_
Positive ⚠ - PyNumber_
Power ⚠ - PyNumber_
Remainder ⚠ - PyNumber_
Rshift ⚠ - PyNumber_
Subtract ⚠ - PyNumber_
ToBase ⚠ - PyNumber_
True ⚠Divide - PyNumber_
Xor ⚠ - PyOS_
After ⚠Fork Deprecated - PyOS_
After ⚠Fork_ Child - PyOS_
After ⚠Fork_ Parent - PyOS_
Before ⚠Fork - PyOS_
FSPath ⚠ - PyOS_
Interrupt ⚠Occurred - PyOS_
double_ ⚠to_ string - PyOS_
getsig ⚠ - PyOS_
setsig ⚠ - PyOS_
string_ ⚠to_ double - PyOS_
strtol ⚠ - PyOS_
strtoul ⚠ - PyObject_
ASCII ⚠ - PyObject_
AsFile ⚠Descriptor - PyObject_
Bytes ⚠ - PyObject_
Call ⚠ - PyObject_
Call ⚠Finalizer Non- Py_LIMITED_API
- PyObject_
Call ⚠Finalizer From Dealloc Non- Py_LIMITED_API
- PyObject_
Call ⚠Function - PyObject_
Call ⚠Function ObjArgs - PyObject_
Call ⚠Method - PyObject_
Call ⚠Method NoArgs Py_3_9
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyObject_
Call ⚠Method ObjArgs - PyObject_
Call ⚠Method OneArg Py_3_9
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyObject_
Call ⚠NoArgs Non- PyPy
and (Py_3_10
, or non-Py_LIMITED_API
andPy_3_9
) - PyObject_
Call ⚠Object - PyObject_
Call ⚠OneArg Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyObject_
Calloc ⚠ - PyObject_
Check ⚠Buffer Non- Py_LIMITED_API
and non-Py_3_11
andPy_3_9
and neitherPyPy
norGraalPy
- PyObject_
Clear ⚠Weak Refs - PyObject_
Copy ⚠Data Non- Py_3_11
and non-Py_LIMITED_API
- PyObject_
DelAttr ⚠Non- Py_3_13
and not (PyPy
and non-Py_3_11
) - PyObject_
DelAttr ⚠String Non- Py_3_13
and not (PyPy
and non-Py_3_11
) - PyObject_
DelItem ⚠ - PyObject_
DelItem ⚠String - PyObject_
Dir ⚠ - PyObject_
Format ⚠ - PyObject_
Free ⚠ - PyObject_
GC_ ⚠Del - PyObject_
GC_ ⚠IsFinalized Py_3_9
and non-PyPy
, orPy_3_10
- PyObject_
GC_ ⚠IsTracked Py_3_9
and non-PyPy
, orPy_3_10
- PyObject_
GC_ ⚠Track Non- PyPy
- PyObject_
GC_ ⚠UnTrack Non- PyPy
- PyObject_
GET_ ⚠WEAKREFS_ LISTPTR Non- Py_LIMITED_API
- PyObject_
Generic ⚠GetAttr - PyObject_
Generic ⚠GetDict Not ( Py_LIMITED_API
and non-Py_3_10
) - PyObject_
Generic ⚠SetAttr - PyObject_
Generic ⚠SetDict - PyObject_
GetArena ⚠Allocator Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyObject_
GetAttr ⚠ - PyObject_
GetAttr ⚠String - PyObject_
GetBuffer ⚠Non- Py_3_11
and non-Py_LIMITED_API
- PyObject_
GetItem ⚠ - PyObject_
GetIter ⚠ - PyObject_
HasAttr ⚠ - PyObject_
HasAttr ⚠String - PyObject_
Hash ⚠ - PyObject_
Hash ⚠NotImplemented - PyObject_
IS_ ⚠GC Non- Py_LIMITED_API
andPy_3_9
- PyObject_
Init ⚠ - PyObject_
Init ⚠Var - PyObject_
IsInstance ⚠ - PyObject_
IsSubclass ⚠ - PyObject_
IsTrue ⚠ - PyObject_
Length ⚠ - PyObject_
Length ⚠Hint Non- Py_LIMITED_API
- PyObject_
Malloc ⚠ - PyObject_
Not ⚠ - PyObject_
Print ⚠Non- Py_LIMITED_API
- PyObject_
Realloc ⚠ - PyObject_
Repr ⚠ - PyObject_
Rich ⚠Compare - PyObject_
Rich ⚠Compare Bool - PyObject_
Self ⚠Iter - PyObject_
SetArena ⚠Allocator Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyObject_
SetAttr ⚠ - PyObject_
SetAttr ⚠String - PyObject_
SetItem ⚠ - PyObject_
Size ⚠ - PyObject_
Str ⚠ - PyObject_
Type ⚠ - PyObject_
Type ⚠Check - PyObject_
Vectorcall ⚠Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyObject_
Vectorcall ⚠Dict Non- Py_LIMITED_API
andPy_3_8
- PyObject_
Vectorcall ⚠Method Py_3_9
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyPre
Config_ ⚠Init Isolated Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyPre
Config_ ⚠Init Python Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyRange_
Check ⚠ - PyRun_
AnyFile ⚠Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
AnyFile ⚠Ex Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
AnyFile ⚠ExFlags Non- Py_LIMITED_API
- PyRun_
AnyFile ⚠Flags Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
File ⚠Non- Py_LIMITED_API
- PyRun_
File ⚠Ex Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
File ⚠ExFlags Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
File ⚠Flags Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
Interactive ⚠Loop Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
Interactive ⚠Loop Flags Non- Py_LIMITED_API
- PyRun_
Interactive ⚠One Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
Interactive ⚠OneFlags Non- Py_LIMITED_API
- PyRun_
Interactive ⚠OneObject Non- Py_LIMITED_API
- PyRun_
Simple ⚠File Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
Simple ⚠File Ex Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyRun_
Simple ⚠File ExFlags Non- Py_LIMITED_API
- PyRun_
Simple ⚠String Non- Py_LIMITED_API
- PyRun_
Simple ⚠String Flags Non- Py_LIMITED_API
- PyRun_
String ⚠Non- Py_LIMITED_API
- PyRun_
String ⚠Flags Non- Py_LIMITED_API
- PySeq
Iter_ ⚠Check - PySeq
Iter_ ⚠New - PySequence_
Check ⚠ - PySequence_
Concat ⚠ - PySequence_
Contains ⚠ - PySequence_
Count ⚠ - PySequence_
DelItem ⚠ - PySequence_
DelSlice ⚠ - PySequence_
Fast ⚠ - PySequence_
GetItem ⚠ - PySequence_
GetSlice ⚠ - PySequence_
In ⚠ - PySequence_
InPlace ⚠Concat - PySequence_
InPlace ⚠Repeat - PySequence_
Index ⚠ - PySequence_
Length ⚠Non- PyPy
- PySequence_
List ⚠ - PySequence_
Repeat ⚠ - PySequence_
SetItem ⚠ - PySequence_
SetSlice ⚠ - PySequence_
Size ⚠ - PySequence_
Tuple ⚠ - PySet_
Add ⚠ - PySet_
Check ⚠Non- PyPy
- PySet_
Check ⚠Exact Py_3_10
- PySet_
Clear ⚠ - PySet_
Contains ⚠ - PySet_
Discard ⚠ - PySet_
GET_ ⚠SIZE Neither PyPy
norGraalPy
and non-Py_LIMITED_API
- PySet_
New ⚠ - PySet_
Pop ⚠ - PySet_
Size ⚠ - PySlice_
Adjust ⚠Indices - PySlice_
Check ⚠ - PySlice_
GetIndices ⚠ - PySlice_
GetIndices ⚠Ex - PySlice_
New ⚠ - PySlice_
Unpack ⚠ - PyState_
AddModule ⚠ - PyState_
Find ⚠Module - PyState_
Remove ⚠Module - PyStatus_
Error ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
Exception ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
Exit ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
IsError ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
IsExit ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
NoMemory ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStatus_
Ok ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyStruct
Sequence_ ⚠GET_ ITEM Neither Py_LIMITED_API
norPyPy
norGraalPy
- PyStruct
Sequence_ ⚠GetItem Non- PyPy
- PyStruct
Sequence_ ⚠Init Type Non- Py_LIMITED_API
- PyStruct
Sequence_ ⚠Init Type2 Non- Py_LIMITED_API
- PyStruct
Sequence_ ⚠New - PyStruct
Sequence_ ⚠NewType Non- PyPy
- PyStruct
Sequence_ ⚠SET_ ITEM Neither Py_LIMITED_API
norPyPy
norGraalPy
- PyStruct
Sequence_ ⚠SetItem Non- PyPy
- PySys_
AddWarn ⚠Option - PySys_
AddWarn ⚠Option Unicode - PySys_
AddX ⚠Option - PySys_
Format ⚠Stderr - PySys_
Format ⚠Stdout - PySys_
GetObject ⚠ - PySys_
GetX ⚠Options - PySys_
HasWarn ⚠Options - PySys_
Reset ⚠Warn Options - PySys_
SetArgv ⚠ - PySys_
SetArgv ⚠Ex - PySys_
SetObject ⚠ - PySys_
SetPath ⚠ - PySys_
Write ⚠Stderr - PySys_
Write ⚠Stdout - PyTZ
Info_ ⚠Check Non- Py_LIMITED_API
- Check if
op
is aPyDateTimeAPI.TZInfoType
or subtype. - PyTZ
Info_ ⚠Check Exact Non- Py_LIMITED_API
- Check if
op
’s type is exactlyPyDateTimeAPI.TZInfoType
. - PyThread
State_ ⚠Clear - PyThread
State_ ⚠Delete - PyThread
State_ ⚠Delete Current Non- Py_LIMITED_API
- PyThread
State_ ⚠GET - PyThread
State_ ⚠Get - PyThread
State_ ⚠GetDict - PyThread
State_ ⚠New - PyThread
State_ ⚠Next Non- Py_LIMITED_API
and non-PyPy
- PyThread
State_ ⚠SetAsync Exc Non- PyPy
- PyThread
State_ ⚠Swap - PyTime
Zone_ ⚠From Offset Non- Py_LIMITED_API
- PyTime
Zone_ ⚠From Offset AndName Non- Py_LIMITED_API
- PyTime_
Check ⚠Non- Py_LIMITED_API
- Check if
op
is aPyDateTimeAPI.TimeType
or subtype. - PyTime_
Check ⚠Exact Non- Py_LIMITED_API
- Check if
op
’s type is exactlyPyDateTimeAPI.TimeType
. - PyTrace
Back_ ⚠Check Non- PyPy
- PyTrace
Back_ ⚠Here - PyTrace
Back_ ⚠Print - PyTuple_
Check ⚠ - PyTuple_
Check ⚠Exact - PyTuple_
GET_ ⚠ITEM Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- PyTuple_
GET_ ⚠SIZE Non- Py_LIMITED_API
and non-PyPy
- Macro, trading safety for speed
- PyTuple_
GetItem ⚠ - PyTuple_
GetSlice ⚠ - PyTuple_
New ⚠ - PyTuple_
Pack ⚠ - PyTuple_
SET_ ⚠ITEM Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Macro, only to be used to fill in brand new tuples
- PyTuple_
SetItem ⚠ - PyTuple_
Size ⚠ - PyType_
Check ⚠ - PyType_
Check ⚠Exact - PyType_
Clear ⚠Cache - PyType_
Fast ⚠Subclass - PyType_
From ⚠Module AndSpec Py_3_10
, orPy_3_9
and non-Py_LIMITED_API
- PyType_
From ⚠Spec - PyType_
From ⚠Spec With Bases - PyType_
Generic ⚠Alloc - PyType_
Generic ⚠New - PyType_
GetFlags ⚠ - PyType_
GetModule ⚠Py_3_10
, orPy_3_9
and non-Py_LIMITED_API
- PyType_
GetModule ⚠State Py_3_10
, orPy_3_9
and non-Py_LIMITED_API
- PyType_
GetSlot ⚠ - PyType_
HasFeature ⚠ - PyType_
IS_ ⚠GC - PyType_
IsSubtype ⚠ - PyType_
Modified ⚠ - PyType_
Ready ⚠ - PyType_
SUPPORTS_ ⚠WEAKREFS Non- Py_LIMITED_API
- PyUnicode
Decode ⚠Error_ Create Non- PyPy
- PyUnicode
Decode ⚠Error_ GetEncoding - PyUnicode
Decode ⚠Error_ GetEnd - PyUnicode
Decode ⚠Error_ GetObject - PyUnicode
Decode ⚠Error_ GetReason - PyUnicode
Decode ⚠Error_ GetStart - PyUnicode
Decode ⚠Error_ SetEnd - PyUnicode
Decode ⚠Error_ SetReason - PyUnicode
Decode ⚠Error_ SetStart - PyUnicode
Encode ⚠Error_ GetEncoding - PyUnicode
Encode ⚠Error_ GetEnd - PyUnicode
Encode ⚠Error_ GetObject - PyUnicode
Encode ⚠Error_ GetReason - PyUnicode
Encode ⚠Error_ GetStart - PyUnicode
Encode ⚠Error_ SetEnd - PyUnicode
Encode ⚠Error_ SetReason - PyUnicode
Encode ⚠Error_ SetStart - PyUnicode
Translate ⚠Error_ GetEnd - PyUnicode
Translate ⚠Error_ GetObject - PyUnicode
Translate ⚠Error_ GetReason - PyUnicode
Translate ⚠Error_ GetStart - PyUnicode
Translate ⚠Error_ SetEnd - PyUnicode
Translate ⚠Error_ SetReason - PyUnicode
Translate ⚠Error_ SetStart - PyUnicode_
1BYTE_ ⚠DATA Non- Py_LIMITED_API
and neitherGraalPy
norPyPy
- PyUnicode_
2BYTE_ ⚠DATA Non- Py_LIMITED_API
and neitherGraalPy
norPyPy
- PyUnicode_
4BYTE_ ⚠DATA Non- Py_LIMITED_API
and neitherGraalPy
norPyPy
- PyUnicode_
Append ⚠ - PyUnicode_
Append ⚠AndDel - PyUnicode_
AsASCII ⚠String - PyUnicode_
AsCharmap ⚠String - PyUnicode_
AsDecoded ⚠Object - PyUnicode_
AsDecoded ⚠Unicode - PyUnicode_
AsEncoded ⚠Object - PyUnicode_
AsEncoded ⚠String - PyUnicode_
AsEncoded ⚠Unicode - PyUnicode_
AsLatin1 ⚠String - PyUnicode_
AsRaw ⚠Unicode Escape String - PyUnicode_
AsUC ⚠S4 - PyUnicode_
AsUC ⚠S4Copy - PyUnicode_
AsUT ⚠F8 Non- Py_LIMITED_API
- PyUnicode_
AsUT ⚠F8And Size Py_3_10
or non-Py_LIMITED_API
- PyUnicode_
AsUT ⚠F8String - PyUnicode_
AsUT ⚠F16String - PyUnicode_
AsUT ⚠F32String - PyUnicode_
AsUnicode ⚠Deprecated Non- Py_LIMITED_API
and non-Py_3_12
- PyUnicode_
AsUnicode ⚠AndSize Deprecated Non- Py_LIMITED_API
and non-Py_3_12
- PyUnicode_
AsUnicode ⚠Escape String - PyUnicode_
AsWide ⚠Char - PyUnicode_
AsWide ⚠Char String - PyUnicode_
Build ⚠Encoding Map - PyUnicode_
Check ⚠Non- PyPy
- PyUnicode_
Check ⚠Exact Non- PyPy
- PyUnicode_
Clear ⚠Free List - PyUnicode_
Compare ⚠ - PyUnicode_
Compare ⚠WithASCII String - PyUnicode_
Concat ⚠ - PyUnicode_
Contains ⚠ - PyUnicode_
Copy ⚠Characters Non- Py_LIMITED_API
and non-PyPy
- PyUnicode_
Count ⚠ - PyUnicode_
DATA ⚠Non- Py_LIMITED_API
and neitherGraalPy
norPyPy
- PyUnicode_
Decode ⚠ - PyUnicode_
DecodeASCII ⚠ - PyUnicode_
Decode ⚠Charmap - PyUnicode_
DecodeFS ⚠Default - PyUnicode_
DecodeFS ⚠Default AndSize - PyUnicode_
Decode ⚠Latin1 - PyUnicode_
Decode ⚠Locale - PyUnicode_
Decode ⚠Locale AndSize - PyUnicode_
Decode ⚠RawUnicode Escape - PyUnicode_
DecodeUT ⚠F7 - PyUnicode_
DecodeUT ⚠F8 - PyUnicode_
DecodeUT ⚠F7Stateful - PyUnicode_
DecodeUT ⚠F8Stateful - PyUnicode_
DecodeUT ⚠F16 - PyUnicode_
DecodeUT ⚠F32 - PyUnicode_
DecodeUT ⚠F16Stateful - PyUnicode_
DecodeUT ⚠F32Stateful - PyUnicode_
Decode ⚠Unicode Escape - PyUnicode_
Encode ⚠Non- Py_LIMITED_API
- PyUnicode_
EncodeASCII ⚠Non- Py_LIMITED_API
- PyUnicode_
Encode ⚠Charmap Non- Py_LIMITED_API
- PyUnicode_
Encode ⚠Decimal Non- Py_LIMITED_API
- PyUnicode_
EncodeFS ⚠Default - PyUnicode_
Encode ⚠Latin1 Non- Py_LIMITED_API
- PyUnicode_
Encode ⚠Locale - PyUnicode_
Encode ⚠RawUnicode Escape Non- Py_LIMITED_API
- PyUnicode_
EncodeUT ⚠F7 Non- Py_LIMITED_API
- PyUnicode_
EncodeUT ⚠F8 Non- Py_LIMITED_API
- PyUnicode_
EncodeUT ⚠F16 Non- Py_LIMITED_API
- PyUnicode_
EncodeUT ⚠F32 Non- Py_LIMITED_API
- PyUnicode_
Encode ⚠Unicode Escape Non- Py_LIMITED_API
- PyUnicode_
FSConverter ⚠ - PyUnicode_
FSDecoder ⚠ - PyUnicode_
Fill ⚠Non- Py_LIMITED_API
and non-PyPy
- PyUnicode_
Find ⚠ - PyUnicode_
Find ⚠Char - PyUnicode_
Format ⚠ - PyUnicode_
From ⚠Encoded Object - PyUnicode_
From ⚠Format - PyUnicode_
From ⚠Kind AndData Non- Py_LIMITED_API
- PyUnicode_
From ⚠Object - PyUnicode_
From ⚠Ordinal - PyUnicode_
From ⚠String - PyUnicode_
From ⚠String AndSize - PyUnicode_
From ⚠Unicode Deprecated Non- Py_LIMITED_API
and non-Py_3_12
- PyUnicode_
From ⚠Wide Char - PyUnicode_
GET_ ⚠LENGTH Non- Py_LIMITED_API
and non-GraalPy
- PyUnicode_
GetDefault ⚠Encoding - PyUnicode_
GetLength ⚠ - PyUnicode_
GetSize ⚠Deprecated Non- Py_3_12
- PyUnicode_
IS_ ⚠ASCII Non- Py_LIMITED_API
and non-GraalPy
- PyUnicode_
IS_ ⚠COMPACT Non- Py_LIMITED_API
and non-GraalPy
- PyUnicode_
IS_ ⚠COMPACT_ ASCII Non- Py_LIMITED_API
and non-GraalPy
- PyUnicode_
IS_ ⚠READY Non- Py_LIMITED_API
and neitherGraalPy
norPy_3_12
- PyUnicode_
Intern ⚠From String - PyUnicode_
Intern ⚠Immortal Deprecated Non- Py_3_12
- PyUnicode_
Intern ⚠InPlace - PyUnicode_
IsIdentifier ⚠ - PyUnicode_
Join ⚠ - PyUnicode_
KIND ⚠Non- Py_LIMITED_API
and non-GraalPy
- PyUnicode_
New ⚠Non- Py_LIMITED_API
- PyUnicode_
Partition ⚠ - PyUnicode_
READY ⚠Non- Py_LIMITED_API
and neitherPy_3_12
norGraalPy
- PyUnicode_
RPartition ⚠ - PyUnicode_
RSplit ⚠ - PyUnicode_
Read ⚠Char - PyUnicode_
Replace ⚠ - PyUnicode_
Resize ⚠ - PyUnicode_
Rich ⚠Compare - PyUnicode_
Split ⚠ - PyUnicode_
Splitlines ⚠ - PyUnicode_
Substring ⚠ - PyUnicode_
Tailmatch ⚠ - PyUnicode_
Transform ⚠Decimal ToASCII Non- Py_LIMITED_API
- PyUnicode_
Translate ⚠ - PyUnicode_
Translate ⚠Charmap Non- Py_LIMITED_API
- PyUnicode_
Write ⚠Char - PyVectorcall_
Call ⚠Non- Py_LIMITED_API
andPy_3_8
- PyVectorcall_
Function ⚠Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- PyVectorcall_
NARGS ⚠Non- Py_LIMITED_API
andPy_3_8
- PyWeakref_
Check ⚠ - PyWeakref_
Check ⚠Proxy Non- PyPy
- PyWeakref_
Check ⚠Ref Non- PyPy
- PyWeakref_
Check ⚠RefExact Non- PyPy
- PyWeakref_
GetObject ⚠ - PyWeakref_
NewProxy ⚠ - PyWeakref_
NewRef ⚠ - PyWide
String ⚠List_ Append Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyWide
String ⚠List_ Insert Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- PyWrapper_
New ⚠ - Py_
AddPending ⚠Call - Py_
AtExit ⚠ - Py_
Build ⚠Value - Py_
Bytes ⚠Main - Py_
CLEAR ⚠ - Py_
Compile ⚠String Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Py_
Compile ⚠String ExFlags Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Py_
Compile ⚠String Flags Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- Py_
Compile ⚠String Object Non- Py_LIMITED_API
- Py_
DECREF ⚠ - Py_
DecRef ⚠ - Py_
Decode ⚠Locale - Py_
Ellipsis ⚠ - Py_
Encode ⚠Locale - Py_
EndInterpreter ⚠ - Py_
Enter ⚠Recursive Call Py_3_9
- Py_Exit⚠
- Py_
Exit ⚠Status Exception Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_
False ⚠ - Py_
Fatal ⚠Error - Py_
Finalize ⚠ - Py_
Finalize ⚠Ex - Py_
GETENV ⚠Non- Py_LIMITED_API
and non-Py_3_11
- Py_
GetArgc ⚠Argv Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_
GetBuild ⚠Info - Py_
GetCompiler ⚠ - Py_
GetCopyright ⚠ - Py_
GetExec ⚠Prefix - Py_
GetPath ⚠ - Py_
GetPlatform ⚠ - Py_
GetPrefix ⚠ - Py_
GetProgram ⚠Full Path - Py_
GetProgram ⚠Name - Py_
GetPython ⚠Home - Py_
GetRecursion ⚠Limit - Py_
GetVersion ⚠ - Py_
INCREF ⚠ - Py_
IS_ ⚠TYPE - Py_
IncRef ⚠ - Py_
Initialize ⚠ - Py_
Initialize ⚠Ex - Py_
Initialize ⚠From Config Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_Is⚠
- Py_
IsFalse ⚠ - Py_
IsInitialized ⚠ - Py_
IsNone ⚠ - Py_
IsTrue ⚠ - Py_
Leave ⚠Recursive Call Py_3_9
- Py_Main⚠
- Py_
Make ⚠Pending Calls - Py_
NewInterpreter ⚠ - Py_
NewRef ⚠Py_3_10
- Py_None⚠
- Py_
NotImplemented ⚠ - Py_
PreInitialize ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_
PreInitialize ⚠From Args Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_
PreInitialize ⚠From Bytes Args Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_
REFCNT ⚠ - Py_
Repr ⚠Enter - Py_
Repr ⚠Leave - Py_
RunMain ⚠Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- Py_SIZE⚠
- Py_
SetPath ⚠Non- Py_3_13
- Py_
SetProgram ⚠Name - Py_
SetPython ⚠Home - Py_
SetRecursion ⚠Limit - Py_TYPE⚠
- Py_True⚠
- Py_
XDECREF ⚠ - Py_
XINCREF ⚠ - Py_
XNew ⚠Ref Py_3_10
- _PyBytes_
Resize ⚠Non- Py_LIMITED_API
- _PyCode_
GetExtra ⚠Non- Py_LIMITED_API
- _PyCode_
SetExtra ⚠Non- Py_LIMITED_API
- _PyDict_
Contains_ ⚠Known Hash Non- PyPy
and non-Py_LIMITED_API
andPy_3_10
- _PyDict_
NewPresized ⚠Non- PyPy
and non-Py_LIMITED_API
- _PyDict_
Next ⚠Non- PyPy
and non-Py_LIMITED_API
- _PyDict_
SetItem_ ⚠Known Hash Non- PyPy
and non-Py_LIMITED_API
- _PyErr_
BadInternal ⚠Call - _PyEval_
Eval ⚠Frame Default Non- PyPy
and non-Py_LIMITED_API
and non-Py_3_11
- _PyEval_
Request ⚠Code Extra Index Non- PyPy
and non-Py_LIMITED_API
- _PyFloat_
CAST ⚠Non- Py_LIMITED_API
- _PyImport_
Acquire ⚠Lock Non- Py_LIMITED_API
- _PyImport_
Find ⚠Extension Object Non- Py_LIMITED_API
and non-Py_3_11
- _PyImport_
Fixup ⚠Builtin Non- Py_LIMITED_API
- _PyImport_
Fixup ⚠Extension Object Non- Py_LIMITED_API
- _PyImport_
IsInitialized ⚠Non- Py_LIMITED_API
- _PyImport_
Release ⚠Lock Non- Py_LIMITED_API
- _PyImport_
SetModule ⚠Non- Py_LIMITED_API
- _PyImport_
SetModule ⚠String Non- Py_LIMITED_API
- _PyInterpreter
State_ ⚠GetEval Frame Func Py_3_9
and non-PyPy
and non-Py_LIMITED_API
- Get the frame evaluation function.
- _PyInterpreter
State_ ⚠SetEval Frame Func Py_3_9
and non-PyPy
and non-Py_LIMITED_API
- Set the frame evaluation function.
- _PyLong_
AsByte ⚠Array Non- Py_LIMITED_API
- _PyLong_
From ⚠Byte Array Non- Py_LIMITED_API
- _PyLong_
NumBits ⚠Non- Py_LIMITED_API
- _PyObject_
Call ⚠Function_ SizeT Non- Py_3_13
- _PyObject_
Call ⚠Method_ SizeT Non- Py_3_13
- _PyObject_
Call ⚠NoArg Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyObject_
Fast ⚠Call Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyObject_
Fast ⚠Call Tstate Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyObject_
GC_ ⚠Calloc Non- Py_3_11
and non-Py_LIMITED_API
- _PyObject_
GC_ ⚠Malloc Non- Py_3_11
and non-Py_LIMITED_API
- _PyObject_
GC_ ⚠New - _PyObject_
GC_ ⚠NewVar - _PyObject_
GC_ ⚠Resize - _PyObject_
Make ⚠TpCall Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyObject_
New ⚠ - _PyObject_
NewVar ⚠ - _PyObject_
Vectorcall ⚠Tstate Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyRun_
AnyFile ⚠Object Non- Py_LIMITED_API
- _PyRun_
Interactive ⚠Loop Object Non- Py_LIMITED_API
- _PyRun_
Simple ⚠File Object Non- Py_LIMITED_API
- _PySequence_
Iter ⚠Search Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- _PySet_
Next ⚠Entry Non- Py_LIMITED_API
- _PyStack_
AsDict ⚠Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _PyUnicode_
COMPACT_ ⚠DATA Non- Py_LIMITED_API
and non-GraalPy
- _PyUnicode_
Check ⚠Consistency Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
- _PyUnicode_
NONCOMPACT_ ⚠DATA Non- Py_LIMITED_API
and neitherGraalPy
norPyPy
- _PyUnicode_
Ready ⚠Non- Py_LIMITED_API
- _Py_
Check ⚠Function Result Py_3_8
and neitherPyPy
norGraalPy
and non-Py_LIMITED_API
- _Py_
GetAllocated ⚠Blocks Non- Py_3_11
and non-Py_LIMITED_API
- _Py_
Hash ⚠Bytes Neither Py_LIMITED_API
norPyPy
- _Py_
Initialize ⚠Main Py_3_8
and non-PyPy
and non-Py_LIMITED_API
- _Py_
IsCore ⚠Initialized Py_3_8
and non-PyPy
and non-Py_LIMITED_API
Type Aliases§
- PY_
INT32_ T - PY_
INT64_ T - PY_
UINT32_ T - PY_
UINT64_ T - PyCFunction
- PyCFunction
Fast Py_3_10
or non-Py_LIMITED_API
- PyCFunction
Fast With Keywords Py_3_10
or non-Py_LIMITED_API
- PyCFunction
With Keywords - PyCMethod
Py_3_9
and non-Py_LIMITED_API
- PyCapsule_
Destructor - PyFrame
State Non- Py_LIMITED_API
and neitherPyPy
norGraalPy
norPy_3_11
- PyObject
ObRefcnt Non- Py_3_12
and non-Py_GIL_DISABLED
- PyStruct
Sequence Non- Py_LIMITED_API
- Py_UCS1
- Py_UCS2
- Py_UCS4
- Py_
UNICODE Non- Py_LIMITED_API
- Py_
hash_ t - Py_
intptr_ t - Py_
ssize_ t - Py_
tracefunc Non- Py_LIMITED_API
- Py_
uhash_ t - Py_
uintptr_ t - _PyC
Function Fast Deprecated Py_3_10
or non-Py_LIMITED_API
- _PyC
Function Fast With Keywords Deprecated Py_3_10
or non-Py_LIMITED_API
- _PyFrame
Eval Function Py_3_9
and neitherPy_3_11
norPyPy
and non-Py_LIMITED_API
- allocfunc
- binaryfunc
- descrgetfunc
- descrsetfunc
- destructor
- freefunc
- getattrfunc
- getattrofunc
- getbufferproc
Non- Py_3_11
and non-Py_LIMITED_API
- getiterfunc
- getter
- hashfunc
- initproc
- inquiry
- iternextfunc
- lenfunc
- newfunc
- objobjargproc
- objobjproc
- printfunc
Non- Py_LIMITED_API
- releasebufferproc
Non- Py_3_11
and non-Py_LIMITED_API
- reprfunc
- richcmpfunc
- sendfunc
Non- Py_LIMITED_API
andPy_3_10
- setattrfunc
- setattrofunc
- setter
- ssizeargfunc
- ssizeobjargproc
- ssizessizeargfunc
- ssizessizeobjargproc
- ternaryfunc
- traverseproc
- unaryfunc
- vectorcallfunc
Py_3_8
- visitproc
- wrapperfunc
Non- Py_LIMITED_API
- wrapperfunc_
kwds Non- Py_LIMITED_API
Unions§
- PyMethod
DefPointer - Function types used to implement Python callables.
- PyUnicode
Object Data Non- Py_LIMITED_API