Документация Python неофициальный перевод

objimpl.md

52 строк · 4.5 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3/c-api/objimpl.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Поддержка реализации объектов89В этой главе описываются функции, типы и макросы, используемые при определении новых типов объектов.1011- [Выделение объектов в куче](https://python-all.ru/3/c-api/allocation.html)1213  - [Мягко устаревшие псевдонимы](https://python-all.ru/3/c-api/allocation.html#soft-deprecated-aliases)14- [Жизненный цикл объекта](https://python-all.ru/3/c-api/lifecycle.html)1516  - [События жизненного цикла](https://python-all.ru/3/c-api/lifecycle.html#life-events)17  - [Уничтожение циклических изолятов](https://python-all.ru/3/c-api/lifecycle.html#cyclic-isolate-destruction)18  - [Функции](https://python-all.ru/3/c-api/lifecycle.html#functions)19- [Общие структуры объектов](https://python-all.ru/3/c-api/structures.html)2021  - [Базовые типы объектов и макросы](https://python-all.ru/3/c-api/structures.html#base-object-types-and-macros)22  - [Реализация функций и методов](https://python-all.ru/3/c-api/structures.html#implementing-functions-and-methods)23  - [Доступ к атрибутам типов-расширений](https://python-all.ru/3/c-api/structures.html#accessing-attributes-of-extension-types)2425    - [Флаги членов](https://python-all.ru/3/c-api/structures.html#member-flags)26    - [Типы членов](https://python-all.ru/3/c-api/structures.html#member-types)27    - [Определение геттеров и сеттеров](https://python-all.ru/3/c-api/structures.html#defining-getters-and-setters)28- [Структуры объектов типов](https://python-all.ru/3/c-api/typeobj.html)2930  - [Краткий справочник](https://python-all.ru/3/c-api/typeobj.html#quick-reference)3132    - [“tp slots”](https://python-all.ru/3/c-api/typeobj.html#tp-slots)33    - [под-слоты](https://python-all.ru/3/c-api/typeobj.html#sub-slots)34    - [typedefs слотов](https://python-all.ru/3/c-api/typeobj.html#slot-typedefs)35  - [Определение PyTypeObject](https://python-all.ru/3/c-api/typeobj.html#pytypeobject-definition)36  - [Слоты PyObject](https://python-all.ru/3/c-api/typeobj.html#pyobject-slots)37  - [Слоты PyVarObject](https://python-all.ru/3/c-api/typeobj.html#pyvarobject-slots)38  - [Слоты PyTypeObject](https://python-all.ru/3/c-api/typeobj.html#pytypeobject-slots)39  - [Статические типы](https://python-all.ru/3/c-api/typeobj.html#static-types)40  - [Типы в куче](https://python-all.ru/3/c-api/typeobj.html#heap-types)41  - [Структуры числовых объектов](https://python-all.ru/3/c-api/typeobj.html#number-object-structures)42  - [Структуры объектов отображений](https://python-all.ru/3/c-api/typeobj.html#mapping-object-structures)43  - [Структуры объектов последовательностей](https://python-all.ru/3/c-api/typeobj.html#sequence-object-structures)44  - [Структуры буферных объектов](https://python-all.ru/3/c-api/typeobj.html#buffer-object-structures)45  - [Структуры асинхронных объектов](https://python-all.ru/3/c-api/typeobj.html#async-object-structures)46  - [typedefs типов слотов](https://python-all.ru/3/c-api/typeobj.html#slot-type-typedefs)47  - [Примеры](https://python-all.ru/3/c-api/typeobj.html#examples)48- [Поддержка циклической сборки мусора](https://python-all.ru/3/c-api/gcsupport.html)4950  - [Управление состоянием сборщика мусора](https://python-all.ru/3/c-api/gcsupport.html#controlling-the-garbage-collector-state)51  - [Запрос состояния сборщика мусора](https://python-all.ru/3/c-api/gcsupport.html#querying-garbage-collector-state)52