瀏覽

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

对象实现支持¶

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

  • 在堆中分配对象
  • 通用物件結構
    • Base object types and macros
    • Implementing functions and methods
    • Accessing attributes of extension types
  • Type 对象
    • 快速参考
      • "tp 槽"
      • sub-slots
      • slot typedefs
    • PyTypeObject Definition
    • PyObject Slots
    • PyVarObject Slots
    • PyTypeObject Slots
    • Heap Types
  • Number Object Structures
  • Mapping Object Structures
  • Sequence Object Structures
  • Buffer Object Structures
  • Async Object Structures
  • Slot Type typedefs
  • 例子
  • 使对象类型支持循环垃圾回收

上個主題

記憶體管理

下個主題

在堆中分配对象

本頁

  • 提交 Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.9.1 Documentation »
  • Python / C API 參考手冊 »
  • |
© 版權所有 2001-2021, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 2月 16, 2021。 Found a bug?
Created using Sphinx 2.4.4.