python.md
1> **Источник:** https://python-all.ru/3.6/library/python.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# 29. Службы времени выполнения Python89Модули, описанные в этой главе, предоставляют широкий спектр сервисов, связанных с интерпретатором Python и его взаимодействием с окружением. Вот обзор:1011- [29.1. `sys` – Системно-зависимые параметры и функции](https://python-all.ru/3.6/library/sys.html)12- [29.2. `sysconfig` – Предоставление доступа к информации о конфигурации Python](https://python-all.ru/3.6/library/sysconfig.html)1314 - [29.2.1. Переменные конфигурации](https://python-all.ru/3.6/library/sysconfig.html#configuration-variables)15 - [29.2.2. Пути установки](https://python-all.ru/3.6/library/sysconfig.html#installation-paths)16 - [29.2.3. Другие функции](https://python-all.ru/3.6/library/sysconfig.html#other-functions)17 - [29.2.4. Использование `sysconfig` в качестве скрипта](https://python-all.ru/3.6/library/sysconfig.html#using-sysconfig-as-a-script)18- [29.3. `builtins` – Встроенные объекты](https://python-all.ru/3.6/library/builtins.html)19- [29.4. `__main__` – Окружение скрипта верхнего уровня](https://python-all.ru/3.6/library/__main__.html)20- [29.5. `warnings` – Управление предупреждениями](https://python-all.ru/3.6/library/warnings.html)2122 - [29.5.1. Категории предупреждений](https://python-all.ru/3.6/library/warnings.html#warning-categories)23 - [29.5.2. Фильтр предупреждений](https://python-all.ru/3.6/library/warnings.html#the-warnings-filter)2425 - [29.5.2.1. Фильтры предупреждений по умолчанию](https://python-all.ru/3.6/library/warnings.html#default-warning-filters)26 - [29.5.3. Временное подавление предупреждений](https://python-all.ru/3.6/library/warnings.html#temporarily-suppressing-warnings)27 - [29.5.4. Тестирование предупреждений](https://python-all.ru/3.6/library/warnings.html#testing-warnings)28 - [29.5.5. Обновление кода для новых версий Python](https://python-all.ru/3.6/library/warnings.html#updating-code-for-new-versions-of-python)29 - [29.5.6. Доступные функции](https://python-all.ru/3.6/library/warnings.html#available-functions)30 - [29.5.7. Доступные менеджеры контекста](https://python-all.ru/3.6/library/warnings.html#available-context-managers)31- [29.6. `contextlib` – Утилиты для контекстов оператора `with`](https://python-all.ru/3.6/library/contextlib.html)3233 - [29.6.1. Утилиты](https://python-all.ru/3.6/library/contextlib.html#utilities)34 - [29.6.2. Примеры и рецепты](https://python-all.ru/3.6/library/contextlib.html#examples-and-recipes)3536 - [29.6.2.1. Поддержка переменного числа менеджеров контекста](https://python-all.ru/3.6/library/contextlib.html#supporting-a-variable-number-of-context-managers)37 - [29.6.2.2. Упрощение поддержки одного необязательного менеджера контекста](https://python-all.ru/3.6/library/contextlib.html#simplifying-support-for-single-optional-context-managers)38 - [29.6.2.3. Перехват исключений из методов `__enter__`](https://python-all.ru/3.6/library/contextlib.html#catching-exceptions-from-enter-methods)39 - [29.6.2.4. Очистка в реализации `__enter__`](https://python-all.ru/3.6/library/contextlib.html#cleaning-up-in-an-enter-implementation)40 - [29.6.2.5. Замена любого использования `try-finally` и флаговых переменных](https://python-all.ru/3.6/library/contextlib.html#replacing-any-use-of-try-finally-and-flag-variables)41 - [29.6.2.6. Использование менеджера контекста в качестве декоратора функции](https://python-all.ru/3.6/library/contextlib.html#using-a-context-manager-as-a-function-decorator)42 - [29.6.3. Менеджеры контекста однократного использования, многократного использования и повторно входимые](https://python-all.ru/3.6/library/contextlib.html#single-use-reusable-and-reentrant-context-managers)4344 - [29.6.3.1. Повторно входимые менеджеры контекста](https://python-all.ru/3.6/library/contextlib.html#reentrant-context-managers)45 - [29.6.3.2. Менеджеры контекста многократного использования](https://python-all.ru/3.6/library/contextlib.html#reusable-context-managers)46- [29.7. `abc` – Абстрактные базовые классы](https://python-all.ru/3.6/library/abc.html)47- [29.8. `atexit` – Обработчики выхода](https://python-all.ru/3.6/library/atexit.html)4849 - [29.8.1. Пример использования `atexit`](https://python-all.ru/3.6/library/atexit.html#atexit-example)50- [29.9. `traceback` – Вывод или получение трассировки стека](https://python-all.ru/3.6/library/traceback.html)5152 - [29.9.1. Объекты `TracebackException`](https://python-all.ru/3.6/library/traceback.html#tracebackexception-objects)53 - [29.9.2. Объекты `StackSummary`](https://python-all.ru/3.6/library/traceback.html#stacksummary-objects)54 - [29.9.3. Объекты `FrameSummary`](https://python-all.ru/3.6/library/traceback.html#framesummary-objects)55 - [29.9.4. Примеры трассировки](https://python-all.ru/3.6/library/traceback.html#traceback-examples)56- [29.10. `__future__` – Определения операторов future](https://python-all.ru/3.6/library/__future__.html)57- [29.11. `gc` – Интерфейс сборщика мусора](https://python-all.ru/3.6/library/gc.html)58- [29.12. `inspect` – Инспекция активных объектов](https://python-all.ru/3.6/library/inspect.html)5960 - [29.12.1. Типы и члены](https://python-all.ru/3.6/library/inspect.html#types-and-members)61 - [29.12.2. Получение исходного кода](https://python-all.ru/3.6/library/inspect.html#retrieving-source-code)62 - [29.12.3. Интроспекция вызываемых объектов с помощью объекта Signature](https://python-all.ru/3.6/library/inspect.html#introspecting-callables-with-the-signature-object)63 - [29.12.4. Классы и функции](https://python-all.ru/3.6/library/inspect.html#classes-and-functions)64 - [29.12.5. Стек интерпретатора](https://python-all.ru/3.6/library/inspect.html#the-interpreter-stack)65 - [29.12.6. Статическое получение атрибутов](https://python-all.ru/3.6/library/inspect.html#fetching-attributes-statically)66 - [29.12.7. Текущее состояние генераторов и корутин](https://python-all.ru/3.6/library/inspect.html#current-state-of-generators-and-coroutines)67 - [29.12.8. Битовые флаги объектов кода](https://python-all.ru/3.6/library/inspect.html#code-objects-bit-flags)68 - [29.12.9. Интерфейс командной строки](https://python-all.ru/3.6/library/inspect.html#command-line-interface)69- [29.13. `site` – Хук конфигурации для конкретного сайта](https://python-all.ru/3.6/library/site.html)7071 - [29.13.1. Конфигурация Readline](https://python-all.ru/3.6/library/site.html#readline-configuration)72 - [29.13.2. Содержимое модуля](https://python-all.ru/3.6/library/site.html#module-contents)73- [29.14. `fpectl` – Управление исключениями с плавающей точкой](https://python-all.ru/3.6/library/fpectl.html)7475 - [29.14.1. Пример](https://python-all.ru/3.6/library/fpectl.html#example)76 - [29.14.2. Ограничения и прочие замечания](https://python-all.ru/3.6/library/fpectl.html#limitations-and-other-considerations)77