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

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

* 概述

  * 包含文件

  * 对象，类型和参考计数

  * 异常

  * Embedding Python

  * 调试构建

* Stable Application Binary Interface

* The Very High Level Layer

* Reference Counting

* Exception Handling

  * Printing and clearing

  * Raising exceptions

  * Issuing warnings

  * Querying the error indicator

  * Signal Handling

  * Exception Classes

  * Exception Objects

  * Unicode Exception Objects

  * Recursion Control

  * Standard Exceptions

  * Standard Warning Categories

* Utilities

  * Operating System Utilities

  * System Functions

  * Process Control

  * Importing Modules

  * Data marshalling support

  * 语句解释及变量编译

  * String conversion and formatting

  * Reflection

  * Codec registry and support functions

* 抽象对象层

  * Object Protocol

  * Number Protocol

  * Sequence Protocol

  * Mapping Protocol

  * Iterator Protocol

  * 缓冲协议

  * Old Buffer Protocol

* Concrete Objects Layer

  * Fundamental Objects

  * Numeric Objects

  * Sequence Objects

  * Container Objects

  * Function 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

  * Raw Memory Interface

  * Memory Interface

  * Object allocators

  * Customize Memory Allocators

  * The pymalloc allocator

  * 示例

* Object Implementation Support

  * 在堆中分配对象

  * Common Object Structures

  * Type Objects

  * Number Object Structures

  * Mapping Object Structures

  * Sequence Object Structures

  * Buffer Object Structures

  * Async Object Structures

  * Supporting Cyclic Garbage Collection

* API 和 ABI 版本管理
