Logo

上一个主题

内存管理

下一个主题

在堆上分配对象

当前页面

  • 报告 Bug
  • 显示源码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.13 Documentation »
  • Python/C API 参考手册 »
  • 对象实现支持
  • |
  • |

对象实现支持¶

本章描述了定义新对象类型时所使用的函数、类型和宏。

  • 在堆上分配对象
  • 公用对象结构体
    • 基本的对象类型和宏
    • 实现函数和方法
    • 访问扩展类型的属性
  • 类型对象
    • 快速参考
      • "tp_方法槽"
      • 子方法槽(方法域)
      • 槽位 typedef
    • PyTypeObject 定义
    • PyObject 槽位
    • PyVarObject 槽位
    • PyTypeObject 槽
    • Static Types
    • 堆类型
  • Number Object Structures
  • Mapping Object Structures
  • Sequence Object Structures
  • Buffer Object Structures
  • Async Object Structures
  • Slot Type typedefs
  • 例子
  • 使对象类型支持循环垃圾回收
    • 控制垃圾回收器状态

上一个主题

内存管理

下一个主题

在堆上分配对象

当前页面

  • 报告 Bug
  • 显示源码
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.13 Documentation »
  • Python/C API 参考手册 »
  • 对象实现支持
  • |
  • |
© 版权所有 2001-2023, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 11月 14, 2023. Found a bug?
Created using Sphinx 3.4.3.