Logo

上個主題

記憶體管理

下個主題

在堆上分配对象

本頁

  • 提交 Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.8.13 Documentation »
  • Python / C API 參考手冊 »
  • |

对象实现支持¶

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

  • 在堆上分配对象
  • 通用物件結構
  • 类型对象
    • 快速参考
      • "tp 槽"
      • 子方法槽(方法域)
      • slot typedefs
    • PyTypeObject 定义
    • PyObject Slots
    • PyVarObject Slots
    • PyTypeObject 槽
    • 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.8.13 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.

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

最後更新於 3月 17, 2022。 Found a bug?
Created using Sphinx 2.4.4.