Python/C API 接口手册¶
本手册记录了想要编写扩展模块或嵌入 Python 的 C 和 C++ 程序员使用的 API。同时可以参阅 扩展和嵌入 Python 解释器 ,其中描述了扩展编写的一般原则,但没有详细记录API函数。
- Introduction
- C API Stability
- The Very High Level Layer
- Reference Counting
- Exception Handling
- Utilities
- Abstract Objects Layer
- Concrete Objects Layer
- Initialization, Finalization, and Threads
- Before Python Initialization
- Global configuration variables
- Initializing and finalizing the interpreter
- Process-wide parameters
- Thread State and the Global Interpreter Lock
- Sub-interpreter support
- Asynchronous Notifications
- Profiling and Tracing
- Advanced Debugger Support
- Thread Local Storage Support
- Python Initialization Configuration
- Memory Management
- Object Implementation Support
- API and ABI Versioning