This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »

Python/C API 参考手册¶

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

  • 概述
    • 包含文件
    • 对象、类型和引用计数
    • 异常
    • 嵌入Python
    • 调试构建
  • The Very High Level Layer
  • 引用计数
  • 异常处理
    • Unicode Exception Objects
    • 递归控制
    • 标准异常
    • 标准警告类别
    • String Exceptions
  • 工具
    • 操作系统实用程序
    • 系统功能
    • 过程控制
    • 导入模块
    • 数据 marshal 操作支持
    • 解析参数并构建值变量
    • 字符串转换与格式化
    • 反射
    • 编解码器注册与支持功能
  • 抽象对象层
    • 对象协议
    • 数字协议
    • 序列协议
    • 映射协议
    • 迭代器协议
    • 旧缓冲协议
  • 具体的对象层
    • 基本对象
    • 数值对象
    • 序列对象
    • Mapping Objects
    • 其他对象
  • Initialization, Finalization, and Threads
    • Initializing and finalizing the interpreter
    • Process-wide parameters
    • Thread State and the Global Interpreter Lock
    • Sub-interpreter support
    • 异步通知
    • 分析和跟踪
    • 高级调试器支持
  • 内存管理
    • 概述
    • 内存接口
    • 对象分配器
    • The pymalloc allocator
    • 例子
  • 对象实现支持
    • 在堆上分配对象
    • Common Object Structures
    • 类型对象
    • Number Object Structures
    • Mapping Object Structures
    • Sequence Object Structures
    • Buffer Object Structures
    • 使对象类型支持循环垃圾回收

上一个主题

5. 在其它应用程序嵌入 Python

下一个主题

概述

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
© 版权所有 1990-2020, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
Last updated on 6月 19, 2020. 发现了问题?
使用Sphinx2.3.1 创建。