Python logo

上個主題

記憶體管理

下個主題

在 heap 上分配物件

此頁面

  • 回報錯誤
  • 顯示原始碼

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc3 Documentation »
  • Python/C API 參考手冊 »
  • 物件實作支援
  • |
  • |

物件實作支援¶

本章節說明在定義新的物件型別時所使用的函式、型別和巨集。

  • 在 heap 上分配物件
  • 物件生命週期
    • 生命事件
    • Cyclic Isolate Destruction
    • 函式
  • 通用物件結構
    • Base object types and macros
    • 實作函式與方法
    • Accessing attributes of extension types
      • Member flags
      • Member types
      • Defining Getters and Setters
  • 型別物件結構
    • Quick Reference
      • "tp slots"
      • sub-slots
      • slot typedefs
    • PyTypeObject Definition
    • PyObject Slots
    • PyVarObject Slots
    • PyTypeObject Slots
    • Static Types
    • Heap Types
    • Number Object Structures
    • Mapping Object Structures
    • Sequence Object Structures
    • Buffer Object Structures
    • Async Object Structures
    • Slot Type typedefs
    • 範例
  • 循環垃圾回收的支援
    • Controlling the Garbage Collector State
    • Querying Garbage Collector State

上個主題

記憶體管理

下個主題

在 heap 上分配物件

此頁面

  • 回報錯誤
  • 顯示原始碼
«

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc3 Documentation »
  • Python/C API 參考手冊 »
  • 物件實作支援
  • |
  • |
© 版權所有 2001 Python Software Foundation.
此頁面採用 Python 軟體基金會授權條款第 2 版。
文件中的範例、應用技巧與其他程式碼額外採用了 Zero Clause BSD 授權條款。
更多訊息請見歷史與授權條款。

Python 軟體基金會是一家非營利法人。 敬請捐贈。

最後更新於 9月 23, 2025 (00:19 UTC)。 發現 bug?
以 Sphinx8.2.3建立。