Logo

上個主題

記憶體管理

下個主題

在 heap 上分配物件

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.2 Documentation »
  • Python/C API 參考手冊 »
  • 对象实现支持
  • |

对象实现支持¶

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

  • 在 heap 上分配物件
  • 通用物件結構
    • 基本的对象类型和宏
    • Implementing functions and methods
    • Accessing attributes of extension types
  • 型別物件
    • 快速参考
      • "tp_方法槽"
      • 子方法槽(方法域)
      • 槽位 typedef
    • PyTypeObject 定义
    • PyObject 槽位
    • PyVarObject 槽位
    • PyTypeObject 槽
    • Static Types
    • Heap Types
  • Number Object Structures
  • Mapping Object Structures
  • Sequence Object Structures
  • Buffer Object Structures
  • Async Object Structures
  • Slot Type typedefs
  • 範例
  • 使对象类型支持循环垃圾回收
    • 控制垃圾回收器状态

上個主題

記憶體管理

下個主題

在 heap 上分配物件

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.2 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.

最後更新於 3月 23, 2023。 Found a bug?
使用 Sphinx 4.5.0 建立。