Python/C API reference manual¶
This manual documents the API used by C and C++ programmers who want to writeextension modules or embed Python. It is a companion toExtending and Embedding the Python Interpreter,which describes the general principles of extension writing but does notdocument the API functions in detail.
- Introduction
- C API and ABI Stability
- The Very High Level Layer
- Reference Counting
- Exception Handling
- Defining extension modules
- Utilities
- 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
- Python Initialization Configuration
- Memory Management
- Object Implementation Support
- API and ABI Versioning
- Monitoring C API
- Generating Execution Events