Python/C API 参考手册¶
本手册描述了希望编写扩展模块或嵌入 Python 的 C 和 C++ 程序员可用的 API。它是 扩展和嵌入 Python 解释器 的配套文档,后者描述了扩展编写的一般原则,但没有详细描述 API 函数。
- 概述
- C API 的稳定性
- 极高层级 API
- 引用计数
- 异常处理
- 定义扩展模块
- 工具
- 抽象对象层
- 具体的对象层
- 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 初始化配置
- 内存管理
- 对象实现支持
- API 和 ABI 版本管理
- 监控 C API
- 生成执行事件