cpython/Include
2026-09-30 20:57:20 +02:00
..
cpython [3.13] gh-152132: Test Py_CompileString() in test_capi.test_run (#153470) (#153473) (#153533) 2026-07-10 22:25:22 +00:00
internal [3.13] gh-152132: Fix Py_RunMain() to return an exit code (#153446) (#153455) (#153458) 2026-07-09 22:50:58 +02:00
abstract.h [3.13] gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH-135021) (#135134) 2025-06-04 17:10:51 +02:00
bltinmodule.h
boolobject.h [3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135182) 2025-06-05 15:02:09 +00:00
bytearrayobject.h
bytesobject.h
ceval.h
codecs.h
compile.h
complexobject.h
critical_section.h
datetime.h
descrobject.h
dictobject.h
dynamic_annotations.h [3.13] gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914) (#150964) 2026-06-05 12:29:28 +00:00
enumobject.h
errcode.h
exports.h
fileobject.h
fileutils.h
floatobject.h [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
frameobject.h
genericaliasobject.h
import.h
intrcheck.h
iterobject.h
listobject.h
lock.h [3.13] gh-136759: revert rename lock.h to pylock.h (GH-137041) (#137075) (#137166) 2025-07-28 12:19:32 +00:00
longobject.h
marshal.h
memoryobject.h
methodobject.h
modsupport.h
moduleobject.h
monitoring.h
object.h [3.13] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (#157067) (#157189) 2026-09-08 15:17:38 +00:00
objimpl.h
opcode.h
opcode_ids.h
osdefs.h
osmodule.h
patchlevel.h Python 3.13.16 2026-09-30 20:57:20 +02:00
py_curses.h [3.13] gh-152502: Detect the curses mouse interface portably (GH-152705) (GH-152735) 2026-07-01 05:30:45 +00:00
pyatomic.h
pybuffer.h
pycapsule.h
pydtrace.d
pydtrace.h
pyerrors.h
pyexpat.h [3.13] gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible (GH-149023) 2026-06-09 14:45:59 +00:00
pyframe.h
pyhash.h
pylifecycle.h
pymacconfig.h
pymacro.h [3.13] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (#142304) 2025-12-05 15:52:12 +00:00
pymath.h [3.13] Revert "gh-136006: fix Py_NAN expansion on Solaris systems (GH-136575) (#138734)" (#139239) 2025-09-22 14:18:11 +00:00
pymem.h
pyport.h [3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135) 2025-06-04 17:10:35 +02:00
pystate.h
pystats.h
pystrcmp.h
pystrtod.h
Python.h [3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824) (#137438) 2025-08-05 22:16:24 +01:00
pythonrun.h
pythread.h [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) (GH-137827) 2025-08-17 09:08:14 -07:00
pytypedefs.h
rangeobject.h
README.rst
setobject.h
sliceobject.h
structmember.h
structseq.h
sysmodule.h
traceback.h
tupleobject.h
typeslots.h
unicodeobject.h
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/