index.md
1> **Источник:** https://python-all.ru/3.5/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.5/extending/index.html#extending-index), в котором описаны общие принципы написания расширений, но нет подробной документации по функциям API.1011- [Введение](https://python-all.ru/3.5/c-api/intro.html)1213 - [Заголовочные файлы](https://python-all.ru/3.5/c-api/intro.html#include-files)14 - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.5/c-api/intro.html#objects-types-and-reference-counts)15 - [Исключения](https://python-all.ru/3.5/c-api/intro.html#exceptions)16 - [Встраивание Python](https://python-all.ru/3.5/c-api/intro.html#embedding-python)17 - [Отладочные сборки](https://python-all.ru/3.5/c-api/intro.html#debugging-builds)18- [Стабильный ABI](https://python-all.ru/3.5/c-api/stable.html)19- [Очень высокоуровневый слой](https://python-all.ru/3.5/c-api/veryhigh.html)20- [Подсчёт ссылок](https://python-all.ru/3.5/c-api/refcounting.html)21- [Обработка исключений](https://python-all.ru/3.5/c-api/exceptions.html)2223 - [Вывод и очистка](https://python-all.ru/3.5/c-api/exceptions.html#printing-and-clearing)24 - [Возбуждение исключений](https://python-all.ru/3.5/c-api/exceptions.html#raising-exceptions)25 - [Выдача предупреждений](https://python-all.ru/3.5/c-api/exceptions.html#issuing-warnings)26 - [Запрос индикатора ошибки](https://python-all.ru/3.5/c-api/exceptions.html#querying-the-error-indicator)27 - [Обработка сигналов](https://python-all.ru/3.5/c-api/exceptions.html#signal-handling)28 - [Классы исключений](https://python-all.ru/3.5/c-api/exceptions.html#exception-classes)29 - [Объекты исключений](https://python-all.ru/3.5/c-api/exceptions.html#exception-objects)30 - [Объекты исключений Unicode](https://python-all.ru/3.5/c-api/exceptions.html#unicode-exception-objects)31 - [Управление рекурсией](https://python-all.ru/3.5/c-api/exceptions.html#recursion-control)32 - [Стандартные исключения](https://python-all.ru/3.5/c-api/exceptions.html#standard-exceptions)33 - [Стандартные категории предупреждений](https://python-all.ru/3.5/c-api/exceptions.html#standard-warning-categories)34- [Утилиты](https://python-all.ru/3.5/c-api/utilities.html)3536 - [Утилиты операционной системы](https://python-all.ru/3.5/c-api/sys.html)37 - [Системные функции](https://python-all.ru/3.5/c-api/sys.html#system-functions)38 - [Управление процессами](https://python-all.ru/3.5/c-api/sys.html#process-control)39 - [Импорт модулей](https://python-all.ru/3.5/c-api/import.html)40 - [Поддержка маршалинга данных](https://python-all.ru/3.5/c-api/marshal.html)41 - [Разбор аргументов и сборка значений](https://python-all.ru/3.5/c-api/arg.html)42 - [Преобразование и форматирование строк](https://python-all.ru/3.5/c-api/conversion.html)43 - [Рефлексия](https://python-all.ru/3.5/c-api/reflection.html)44 - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.5/c-api/codec.html)45- [Слой абстрактных объектов](https://python-all.ru/3.5/c-api/abstract.html)4647 - [Протокол объекта](https://python-all.ru/3.5/c-api/object.html)48 - [Протокол чисел](https://python-all.ru/3.5/c-api/number.html)49 - [Протокол последовательностей](https://python-all.ru/3.5/c-api/sequence.html)50 - [Протокол отображений](https://python-all.ru/3.5/c-api/mapping.html)51 - [Протокол итератора](https://python-all.ru/3.5/c-api/iter.html)52 - [Протокол буфера](https://python-all.ru/3.5/c-api/buffer.html)53 - [Старый буферный протокол](https://python-all.ru/3.5/c-api/objbuffer.html)54- [Слой конкретных объектов](https://python-all.ru/3.5/c-api/concrete.html)5556 - [Базовые объекты](https://python-all.ru/3.5/c-api/concrete.html#fundamental-objects)57 - [Числовые объекты](https://python-all.ru/3.5/c-api/concrete.html#numeric-objects)58 - [Объекты последовательностей](https://python-all.ru/3.5/c-api/concrete.html#sequence-objects)59 - [Объекты контейнеров](https://python-all.ru/3.5/c-api/concrete.html#container-objects)60 - [Объекты функций](https://python-all.ru/3.5/c-api/concrete.html#function-objects)61 - [Прочие объекты](https://python-all.ru/3.5/c-api/concrete.html#other-objects)62- [Инициализация, финализация и потоки](https://python-all.ru/3.5/c-api/init.html)6364 - [Инициализация и финализация интерпретатора](https://python-all.ru/3.5/c-api/init.html#initializing-and-finalizing-the-interpreter)65 - [Параметры уровня процесса](https://python-all.ru/3.5/c-api/init.html#process-wide-parameters)66 - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.5/c-api/init.html#thread-state-and-the-global-interpreter-lock)67 - [Поддержка под-интерпретаторов](https://python-all.ru/3.5/c-api/init.html#sub-interpreter-support)68 - [Асинхронные уведомления](https://python-all.ru/3.5/c-api/init.html#asynchronous-notifications)69 - [Профилирование и трассировка](https://python-all.ru/3.5/c-api/init.html#profiling-and-tracing)70 - [Расширенная поддержка отладчика](https://python-all.ru/3.5/c-api/init.html#advanced-debugger-support)71- [Управление памятью](https://python-all.ru/3.5/c-api/memory.html)7273 - [Обзор](https://python-all.ru/3.5/c-api/memory.html#overview)74 - [Интерфейс низкоуровневой памяти](https://python-all.ru/3.5/c-api/memory.html#raw-memory-interface)75 - [Интерфейс памяти](https://python-all.ru/3.5/c-api/memory.html#memory-interface)76 - [Настройка аллокаторов памяти](https://python-all.ru/3.5/c-api/memory.html#customize-memory-allocators)77 - [Настройка распределителя арены PyObject](https://python-all.ru/3.5/c-api/memory.html#customize-pyobject-arena-allocator)78 - [Примеры](https://python-all.ru/3.5/c-api/memory.html#examples)79- [Поддержка реализации объектов](https://python-all.ru/3.5/c-api/objimpl.html)8081 - [Выделение объектов в куче](https://python-all.ru/3.5/c-api/allocation.html)82 - [Общие структуры объектов](https://python-all.ru/3.5/c-api/structures.html)83 - [Объекты типов](https://python-all.ru/3.5/c-api/typeobj.html)84 - [Структуры числовых объектов](https://python-all.ru/3.5/c-api/typeobj.html#number-object-structures)85 - [Структуры объектов отображений](https://python-all.ru/3.5/c-api/typeobj.html#mapping-object-structures)86 - [Структуры объектов последовательностей](https://python-all.ru/3.5/c-api/typeobj.html#sequence-object-structures)87 - [Структуры буферных объектов](https://python-all.ru/3.5/c-api/typeobj.html#buffer-object-structures)88 - [Структуры асинхронных объектов](https://python-all.ru/3.5/c-api/typeobj.html#async-object-structures)89 - [Поддержка циклической сборки мусора](https://python-all.ru/3.5/c-api/gcsupport.html)90- [Версионирование API и ABI](https://python-all.ru/3.5/c-api/apiabiversion.html)91