Python logo

上一主题

Memory Management

下一主题

Allocating Objects on the Heap

This page

  • Report a bug
  • Show source

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • Python/C API Reference Manual »
  • 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
  • Object Life Cycle
    • 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
    • Examples
  • Supporting Cyclic Garbage Collection
    • Controlling the Garbage Collector State
    • Querying Garbage Collector State

上一主题

Memory Management

下一主题

Allocating Objects on the Heap

This page

  • Report a bug
  • Show source
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • Python/C API Reference Manual »
  • Object Implementation Support
  • |
  • |
© 版权 2001 Python Software Foundation.
本页面采用 Python 软件基金会许可证第 2 版授权。
文档中的示例、代码片段及其他代码内容额外采用零条款 BSD 许可证授权。
更多信息请参阅《 历史与许可 》。

Python 软件基金会是一家非营利性公司。 请进行捐赠。

最后更新于10月 06, 2025 (08:21 UTC) 。 发现了错误?
使用Sphinx 8.2.3 创建。