Python/C API 参考手册
*********************

本手册描述了希望编写扩展模块并将 Python 解释器嵌入其应用程序中的 C 和
C++ 程序员可用的 API。同时可以参阅 扩展和嵌入 Python 解释器 ，其中描述
了扩展编写的一般原则，但没有详细描述 API 函数。

* 概述

  * 包含文件

  * 对象、类型和引用计数

  * 异常

  * Embedding Python

  * 调试构建

* The Very High Level Layer

* Reference Counting

* Exception Handling

  * Unicode Exception Objects

  * Recursion Control

  * Standard Exceptions

  * Standard Warning Categories

  * String Exceptions

* 工具

  * Operating System Utilities

  * System Functions

  * Process Control

  * 导入模块

  * Data marshalling support

  * 语句解释及变量编译

  * 字符串转换与格式化

  * Reflection

  * Codec registry and support functions

* 抽象对象层

  * Object Protocol

  * Number Protocol

  * Sequence Protocol

  * Mapping Protocol

  * 迭代器协议

  * Old Buffer Protocol

* Concrete Objects Layer

  * Fundamental Objects

  * Numeric Objects

  * Sequence Objects

  * Mapping Objects

  * Other Objects

* Initialization, Finalization, and Threads

  * 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

* Memory Management

  * Overview

  * Memory Interface

  * Object allocators

  * The pymalloc allocator

  * 示例

* 对象实现支持

  * 在堆中分配对象

  * Common Object Structures

  * Type Objects

  * Number Object Structures

  * Mapping Object Structures

  * Sequence Object Structures

  * Buffer Object Structures

  * Supporting Cyclic Garbage Collection
