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

index.md

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

1> **Источник:** https://python-all.ru/3.1/c-api/index.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Справочное руководство по Python/C API89| Версия: | 3.1 |10| --- | --- |11| Дата: | 09 апреля 2012 |1213В данном руководстве описано API для программистов на C и C++, которые хотят создавать модули расширения или встраивать Python. Оно является дополнением к [*Расширение и встраивание интерпретатора Python*](https://python-all.ru/3.1/extending/index.html#extending-index), в котором описаны общие принципы написания расширений, но нет подробной документации по функциям API.1415- [Введение](https://python-all.ru/3.1/c-api/intro.html)1617  - [Заголовочные файлы](https://python-all.ru/3.1/c-api/intro.html#include-files)18  - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.1/c-api/intro.html#objects-types-and-reference-counts)19  - [Исключения](https://python-all.ru/3.1/c-api/intro.html#exceptions)20  - [Встраивание Python](https://python-all.ru/3.1/c-api/intro.html#embedding-python)21  - [Отладочные сборки](https://python-all.ru/3.1/c-api/intro.html#debugging-builds)22- [Очень высокоуровневый слой](https://python-all.ru/3.1/c-api/veryhigh.html)23- [Подсчёт ссылок](https://python-all.ru/3.1/c-api/refcounting.html)24- [Обработка исключений](https://python-all.ru/3.1/c-api/exceptions.html)2526  - [Объекты исключений](https://python-all.ru/3.1/c-api/exceptions.html#exception-objects)27  - [Объекты исключений Unicode](https://python-all.ru/3.1/c-api/exceptions.html#unicode-exception-objects)28  - [Управление рекурсией](https://python-all.ru/3.1/c-api/exceptions.html#recursion-control)29  - [Стандартные исключения](https://python-all.ru/3.1/c-api/exceptions.html#standard-exceptions)30- [Утилиты](https://python-all.ru/3.1/c-api/utilities.html)3132  - [Утилиты операционной системы](https://python-all.ru/3.1/c-api/sys.html)33  - [Системные функции](https://python-all.ru/3.1/c-api/sys.html#system-functions)34  - [Управление процессами](https://python-all.ru/3.1/c-api/sys.html#process-control)35  - [Импорт модулей](https://python-all.ru/3.1/c-api/import.html)36  - [Поддержка маршалинга данных](https://python-all.ru/3.1/c-api/marshal.html)37  - [Разбор аргументов и сборка значений](https://python-all.ru/3.1/c-api/arg.html)38  - [Преобразование и форматирование строк](https://python-all.ru/3.1/c-api/conversion.html)39  - [Рефлексия](https://python-all.ru/3.1/c-api/reflection.html)40  - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.1/c-api/codec.html)41- [Слой абстрактных объектов](https://python-all.ru/3.1/c-api/abstract.html)4243  - [Протокол объекта](https://python-all.ru/3.1/c-api/object.html)44  - [Протокол чисел](https://python-all.ru/3.1/c-api/number.html)45  - [Протокол последовательностей](https://python-all.ru/3.1/c-api/sequence.html)46  - [Протокол отображений](https://python-all.ru/3.1/c-api/mapping.html)47  - [Протокол итератора](https://python-all.ru/3.1/c-api/iter.html)48  - [Протокол буфера](https://python-all.ru/3.1/c-api/buffer.html)49  - [Старый буферный протокол](https://python-all.ru/3.1/c-api/objbuffer.html)50- [Слой конкретных объектов](https://python-all.ru/3.1/c-api/concrete.html)5152  - [Базовые объекты](https://python-all.ru/3.1/c-api/concrete.html#fundamental-objects)53  - [Числовые объекты](https://python-all.ru/3.1/c-api/concrete.html#numeric-objects)54  - [Объекты последовательностей](https://python-all.ru/3.1/c-api/concrete.html#sequence-objects)55  - [Объекты-отображения](https://python-all.ru/3.1/c-api/concrete.html#mapping-objects)56  - [Прочие объекты](https://python-all.ru/3.1/c-api/concrete.html#other-objects)57- [Инициализация, финализация и потоки](https://python-all.ru/3.1/c-api/init.html)5859  - [Инициализация и финализация интерпретатора](https://python-all.ru/3.1/c-api/init.html#initializing-and-finalizing-the-interpreter)60  - [Параметры уровня процесса](https://python-all.ru/3.1/c-api/init.html#process-wide-parameters)61  - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.1/c-api/init.html#thread-state-and-the-global-interpreter-lock)62  - [Поддержка под-интерпретаторов](https://python-all.ru/3.1/c-api/init.html#sub-interpreter-support)63  - [Асинхронные уведомления](https://python-all.ru/3.1/c-api/init.html#asynchronous-notifications)64  - [Профилирование и трассировка](https://python-all.ru/3.1/c-api/init.html#profiling-and-tracing)65  - [Расширенная поддержка отладчика](https://python-all.ru/3.1/c-api/init.html#advanced-debugger-support)66- [Управление памятью](https://python-all.ru/3.1/c-api/memory.html)6768  - [Обзор](https://python-all.ru/3.1/c-api/memory.html#overview)69  - [Интерфейс памяти](https://python-all.ru/3.1/c-api/memory.html#memory-interface)70  - [Примеры](https://python-all.ru/3.1/c-api/memory.html#examples)71- [Поддержка реализации объектов](https://python-all.ru/3.1/c-api/objimpl.html)7273  - [Выделение объектов в куче](https://python-all.ru/3.1/c-api/allocation.html)74  - [Общие структуры объектов](https://python-all.ru/3.1/c-api/structures.html)75  - [Объекты типов](https://python-all.ru/3.1/c-api/typeobj.html)76  - [Структуры числовых объектов](https://python-all.ru/3.1/c-api/typeobj.html#number-object-structures)77  - [Структуры объектов отображений](https://python-all.ru/3.1/c-api/typeobj.html#mapping-object-structures)78  - [Структуры объектов последовательностей](https://python-all.ru/3.1/c-api/typeobj.html#sequence-object-structures)79  - [Структуры буферных объектов](https://python-all.ru/3.1/c-api/typeobj.html#buffer-object-structures)80  - [Поддержка циклической сборки мусора](https://python-all.ru/3.1/c-api/gcsupport.html)81