> **Источник:** https://python-all.ru/3.12/c-api/objimpl.html
>
> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.

---

# Поддержка реализации объектов

В этой главе описываются функции, типы и макросы, используемые при определении новых типов объектов.

- [Выделение объектов в куче](https://python-all.ru/3.12/c-api/allocation.html)
- [Общие структуры объектов](https://python-all.ru/3.12/c-api/structures.html)

  - [Базовые типы объектов и макросы](https://python-all.ru/3.12/c-api/structures.html#base-object-types-and-macros)
  - [Реализация функций и методов](https://python-all.ru/3.12/c-api/structures.html#implementing-functions-and-methods)
  - [Доступ к атрибутам типов-расширений](https://python-all.ru/3.12/c-api/structures.html#accessing-attributes-of-extension-types)

    - [Флаги членов](https://python-all.ru/3.12/c-api/structures.html#member-flags)
    - [Типы членов](https://python-all.ru/3.12/c-api/structures.html#member-types)
    - [Определение геттеров и сеттеров](https://python-all.ru/3.12/c-api/structures.html#defining-getters-and-setters)
- [Структуры объектов типов](https://python-all.ru/3.12/c-api/typeobj.html)

  - [Краткий справочник](https://python-all.ru/3.12/c-api/typeobj.html#quick-reference)

    - [“tp slots”](https://python-all.ru/3.12/c-api/typeobj.html#tp-slots)
    - [под-слоты](https://python-all.ru/3.12/c-api/typeobj.html#sub-slots)
    - [typedefs слотов](https://python-all.ru/3.12/c-api/typeobj.html#slot-typedefs)
  - [Определение PyTypeObject](https://python-all.ru/3.12/c-api/typeobj.html#pytypeobject-definition)
  - [Слоты PyObject](https://python-all.ru/3.12/c-api/typeobj.html#pyobject-slots)
  - [Слоты PyVarObject](https://python-all.ru/3.12/c-api/typeobj.html#pyvarobject-slots)
  - [Слоты PyTypeObject](https://python-all.ru/3.12/c-api/typeobj.html#pytypeobject-slots)
  - [Статические типы](https://python-all.ru/3.12/c-api/typeobj.html#static-types)
  - [Типы в куче](https://python-all.ru/3.12/c-api/typeobj.html#heap-types)
  - [Структуры числовых объектов](https://python-all.ru/3.12/c-api/typeobj.html#number-object-structures)
  - [Структуры объектов отображений](https://python-all.ru/3.12/c-api/typeobj.html#mapping-object-structures)
  - [Структуры объектов последовательностей](https://python-all.ru/3.12/c-api/typeobj.html#sequence-object-structures)
  - [Структуры буферных объектов](https://python-all.ru/3.12/c-api/typeobj.html#buffer-object-structures)
  - [Структуры асинхронных объектов](https://python-all.ru/3.12/c-api/typeobj.html#async-object-structures)
  - [typedefs типов слотов](https://python-all.ru/3.12/c-api/typeobj.html#slot-type-typedefs)
  - [Примеры](https://python-all.ru/3.12/c-api/typeobj.html#examples)
- [Поддержка циклической сборки мусора](https://python-all.ru/3.12/c-api/gcsupport.html)

  - [Управление состоянием сборщика мусора](https://python-all.ru/3.12/c-api/gcsupport.html#controlling-the-garbage-collector-state)
  - [Запрос состояния сборщика мусора](https://python-all.ru/3.12/c-api/gcsupport.html#querying-garbage-collector-state)
