Logo

上一个主题

内存管理

下一个主题

在堆上分配对象

本页

  • 提交 Bug
  • 显示源代码

导航

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

对象实现支持¶

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

  • 在堆上分配对象
  • 公用对象的结构
    • 基本的对象类型和宏
    • Implementing functions and methods
    • Accessing attributes of extension types
  • 类型对象
    • 快速参考
      • "tp_方法槽"
      • 子方法槽(方法域)
      • slot typedefs
    • PyTypeObject 定义
    • PyObject Slots
    • PyVarObject Slots
    • PyTypeObject 槽
    • Static Types
    • Heap 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.2 Documentation »
  • Python/C API 参考手册 »
  • 对象实现支持
  • |
© 版权所有 2001-2022, 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.

最后更新于 3月 06, 2022. Found a bug?
Created using Sphinx 3.2.1.