index.md
1> **Источник:** https://python-all.ru/3.0/c-api/index.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Справочное руководство по Python/C API89| Версия: | 3.0 |10| --- | --- |11| Дата: | 14 февраля 2009 |1213В данном руководстве описано API для программистов на C и C++, которые хотят создавать модули расширения или встраивать Python. Оно является дополнением к [*Расширение и встраивание интерпретатора Python*](https://python-all.ru/3.0/extending/index.html#extending-index), в котором описаны общие принципы написания расширений, но нет подробной документации по функциям API.1415- [Введение](https://python-all.ru/3.0/c-api/intro.html)1617 - [Заголовочные файлы](https://python-all.ru/3.0/c-api/intro.html#include-files)18 - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.0/c-api/intro.html#objects-types-and-reference-counts)19 - [Исключения](https://python-all.ru/3.0/c-api/intro.html#exceptions)20 - [Встраивание Python](https://python-all.ru/3.0/c-api/intro.html#embedding-python)21 - [Отладочные сборки](https://python-all.ru/3.0/c-api/intro.html#debugging-builds)22- [Очень высокоуровневый слой](https://python-all.ru/3.0/c-api/veryhigh.html)23- [Подсчёт ссылок](https://python-all.ru/3.0/c-api/refcounting.html)24- [Обработка исключений](https://python-all.ru/3.0/c-api/exceptions.html)2526 - [Стандартные исключения](https://python-all.ru/3.0/c-api/exceptions.html#standard-exceptions)27- [Утилиты](https://python-all.ru/3.0/c-api/utilities.html)2829 - [Утилиты операционной системы](https://python-all.ru/3.0/c-api/sys.html)30 - [Системные функции](https://python-all.ru/3.0/c-api/sys.html#system-functions)31 - [Управление процессами](https://python-all.ru/3.0/c-api/sys.html#process-control)32 - [Импорт модулей](https://python-all.ru/3.0/c-api/import.html)33 - [Поддержка маршалинга данных](https://python-all.ru/3.0/c-api/marshal.html)34 - [Разбор аргументов и сборка значений](https://python-all.ru/3.0/c-api/arg.html)35 - [Преобразование и форматирование строк](https://python-all.ru/3.0/c-api/conversion.html)36 - [Рефлексия](https://python-all.ru/3.0/c-api/reflection.html)37- [Слой абстрактных объектов](https://python-all.ru/3.0/c-api/abstract.html)3839 - [Протокол объекта](https://python-all.ru/3.0/c-api/object.html)40 - [Протокол чисел](https://python-all.ru/3.0/c-api/number.html)41 - [Протокол последовательностей](https://python-all.ru/3.0/c-api/sequence.html)42 - [Протокол отображений](https://python-all.ru/3.0/c-api/mapping.html)43 - [Протокол итератора](https://python-all.ru/3.0/c-api/iter.html)44 - [Протокол буфера](https://python-all.ru/3.0/c-api/objbuffer.html)45- [Слой конкретных объектов](https://python-all.ru/3.0/c-api/concrete.html)4647 - [Базовые объекты](https://python-all.ru/3.0/c-api/concrete.html#fundamental-objects)48 - [Числовые объекты](https://python-all.ru/3.0/c-api/concrete.html#numeric-objects)49 - [Объекты последовательностей](https://python-all.ru/3.0/c-api/concrete.html#sequence-objects)50 - [Объекты-отображения](https://python-all.ru/3.0/c-api/concrete.html#mapping-objects)51 - [Прочие объекты](https://python-all.ru/3.0/c-api/concrete.html#other-objects)52- [Инициализация, финализация и потоки](https://python-all.ru/3.0/c-api/init.html)5354 - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.0/c-api/init.html#thread-state-and-the-global-interpreter-lock)55 - [Профилирование и трассировка](https://python-all.ru/3.0/c-api/init.html#profiling-and-tracing)56 - [Расширенная поддержка отладчика](https://python-all.ru/3.0/c-api/init.html#advanced-debugger-support)57- [Управление памятью](https://python-all.ru/3.0/c-api/memory.html)5859 - [Обзор](https://python-all.ru/3.0/c-api/memory.html#overview)60 - [Интерфейс памяти](https://python-all.ru/3.0/c-api/memory.html#memory-interface)61 - [Примеры](https://python-all.ru/3.0/c-api/memory.html#examples)62- [Поддержка реализации объектов](https://python-all.ru/3.0/c-api/objimpl.html)6364 - [Выделение объектов в куче](https://python-all.ru/3.0/c-api/allocation.html)65 - [Общие структуры объектов](https://python-all.ru/3.0/c-api/structures.html)66 - [Объекты типов](https://python-all.ru/3.0/c-api/typeobj.html)67 - [Структуры числовых объектов](https://python-all.ru/3.0/c-api/typeobj.html#number-object-structures)68 - [Структуры объектов отображений](https://python-all.ru/3.0/c-api/typeobj.html#mapping-object-structures)69 - [Структуры объектов последовательностей](https://python-all.ru/3.0/c-api/typeobj.html#sequence-object-structures)70 - [Структуры буферных объектов](https://python-all.ru/3.0/c-api/typeobj.html#buffer-object-structures)71 - [Поддержка циклической сборки мусора](https://python-all.ru/3.0/c-api/gcsupport.html)72