Python logo

Previous topic

記憶體管理

Next topic

在 heap 上分配物件

This page

  • Report a bug
  • Show source

Navigation

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

Previous topic

記憶體管理

Next topic

在 heap 上分配物件

This page

  • Report a bug
  • Show source
«

Navigation

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc2 Documentation »
  • Python/C API 參考手冊 »
  • 物件實作支援
  • |
  • |
© Copyright 2001 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.

Last updated on 9月 10, 2025 (13:11 UTC). Found a bug?
Created using Sphinx 8.2.3.