Python logo

上一个主题

内存管理

下一个主题

在堆上分配对象

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python/C API 参考手册 »
  • |
  • |

对象实现支持¶

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

  • 在堆上分配对象
  • 公用对象的结构
  • 类型对象
    • 快速参考
      • "tp_方法槽"
      • 子方法槽(方法域)
      • 槽位 typedef
    • PyTypeObject 定义
    • PyObject 槽位
    • PyVarObject 槽位
    • PyTypeObject 槽
    • 堆类型
  • 数字对象结构体
  • 映射对象结构体
  • 序列对象结构体
  • 缓冲区对象结构体
  • 异步对象结构体
  • 槽位类型 typedef
  • 例子
  • 使对象类型支持循环垃圾回收

上一个主题

内存管理

下一个主题

在堆上分配对象

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python/C API 参考手册 »
  • |
  • |
© 版权所有 2001-2024, 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.

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

最后更新于 2月 08, 2024. Found a bug?
Created using Sphinx 2.4.4.