Python logo

上個話題

記憶體管理

下個話題

Allocating objects on the heap

This page

  • 回報臭蟲
  • Improve this page
  • 顯示來源碼
  • Show translation source

導航

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

Object Implementation Support¶

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

  • Allocating objects on the heap
    • Soft-deprecated aliases
  • 物件生命週期
    • Life Events
    • Cyclic Isolate Destruction
    • Functions
  • Common Object Structures
    • Base object types and macros
    • Implementing functions and methods
    • Accessing attributes of extension types
      • Member flags
      • Member types
      • Defining Getters and Setters
  • Type Object Structures
    • 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
    • 範例
  • Supporting Cyclic Garbage Collection
    • Traversal
      • Traversal-safe functions
      • "DuringGC" functions
    • Controlling the Garbage Collector State
    • Querying Garbage Collector State

上個話題

記憶體管理

下個話題

Allocating objects on the heap

This page

  • 回報臭蟲
  • Improve this page
  • 顯示來源碼
  • Show translation source
«

導航

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

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

最後更新於 5月 25, 2026 (11:48 UTC)。 發現 bug?
以 Sphinx8.2.3建立。