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

index.md

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

1> **Источник:** https://python-all.ru/3.2/c-api/index.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Справочное руководство по Python/C API89В данном руководстве описано API для программистов на C и C++, которые хотят создавать модули расширения или встраивать Python. Оно является дополнением к [*Расширение и встраивание интерпретатора Python*](https://python-all.ru/3.2/extending/index.html#extending-index), в котором описаны общие принципы написания расширений, но нет подробной документации по функциям API.1011- [Введение](https://python-all.ru/3.2/c-api/intro.html)1213  - [Заголовочные файлы](https://python-all.ru/3.2/c-api/intro.html#include-files)14  - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.2/c-api/intro.html#objects-types-and-reference-counts)15  - [Исключения](https://python-all.ru/3.2/c-api/intro.html#exceptions)16  - [Встраивание Python](https://python-all.ru/3.2/c-api/intro.html#embedding-python)17  - [Отладочные сборки](https://python-all.ru/3.2/c-api/intro.html#debugging-builds)18- [Очень высокоуровневый слой](https://python-all.ru/3.2/c-api/veryhigh.html)19- [Подсчёт ссылок](https://python-all.ru/3.2/c-api/refcounting.html)20- [Обработка исключений](https://python-all.ru/3.2/c-api/exceptions.html)2122  - [Объекты исключений](https://python-all.ru/3.2/c-api/exceptions.html#exception-objects)23  - [Объекты исключений Unicode](https://python-all.ru/3.2/c-api/exceptions.html#unicode-exception-objects)24  - [Управление рекурсией](https://python-all.ru/3.2/c-api/exceptions.html#recursion-control)25  - [Стандартные исключения](https://python-all.ru/3.2/c-api/exceptions.html#standard-exceptions)26- [Утилиты](https://python-all.ru/3.2/c-api/utilities.html)2728  - [Утилиты операционной системы](https://python-all.ru/3.2/c-api/sys.html)29  - [Системные функции](https://python-all.ru/3.2/c-api/sys.html#system-functions)30  - [Управление процессами](https://python-all.ru/3.2/c-api/sys.html#process-control)31  - [Импорт модулей](https://python-all.ru/3.2/c-api/import.html)32  - [Поддержка маршалинга данных](https://python-all.ru/3.2/c-api/marshal.html)33  - [Разбор аргументов и сборка значений](https://python-all.ru/3.2/c-api/arg.html)34  - [Преобразование и форматирование строк](https://python-all.ru/3.2/c-api/conversion.html)35  - [Рефлексия](https://python-all.ru/3.2/c-api/reflection.html)36  - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.2/c-api/codec.html)37- [Слой абстрактных объектов](https://python-all.ru/3.2/c-api/abstract.html)3839  - [Протокол объекта](https://python-all.ru/3.2/c-api/object.html)40  - [Протокол чисел](https://python-all.ru/3.2/c-api/number.html)41  - [Протокол последовательностей](https://python-all.ru/3.2/c-api/sequence.html)42  - [Протокол отображений](https://python-all.ru/3.2/c-api/mapping.html)43  - [Протокол итератора](https://python-all.ru/3.2/c-api/iter.html)44  - [Протокол буфера](https://python-all.ru/3.2/c-api/buffer.html)45  - [Старый буферный протокол](https://python-all.ru/3.2/c-api/objbuffer.html)46- [Слой конкретных объектов](https://python-all.ru/3.2/c-api/concrete.html)4748  - [Базовые объекты](https://python-all.ru/3.2/c-api/concrete.html#fundamental-objects)49  - [Числовые объекты](https://python-all.ru/3.2/c-api/concrete.html#numeric-objects)50  - [Объекты последовательностей](https://python-all.ru/3.2/c-api/concrete.html#sequence-objects)51  - [Объекты-отображения](https://python-all.ru/3.2/c-api/concrete.html#mapping-objects)52  - [Прочие объекты](https://python-all.ru/3.2/c-api/concrete.html#other-objects)53- [Инициализация, финализация и потоки](https://python-all.ru/3.2/c-api/init.html)5455  - [Инициализация и финализация интерпретатора](https://python-all.ru/3.2/c-api/init.html#initializing-and-finalizing-the-interpreter)56  - [Параметры уровня процесса](https://python-all.ru/3.2/c-api/init.html#process-wide-parameters)57  - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.2/c-api/init.html#thread-state-and-the-global-interpreter-lock)58  - [Поддержка под-интерпретаторов](https://python-all.ru/3.2/c-api/init.html#sub-interpreter-support)59  - [Асинхронные уведомления](https://python-all.ru/3.2/c-api/init.html#asynchronous-notifications)60  - [Профилирование и трассировка](https://python-all.ru/3.2/c-api/init.html#profiling-and-tracing)61  - [Расширенная поддержка отладчика](https://python-all.ru/3.2/c-api/init.html#advanced-debugger-support)62- [Управление памятью](https://python-all.ru/3.2/c-api/memory.html)6364  - [Обзор](https://python-all.ru/3.2/c-api/memory.html#overview)65  - [Интерфейс памяти](https://python-all.ru/3.2/c-api/memory.html#memory-interface)66  - [Примеры](https://python-all.ru/3.2/c-api/memory.html#examples)67- [Поддержка реализации объектов](https://python-all.ru/3.2/c-api/objimpl.html)6869  - [Выделение объектов в куче](https://python-all.ru/3.2/c-api/allocation.html)70  - [Общие структуры объектов](https://python-all.ru/3.2/c-api/structures.html)71  - [Объекты типов](https://python-all.ru/3.2/c-api/typeobj.html)72  - [Структуры числовых объектов](https://python-all.ru/3.2/c-api/typeobj.html#number-object-structures)73  - [Структуры объектов отображений](https://python-all.ru/3.2/c-api/typeobj.html#mapping-object-structures)74  - [Структуры объектов последовательностей](https://python-all.ru/3.2/c-api/typeobj.html#sequence-object-structures)75  - [Структуры буферных объектов](https://python-all.ru/3.2/c-api/typeobj.html#buffer-object-structures)76  - [Поддержка циклической сборки мусора](https://python-all.ru/3.2/c-api/gcsupport.html)77