PyDocs

Nav

Python Runtime Services

abi_info

sys

data · Added in 3.15
An object containing information about the ABI of the currently running Python interpreter. It should include information that affect the CPython ABI in ways that require a specific build of the interpreter chosen from variants that can co-exist on a single machine. For example, it does not encode the base OS (Linux or Windows), but does include pointer size since some systems support both 32- and 64-bit builds. The available entries are the same on all platforms; e.g. pointer_size is available even on 64-bit-only architectures.
Members of abi_info

b

byteorder
A string indicating the native byte order, either 'big' or 'little'.

d

debug
A Boolean indicating whether the interpreter was built in debug mode.

f

free_threaded
A Boolean indicating whether the interpreter was built with free threading support.

p

pointer_bits
The width of pointers in bits, as an integer, equivalent to 8 * sizeof(void *).
0 Examples
No examples for sys/abi_info.
See Also
No see-alsos for sys/abi_info
0 Notes
No notes for abi_info