index.md
1> **Источник:** https://python-all.ru/3.4/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.4/extending/index.html#extending-index), в котором описаны общие принципы написания расширений, но нет подробной документации по функциям API.1011- [Введение](https://python-all.ru/3.4/c-api/intro.html)1213 - [Заголовочные файлы](https://python-all.ru/3.4/c-api/intro.html#include-files)14 - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.4/c-api/intro.html#objects-types-and-reference-counts)15 - [Исключения](https://python-all.ru/3.4/c-api/intro.html#exceptions)16 - [Встраивание Python](https://python-all.ru/3.4/c-api/intro.html#embedding-python)17 - [Отладочные сборки](https://python-all.ru/3.4/c-api/intro.html#debugging-builds)18- [Стабильный ABI](https://python-all.ru/3.4/c-api/stable.html)19- [Очень высокоуровневый слой](https://python-all.ru/3.4/c-api/veryhigh.html)20- [Подсчёт ссылок](https://python-all.ru/3.4/c-api/refcounting.html)21- [Обработка исключений](https://python-all.ru/3.4/c-api/exceptions.html)2223 - [Объекты исключений](https://python-all.ru/3.4/c-api/exceptions.html#exception-objects)24 - [Объекты исключений Unicode](https://python-all.ru/3.4/c-api/exceptions.html#unicode-exception-objects)25 - [Управление рекурсией](https://python-all.ru/3.4/c-api/exceptions.html#recursion-control)26 - [Стандартные исключения](https://python-all.ru/3.4/c-api/exceptions.html#standard-exceptions)27- [Утилиты](https://python-all.ru/3.4/c-api/utilities.html)2829 - [Утилиты операционной системы](https://python-all.ru/3.4/c-api/sys.html)30 - [Системные функции](https://python-all.ru/3.4/c-api/sys.html#system-functions)31 - [Управление процессами](https://python-all.ru/3.4/c-api/sys.html#process-control)32 - [Импорт модулей](https://python-all.ru/3.4/c-api/import.html)33 - [Поддержка маршалинга данных](https://python-all.ru/3.4/c-api/marshal.html)34 - [Разбор аргументов и сборка значений](https://python-all.ru/3.4/c-api/arg.html)35 - [Преобразование и форматирование строк](https://python-all.ru/3.4/c-api/conversion.html)36 - [Рефлексия](https://python-all.ru/3.4/c-api/reflection.html)37 - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.4/c-api/codec.html)38- [Слой абстрактных объектов](https://python-all.ru/3.4/c-api/abstract.html)3940 - [Протокол объекта](https://python-all.ru/3.4/c-api/object.html)41 - [Протокол чисел](https://python-all.ru/3.4/c-api/number.html)42 - [Протокол последовательностей](https://python-all.ru/3.4/c-api/sequence.html)43 - [Протокол отображений](https://python-all.ru/3.4/c-api/mapping.html)44 - [Протокол итератора](https://python-all.ru/3.4/c-api/iter.html)45 - [Протокол буфера](https://python-all.ru/3.4/c-api/buffer.html)46 - [Старый буферный протокол](https://python-all.ru/3.4/c-api/objbuffer.html)47- [Слой конкретных объектов](https://python-all.ru/3.4/c-api/concrete.html)4849 - [Базовые объекты](https://python-all.ru/3.4/c-api/concrete.html#fundamental-objects)50 - [Числовые объекты](https://python-all.ru/3.4/c-api/concrete.html#numeric-objects)51 - [Объекты последовательностей](https://python-all.ru/3.4/c-api/concrete.html#sequence-objects)52 - [Объекты контейнеров](https://python-all.ru/3.4/c-api/concrete.html#container-objects)53 - [Объекты функций](https://python-all.ru/3.4/c-api/concrete.html#function-objects)54 - [Прочие объекты](https://python-all.ru/3.4/c-api/concrete.html#other-objects)55- [Инициализация, финализация и потоки](https://python-all.ru/3.4/c-api/init.html)5657 - [Инициализация и финализация интерпретатора](https://python-all.ru/3.4/c-api/init.html#initializing-and-finalizing-the-interpreter)58 - [Параметры уровня процесса](https://python-all.ru/3.4/c-api/init.html#process-wide-parameters)59 - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.4/c-api/init.html#thread-state-and-the-global-interpreter-lock)60 - [Поддержка под-интерпретаторов](https://python-all.ru/3.4/c-api/init.html#sub-interpreter-support)61 - [Асинхронные уведомления](https://python-all.ru/3.4/c-api/init.html#asynchronous-notifications)62 - [Профилирование и трассировка](https://python-all.ru/3.4/c-api/init.html#profiling-and-tracing)63 - [Расширенная поддержка отладчика](https://python-all.ru/3.4/c-api/init.html#advanced-debugger-support)64- [Управление памятью](https://python-all.ru/3.4/c-api/memory.html)6566 - [Обзор](https://python-all.ru/3.4/c-api/memory.html#overview)67 - [Интерфейс низкоуровневой памяти](https://python-all.ru/3.4/c-api/memory.html#raw-memory-interface)68 - [Интерфейс памяти](https://python-all.ru/3.4/c-api/memory.html#memory-interface)69 - [Настройка аллокаторов памяти](https://python-all.ru/3.4/c-api/memory.html#customize-memory-allocators)70 - [Настройка распределителя арены PyObject](https://python-all.ru/3.4/c-api/memory.html#customize-pyobject-arena-allocator)71 - [Примеры](https://python-all.ru/3.4/c-api/memory.html#examples)72- [Поддержка реализации объектов](https://python-all.ru/3.4/c-api/objimpl.html)7374 - [Выделение объектов в куче](https://python-all.ru/3.4/c-api/allocation.html)75 - [Общие структуры объектов](https://python-all.ru/3.4/c-api/structures.html)76 - [Объекты типов](https://python-all.ru/3.4/c-api/typeobj.html)77 - [Структуры числовых объектов](https://python-all.ru/3.4/c-api/typeobj.html#number-object-structures)78 - [Структуры объектов отображений](https://python-all.ru/3.4/c-api/typeobj.html#mapping-object-structures)79 - [Структуры объектов последовательностей](https://python-all.ru/3.4/c-api/typeobj.html#sequence-object-structures)80 - [Структуры буферных объектов](https://python-all.ru/3.4/c-api/typeobj.html#buffer-object-structures)81 - [Поддержка циклической сборки мусора](https://python-all.ru/3.4/c-api/gcsupport.html)82- [Версионирование API и ABI](https://python-all.ru/3.4/c-api/apiabiversion.html)83