Python logo

前のトピックへ

メモリ管理

次のトピックへ

オブジェクトをヒープ上にメモリ確保する

このページ

  • バグ報告
  • ソースの表示

ナビゲーション

  • 索引
  • モジュール |
  • 次へ |
  • 前へ |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python/C API リファレンスマニュアル »
  • オブジェクト実装サポート (object implementation support)
  • |
  • |

オブジェクト実装サポート (object implementation support)¶

この章では、新しいオブジェクトの型を定義する際に使われる関数、型、およびマクロについて説明します。

  • オブジェクトをヒープ上にメモリ確保する
  • 共通のオブジェクト構造体 (common object structure)
    • 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
    • クイックリファレンス
      • tp スロット
      • sub-slots
      • スロットの定義型 (typedef)
    • PyTypeObject 定義
    • PyObject スロット
    • PyVarObject スロット
    • PyTypeObject スロット
    • Static Types
    • Heap Types
    • 数値オブジェクト構造体
    • マップオブジェクト構造体
    • シーケンスオブジェクト構造体
    • バッファオブジェクト構造体 (buffer object structure)
    • async オブジェクト構造体
    • Slot Type typedefs
    • 使用例
  • 循環参照ガベージコレクションをサポートする
    • Controlling the Garbage Collector State
    • Querying Garbage Collector State

前のトピックへ

メモリ管理

次のトピックへ

オブジェクトをヒープ上にメモリ確保する

このページ

  • バグ報告
  • ソースの表示
«

ナビゲーション

  • 索引
  • モジュール |
  • 次へ |
  • 前へ |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python/C API リファレンスマニュアル »
  • オブジェクト実装サポート (object implementation support)
  • |
  • |
© Copyright 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月 08, 2025 (06:54 UTC) Found a bug?
Created using Sphinx 8.2.3.