python.md
1> **Источник:** https://python-all.ru/3.9/library/python.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Службы времени выполнения Python89Модули, описанные в этой главе, предоставляют широкий спектр сервисов, связанных с интерпретатором Python и его взаимодействием с окружением. Вот обзор:1011- [`sys` – Системно-зависимые параметры и функции](https://python-all.ru/3.9/library/sys.html)12- [`sysconfig` – Предоставление доступа к конфигурационной информации Python](https://python-all.ru/3.9/library/sysconfig.html)1314 - [Переменные конфигурации](https://python-all.ru/3.9/library/sysconfig.html#configuration-variables)15 - [Пути установки](https://python-all.ru/3.9/library/sysconfig.html#installation-paths)16 - [Другие функции](https://python-all.ru/3.9/library/sysconfig.html#other-functions)17 - [Использование `sysconfig` в качестве скрипта](https://python-all.ru/3.9/library/sysconfig.html#using-sysconfig-as-a-script)18- [`builtins` – Встроенные объекты](https://python-all.ru/3.9/library/builtins.html)19- [`__main__` – среда сценария верхнего уровня](https://python-all.ru/3.9/library/__main__.html)20- [`warnings` – Управление предупреждениями](https://python-all.ru/3.9/library/warnings.html)2122 - [Категории предупреждений](https://python-all.ru/3.9/library/warnings.html#warning-categories)23 - [Фильтр предупреждений](https://python-all.ru/3.9/library/warnings.html#the-warnings-filter)2425 - [Описание фильтров предупреждений](https://python-all.ru/3.9/library/warnings.html#describing-warning-filters)26 - [Фильтр предупреждений по умолчанию](https://python-all.ru/3.9/library/warnings.html#default-warning-filter)27 - [Переопределение фильтра по умолчанию](https://python-all.ru/3.9/library/warnings.html#overriding-the-default-filter)28 - [Временное подавление предупреждений](https://python-all.ru/3.9/library/warnings.html#temporarily-suppressing-warnings)29 - [Тестирование предупреждений](https://python-all.ru/3.9/library/warnings.html#testing-warnings)30 - [Обновление кода для новых версий зависимостей](https://python-all.ru/3.9/library/warnings.html#updating-code-for-new-versions-of-dependencies)31 - [Доступные функции](https://python-all.ru/3.9/library/warnings.html#available-functions)32 - [Доступные контекстные менеджеры](https://python-all.ru/3.9/library/warnings.html#available-context-managers)33- [`dataclasses` – Классы данных](https://python-all.ru/3.9/library/dataclasses.html)3435 - [Декораторы, классы и функции уровня модуля](https://python-all.ru/3.9/library/dataclasses.html#module-level-decorators-classes-and-functions)36 - [Обработка после инициализации](https://python-all.ru/3.9/library/dataclasses.html#post-init-processing)37 - [Переменные класса](https://python-all.ru/3.9/library/dataclasses.html#class-variables)38 - [Переменные только для инициализации](https://python-all.ru/3.9/library/dataclasses.html#init-only-variables)39 - [Неизменяемые экземпляры](https://python-all.ru/3.9/library/dataclasses.html#frozen-instances)40 - [Наследование](https://python-all.ru/3.9/library/dataclasses.html#inheritance)41 - [Функции-фабрики по умолчанию](https://python-all.ru/3.9/library/dataclasses.html#default-factory-functions)42 - [Изменяемые значения по умолчанию](https://python-all.ru/3.9/library/dataclasses.html#mutable-default-values)43 - [Исключения](https://python-all.ru/3.9/library/dataclasses.html#exceptions)44- [`contextlib` – Утилиты для контекстов оператора `with`](https://python-all.ru/3.9/library/contextlib.html)4546 - [Утилиты](https://python-all.ru/3.9/library/contextlib.html#utilities)47 - [Примеры и рецепты](https://python-all.ru/3.9/library/contextlib.html#examples-and-recipes)4849 - [Поддержка переменного числа менеджеров контекста](https://python-all.ru/3.9/library/contextlib.html#supporting-a-variable-number-of-context-managers)50 - [Перехват исключений из методов `__enter__`](https://python-all.ru/3.9/library/contextlib.html#catching-exceptions-from-enter-methods)51 - [Очистка в реализации `__enter__`](https://python-all.ru/3.9/library/contextlib.html#cleaning-up-in-an-enter-implementation)52 - [Замена использования `try-finally` и флаговых переменных](https://python-all.ru/3.9/library/contextlib.html#replacing-any-use-of-try-finally-and-flag-variables)53 - [Использование менеджера контекста в качестве декоратора функции](https://python-all.ru/3.9/library/contextlib.html#using-a-context-manager-as-a-function-decorator)54 - [Одноразовые, многократно используемые и реентерабельные менеджеры контекста](https://python-all.ru/3.9/library/contextlib.html#single-use-reusable-and-reentrant-context-managers)5556 - [Реентерабельные менеджеры контекста](https://python-all.ru/3.9/library/contextlib.html#reentrant-context-managers)57 - [Повторно используемые менеджеры контекста](https://python-all.ru/3.9/library/contextlib.html#reusable-context-managers)58- [`abc` – Абстрактные базовые классы](https://python-all.ru/3.9/library/abc.html)59- [`atexit` – Обработчики выхода](https://python-all.ru/3.9/library/atexit.html)6061 - [`atexit` Пример](https://python-all.ru/3.9/library/atexit.html#atexit-example)62- [`traceback` – Печать или получение трассировки стека](https://python-all.ru/3.9/library/traceback.html)6364 - [Объекты `TracebackException`](https://python-all.ru/3.9/library/traceback.html#tracebackexception-objects)65 - [Объекты `StackSummary`](https://python-all.ru/3.9/library/traceback.html#stacksummary-objects)66 - [Объекты `FrameSummary`](https://python-all.ru/3.9/library/traceback.html#framesummary-objects)67 - [Примеры Traceback](https://python-all.ru/3.9/library/traceback.html#traceback-examples)68- [`__future__` – Определения операторов future](https://python-all.ru/3.9/library/__future__.html)69- [`gc` – Интерфейс сборщика мусора](https://python-all.ru/3.9/library/gc.html)70- [`inspect` – Инспекция живых объектов](https://python-all.ru/3.9/library/inspect.html)7172 - [Типы и члены](https://python-all.ru/3.9/library/inspect.html#types-and-members)73 - [Получение исходного кода](https://python-all.ru/3.9/library/inspect.html#retrieving-source-code)74 - [Интроспекция вызываемых объектов с помощью объекта Signature](https://python-all.ru/3.9/library/inspect.html#introspecting-callables-with-the-signature-object)75 - [Классы и функции](https://python-all.ru/3.9/library/inspect.html#classes-and-functions)76 - [Стек интерпретатора](https://python-all.ru/3.9/library/inspect.html#the-interpreter-stack)77 - [Получение атрибутов статически](https://python-all.ru/3.9/library/inspect.html#fetching-attributes-statically)78 - [Текущее состояние генераторов и корутин](https://python-all.ru/3.9/library/inspect.html#current-state-of-generators-and-coroutines)79 - [Битовые флаги объектов кода](https://python-all.ru/3.9/library/inspect.html#code-objects-bit-flags)80 - [Интерфейс командной строки](https://python-all.ru/3.9/library/inspect.html#command-line-interface)81- [`site` – Перехватчик конфигурации для конкретного сайта](https://python-all.ru/3.9/library/site.html)8283 - [Конфигурация readline](https://python-all.ru/3.9/library/site.html#readline-configuration)84 - [Содержание модуля](https://python-all.ru/3.9/library/site.html#module-contents)85 - [Интерфейс командной строки](https://python-all.ru/3.9/library/site.html#command-line-interface)86