cpython/Include
Savannah Ostrowski 22d79d9840 Python 3.16.0a1
2026-10-13 08:05:54 -07:00
..
cpython gh-158842: Add Py_SETREF() and Py_XSETREF() to the limited C API (#158843) 2026-10-06 21:13:49 +02:00
internal gh-153569: Simplify tokenizer source views and reader ownership (#158849) 2026-10-13 13:01:17 +00:00
abstract.h
audit.h
bltinmodule.h these builtins have to be initialized 2009-05-09 18:10:51 +00:00
boolobject.h gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) 2025-06-05 14:43:47 +02:00
bytearrayobject.h gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815) 2022-06-16 13:49:43 +02:00
bytesobject.h
ceval.h gh-154757: Remove deprecated PyEval_InitThreads() function (#158037) 2026-09-24 10:47:59 +02:00
codecs.h
compile.h gh-109596: Ensure repeated rules in the grammar are not allowed and fix incorrect soft keywords (#109606) 2023-09-22 19:03:23 +01:00
complexobject.h
critical_section.h gh-149225: Expose Py_CriticalSection in Stable ABI (GH-149227) 2026-05-04 17:32:17 +02:00
datetime.h
descrobject.h
dictobject.h gh-141726: Add PyDict_SetDefaultRef() to the Stable ABI (#141727) 2025-11-19 11:38:10 +00:00
dynamic_annotations.h gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (#150914) 2026-06-05 14:11:46 +02:00
enumobject.h
errcode.h
exports.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
fileobject.h gh-158001: Remove global configuration variables from C API (#158020) 2026-09-24 16:42:02 +02:00
fileutils.h
floatobject.h
frameobject.h
genericaliasobject.h
import.h gh-149321: Remove lazy_imports=none startup mode (#149389) 2026-05-19 16:01:15 -07:00
intrcheck.h gh-106320: Remove private _PyOS_IsMainThread() function (#108605) 2023-08-29 03:20:31 +00:00
iterobject.h
listobject.h gh-114329: Fix PyList_GetItemRef() limited C API definition (#117520) 2024-04-03 21:02:42 +00:00
longobject.h
marshal.h gh-79315: Add Include/cpython/marshal.h header (#139725) 2025-10-07 23:49:08 +02:00
memoryobject.h gh-79315: Add Include/cpython/memoryobject.h header (#99723) 2022-11-23 15:44:42 +01:00
methodobject.h
modsupport.h gh-140550: Fix PyABIInfo_VAR macro: avoid ";" (#157539) 2026-09-15 16:24:28 +03:00
moduleobject.h gh-154757: No longer deprecate PyModule_GetFilename() (#158076) 2026-09-24 16:47:40 +02:00
object.h gh-155503: Add more PyType C API tests (#155505) 2026-08-12 14:40:04 +02:00
objimpl.h
opcode.h
opcode_ids.h gh-145855: Remove the DELETE_ATTR bytecode (GH-146216) 2026-07-06 10:41:47 +01:00
osdefs.h
osmodule.h
patchlevel.h Python 3.16.0a1 2026-10-13 08:05:54 -07:00
py_curses.h gh-154055: Gate optional curses functions absent on old SVr4 curses (GH-154057) 2026-07-19 15:26:47 +03:00
pyabi.h gh-148690: Build Windows freethreaded binaries into separate directory and include python3t.dll on GIL-enabled (GH-149218) 2026-05-04 17:45:08 +01:00
pyatomic.h
pybuffer.h
pycapsule.h gh-108240: Add pycore_capsule.h internal header file (#108596) 2023-08-29 01:20:02 +00:00
pydtrace.d
pydtrace.h
pyerrors.h
pyexpat.h gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible (#149023) 2026-05-10 18:36:26 +01:00
pyframe.h
pyhash.h gh-148233: Add Py_HashBuffer() to the limited C API (#157966) 2026-09-23 11:17:39 +02:00
pylifecycle.h gh-158001: Remove Py_SetProgramName() function (#158024) 2026-09-24 12:52:54 +02:00
pymacconfig.h gh-145633: Remove support for ancient ARM platforms with mixed-endian doubles (#145634) 2026-03-11 12:39:24 +01:00
pymacro.h gh-158942: Use more unique variable names in Py_MIN/MAX/ABS() (#158969) 2026-10-08 17:48:43 +00:00
pymath.h
pymem.h
pyport.h gh-156049: Add support for building with HWAsan (#156721) 2026-10-06 19:34:53 +01:00
pystate.h gh-149101: Implement PEP 788 (GH-149116) 2026-05-06 17:39:30 -04:00
pystats.h
pystrcmp.h Merged revisions 59541-59561 via svnmerge from 2007-12-19 02:07:34 +00:00
pystrtod.h gh-106320: Remove private float C API functions (#108430) 2023-08-24 19:09:49 +02:00
Python.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
pythonrun.h gh-130396: Move PYOS_LOG2_STACK_MARGIN to internal headers (#135928) 2025-07-01 15:18:17 +02:00
pythread.h gh-137884: Added threading.get_native_id() on Illumos/Solaris (GH-137927) 2025-08-20 17:10:44 +00:00
pytypedefs.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
rangeobject.h
README.rst gh-101101: Unstable C API tier (PEP 689) (GH-101102) 2023-02-28 09:31:01 +01:00
refcount.h gh-158842: Add Py_SETREF() and Py_XSETREF() to the limited C API (#158843) 2026-10-06 21:13:49 +02:00
setobject.h
sliceobject.h gh-149685: Use the _Py prefix for private C macros (GH-149686) 2026-05-13 19:14:05 +02:00
slots.h gh-149044: Avoid C++ warnings in PySlot_END macro (GH-158866) 2026-10-07 14:12:32 +02:00
slots_generated.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
structmember.h
structseq.h gh-149685: Use the _Py prefix for private C macros (GH-149686) 2026-05-13 19:14:05 +02:00
sysmodule.h gh-158001: Remove Py_SetProgramName() function (#158024) 2026-09-24 12:52:54 +02:00
traceback.h
tupleobject.h
unicodeobject.h
warnings.h
weakrefobject.h gh-133644: remove PyWeakref_GetObject and PyWeakref_GET_OBJECT (GH-133657) 2025-09-24 11:25:56 +02:00

The Python C API
================

The C API is divided into these sections:

1. ``Include/``: Limited API
2. ``Include/cpython/``: CPython implementation details
3. ``Include/cpython/``, names with the ``PyUnstable_`` prefix: API that can
   change between minor releases
4. ``Include/internal/``, and any name with ``_`` prefix: The internal API

Information on changing the C API is available `in the developer guide`_

.. _in the developer guide: https://devguide.python.org/c-api/