Python logo

Chủ đề trước

Memory Management

Chủ đề tiếp

Allocating objects on the heap

This page

  • Report a bug
  • Improve this page
  • Show source
  • Show translation source

Điều hướng

  • chỉ mục
  • các mô-đun |
  • xem tiếp |
  • xem lại |
  • Python logo
  • Python »
  • 3.15.0rc3 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
    • Soft-deprecated aliases
  • 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
    • Ví dụ
  • Supporting Cyclic Garbage Collection
    • Traversal
      • Traversal-safe functions
      • "DuringGC" functions
    • Controlling the Garbage Collector State
    • Querying Garbage Collector State

Chủ đề trước

Memory Management

Chủ đề tiếp

Allocating objects on the heap

This page

  • Report a bug
  • Improve this page
  • Show source
  • Show translation source
«

Điều hướng

  • chỉ mục
  • các mô-đun |
  • xem tiếp |
  • xem lại |
  • Python logo
  • Python »
  • 3.15.0rc3 Documentation »
  • Python/C API reference manual »
  • Object Implementation Support
  • |
  • |
© Bản quyền 2001 Python Software Foundation.
Trang này được cấp phép theo Giấy phép của Tổ chức Phần mềm Python Phiên bản 2.
Các ví dụ, hướng dẫn và mã nguồn khác trong tài liệu này còn được cấp phép bổ sung theo Giấy phép BSD Không Điều khoản.
Xem Lịch sử và Giấy phép để biết thêm thông tin.

Python Software Foundation là một tổ chức phi lợi nhuận. Vui lòng quyên góp.

Cập nhật lần cuối vào thg 10 04, 2026 (03:53 UTC). Tìm thấy lỗi?
Được tạo bằng Sphinx 8.2.3.