Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- Python/C API reference manual
- |
- Theme |
Python/C API reference manual¶
This manual documents the API used by C and C++ programmers who want to write extension modules or embed Python. It is a companion to Extending and Embedding the Python Interpreter, which describes the general principles of extension writing but does not document the API functions in detail.
- Introduction
- C API and ABI Stability
- The Very High Level Layer
- Reference Counting
- Exception Handling
- Defining extension modules
- Definition slots
- Utilities
- Operating System Utilities
- System Functions
- Process Control
- Importing Modules
- Data marshalling support
- Parsing arguments and building values
- String conversion and formatting
- Character classification and conversion
- PyHash API
- Reflection
- Codec registry and support functions
- PyTime C API
- Support for Perf Maps
- Expat C API
- Abstract Objects Layer
- Concrete Objects Layer
- Interpreter initialization and finalization
- Thread states and the global interpreter lock
- Asynchronous notifications
- Operating system thread APIs
- Synchronization primitives
- Thread-local storage support
- Multiple interpreters in a Python process
- Profiling and tracing
- Reference tracing
- Performance statistics
- Python Initialization Configuration
- Memory Management
- Object Implementation Support
- API and ABI Versioning
- Monitoring C API
- Generating Execution Events
Previous topic
Embedding Python in Another Application
Next topic
This page
«Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- Python/C API reference manual
- |
- Theme |
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Nov 29, 2026 (04:54 UTC). Found a bug?
Created using Sphinx 9.1.1.