Python logo

上個主題

記憶體管理

下個主題

在 heap 上分配物件

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python/C API 參考手冊 »
  • Object Implementation Support
  • |
  • |

Object Implementation Support¶

This chapter describes the functions, types, and macros used when defining new object types.

  • 在 heap 上分配物件
  • 通用物件結構
    • 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.13.3 Documentation »
  • Python/C API 參考手冊 »
  • Object Implementation Support
  • |
  • |
© 版權 2001-2025, 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.

最後更新於 5月 20, 2025 (03:13 UTC)。 Found a bug?
使用 Sphinx 8.2.3 建立。