cpython/Include
Hugo van Kemenade 5e58eaad7c Python 3.15.2
2026-10-25 18:57:51 +02:00
..
cpython [3.15] gh-160208: Add a private wrapper around __STDC_VERSION__ (GH-160376) (GH-160437) 2026-10-23 20:31:48 +02:00
internal [3.15] gh-159111: Update vendored mimalloc to v2.5.2 (gh-159112) (gh-160178) 2026-10-22 09:55:05 -07:00
abstract.h
audit.h
bltinmodule.h
boolobject.h
bytearrayobject.h
bytesobject.h
ceval.h
codecs.h
compile.h
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
dynamic_annotations.h [3.15] gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914) (#150962) 2026-06-05 12:41:19 +00: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
fileutils.h
floatobject.h
frameobject.h
genericaliasobject.h
import.h [3.15] gh-149321: Remove lazy_imports=none startup mode (GH-149389) (#150129) 2026-06-08 22:55:57 +00:00
intrcheck.h
iterobject.h
listobject.h
longobject.h
marshal.h
memoryobject.h
methodobject.h
modsupport.h [3.15] gh-140550: Fix PyABIInfo_VAR macro: avoid ";" (#157494) 2026-09-15 16:24:49 +03:00
moduleobject.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
object.h [3.15] gh-155503: Add more PyType C API tests (#155505) (#159085) 2026-10-09 20:33:40 +00:00
objimpl.h
opcode.h
opcode_ids.h GH-143732: SEND specialization (GH-148963) 2026-05-05 15:19:16 +01:00
osdefs.h
osmodule.h
patchlevel.h Python 3.15.2 2026-10-25 18:57:51 +02:00
py_curses.h [3.15] gh-152502: Detect the curses mouse interface portably (GH-152705) (GH-152707) 2026-06-30 23:59:28 +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 gh-137696: Rename 'fort' parameter to 'order' in PyBuffer_* functions (#137866) 2026-03-19 16:54:27 +05:30
pycapsule.h
pydtrace.d
pydtrace.h
pyerrors.h gh-142349: Implement PEP 810 - Explicit lazy imports (#142351) 2026-02-12 00:15:33 +00:00
pyexpat.h [3.15] gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible (#149645) 2026-05-24 14:36:30 +01:00
pyframe.h
pyhash.h
pylifecycle.h
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 [3.15] gh-160208: Add a private wrapper around __STDC_VERSION__ (GH-160376) (GH-160437) 2026-10-23 20:31:48 +02:00
pymath.h
pymem.h
pyport.h [3.15] gh-160208: Add a private wrapper around __STDC_VERSION__ (GH-160376) (GH-160437) 2026-10-23 20:31:48 +02:00
pystate.h gh-149101: Implement PEP 788 (GH-149116) 2026-05-06 17:39:30 -04:00
pystats.h
pystrcmp.h
pystrtod.h
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
pythread.h
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
refcount.h [3.15] gh-157649: Fix Py_CLEAR()/Py_SETREF() on C++ (#159143) 2026-10-10 20:31:36 +00:00
setobject.h
sliceobject.h [3.15] gh-149685: Use the _Py prefix for private C macros (GH-149686) (GH-149790) 2026-05-13 23:29:08 +02:00
slots.h [3.15] gh-149044: Avoid C++ warnings in PySlot_END macro (GH-158866) (#158965) 2026-10-09 22:11:17 +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 [3.15] gh-149685: Use the _Py prefix for private C macros (GH-149686) (GH-149790) 2026-05-13 23:29:08 +02:00
sysmodule.h
traceback.h
tupleobject.h
unicodeobject.h gh-146175: Soft-deprecate outdated macros; convert internal usage (GH-146178) 2026-03-23 12:42:09 +01:00
warnings.h
weakrefobject.h

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/