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

contents.md

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

1> **Источник:** https://python-all.ru/3.2/contents.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Содержание документации Python89- [Что нового в Python](https://python-all.ru/3.2/whatsnew/index.html)1011  - [Что нового в Python 3.2](https://python-all.ru/3.2/whatsnew/3.2.html)1213    - [PEP 384: Определение стабильного ABI](https://python-all.ru/3.2/whatsnew/3.2.html#pep-384-defining-a-stable-abi)14    - [PEP 389: Модуль разбора командной строки argparse](https://python-all.ru/3.2/whatsnew/3.2.html#pep-389-argparse-command-line-parsing-module)15    - [PEP 391: Конфигурация логирования на основе словарей](https://python-all.ru/3.2/whatsnew/3.2.html#pep-391-dictionary-based-configuration-for-logging)16    - [PEP 3148: модуль `concurrent.futures`](https://python-all.ru/3.2/whatsnew/3.2.html#pep-3148-the-concurrent-futures-module)17    - [PEP 3147: Каталоги репозитория PYC](https://python-all.ru/3.2/whatsnew/3.2.html#pep-3147-pyc-repository-directories)18    - [PEP 3149: Файлы .so с тегом версии ABI](https://python-all.ru/3.2/whatsnew/3.2.html#pep-3149-abi-version-tagged-so-files)19    - [PEP 3333: Интерфейс шлюза веб-сервера Python v1.0.1](https://python-all.ru/3.2/whatsnew/3.2.html#pep-3333-python-web-server-gateway-interface-v1-0-1)20    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/3.2.html#other-language-changes)21    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.2/whatsnew/3.2.html#new-improved-and-deprecated-modules)2223      - [email](https://python-all.ru/3.2/whatsnew/3.2.html#email)24      - [elementtree](https://python-all.ru/3.2/whatsnew/3.2.html#elementtree)25      - [functools](https://python-all.ru/3.2/whatsnew/3.2.html#functools)26      - [itertools](https://python-all.ru/3.2/whatsnew/3.2.html#itertools)27      - [collections](https://python-all.ru/3.2/whatsnew/3.2.html#collections)28      - [threading](https://python-all.ru/3.2/whatsnew/3.2.html#threading)29      - [datetime и time](https://python-all.ru/3.2/whatsnew/3.2.html#datetime-and-time)30      - [math](https://python-all.ru/3.2/whatsnew/3.2.html#math)31      - [abc](https://python-all.ru/3.2/whatsnew/3.2.html#abc)32      - [io](https://python-all.ru/3.2/whatsnew/3.2.html#io)33      - [reprlib](https://python-all.ru/3.2/whatsnew/3.2.html#reprlib)34      - [logging](https://python-all.ru/3.2/whatsnew/3.2.html#logging)35      - [csv](https://python-all.ru/3.2/whatsnew/3.2.html#csv)36      - [contextlib](https://python-all.ru/3.2/whatsnew/3.2.html#contextlib)37      - [decimal и fractions](https://python-all.ru/3.2/whatsnew/3.2.html#decimal-and-fractions)38      - [ftp](https://python-all.ru/3.2/whatsnew/3.2.html#ftp)39      - [popen](https://python-all.ru/3.2/whatsnew/3.2.html#popen)40      - [select](https://python-all.ru/3.2/whatsnew/3.2.html#select)41      - [gzip и zipfile](https://python-all.ru/3.2/whatsnew/3.2.html#gzip-and-zipfile)42      - [tarfile](https://python-all.ru/3.2/whatsnew/3.2.html#tarfile)43      - [hashlib](https://python-all.ru/3.2/whatsnew/3.2.html#hashlib)44      - [ast](https://python-all.ru/3.2/whatsnew/3.2.html#ast)45      - [os](https://python-all.ru/3.2/whatsnew/3.2.html#os)46      - [shutil](https://python-all.ru/3.2/whatsnew/3.2.html#shutil)47      - [sqlite3](https://python-all.ru/3.2/whatsnew/3.2.html#sqlite3)48      - [html](https://python-all.ru/3.2/whatsnew/3.2.html#html)49      - [сокет](https://python-all.ru/3.2/whatsnew/3.2.html#socket)50      - [ssl](https://python-all.ru/3.2/whatsnew/3.2.html#ssl)51      - [nntp](https://python-all.ru/3.2/whatsnew/3.2.html#nntp)52      - [сертификаты](https://python-all.ru/3.2/whatsnew/3.2.html#certificates)53      - [imaplib](https://python-all.ru/3.2/whatsnew/3.2.html#imaplib)54      - [http.client](https://python-all.ru/3.2/whatsnew/3.2.html#http-client)55      - [unittest](https://python-all.ru/3.2/whatsnew/3.2.html#unittest)56      - [random](https://python-all.ru/3.2/whatsnew/3.2.html#random)57      - [poplib](https://python-all.ru/3.2/whatsnew/3.2.html#poplib)58      - [asyncore](https://python-all.ru/3.2/whatsnew/3.2.html#asyncore)59      - [tempfile](https://python-all.ru/3.2/whatsnew/3.2.html#tempfile)60      - [inspect](https://python-all.ru/3.2/whatsnew/3.2.html#inspect)61      - [pydoc](https://python-all.ru/3.2/whatsnew/3.2.html#pydoc)62      - [dis](https://python-all.ru/3.2/whatsnew/3.2.html#dis)63      - [dbm](https://python-all.ru/3.2/whatsnew/3.2.html#dbm)64      - [ctypes](https://python-all.ru/3.2/whatsnew/3.2.html#ctypes)65      - [site](https://python-all.ru/3.2/whatsnew/3.2.html#site)66      - [sysconfig](https://python-all.ru/3.2/whatsnew/3.2.html#sysconfig)67      - [pdb](https://python-all.ru/3.2/whatsnew/3.2.html#pdb)68      - [configparser](https://python-all.ru/3.2/whatsnew/3.2.html#configparser)69      - [urllib.parse](https://python-all.ru/3.2/whatsnew/3.2.html#urllib-parse)70      - [mailbox](https://python-all.ru/3.2/whatsnew/3.2.html#mailbox)71      - [turtledemo](https://python-all.ru/3.2/whatsnew/3.2.html#turtledemo)72    - [Многопоточность](https://python-all.ru/3.2/whatsnew/3.2.html#multi-threading)73    - [Оптимизации](https://python-all.ru/3.2/whatsnew/3.2.html#optimizations)74    - [Юникод](https://python-all.ru/3.2/whatsnew/3.2.html#unicode)75    - [Кодеки](https://python-all.ru/3.2/whatsnew/3.2.html#codecs)76    - [Документация](https://python-all.ru/3.2/whatsnew/3.2.html#documentation)77    - [IDLE](https://python-all.ru/3.2/whatsnew/3.2.html#idle)78    - [Репозиторий кода](https://python-all.ru/3.2/whatsnew/3.2.html#code-repository)79    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/3.2.html#build-and-c-api-changes)80    - [Переход на Python 3.2](https://python-all.ru/3.2/whatsnew/3.2.html#porting-to-python-3-2)81  - [Что нового в Python 3.1](https://python-all.ru/3.2/whatsnew/3.1.html)8283    - [PEP 372: Упорядоченные словари](https://python-all.ru/3.2/whatsnew/3.1.html#pep-372-ordered-dictionaries)84    - [PEP 378: Спецификатор формата для разделителя тысяч](https://python-all.ru/3.2/whatsnew/3.1.html#pep-378-format-specifier-for-thousands-separator)85    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/3.1.html#other-language-changes)86    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.2/whatsnew/3.1.html#new-improved-and-deprecated-modules)87    - [Оптимизации](https://python-all.ru/3.2/whatsnew/3.1.html#optimizations)88    - [IDLE](https://python-all.ru/3.2/whatsnew/3.1.html#idle)89    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/3.1.html#build-and-c-api-changes)90    - [Переход на Python 3.1](https://python-all.ru/3.2/whatsnew/3.1.html#porting-to-python-3-1)91  - [Что нового в Python 3.0](https://python-all.ru/3.2/whatsnew/3.0.html)9293    - [Типичные трудности](https://python-all.ru/3.2/whatsnew/3.0.html#common-stumbling-blocks)9495      - [Print – это функция](https://python-all.ru/3.2/whatsnew/3.0.html#print-is-a-function)96      - [Представления и итераторы вместо списков](https://python-all.ru/3.2/whatsnew/3.0.html#views-and-iterators-instead-of-lists)97      - [Сравнение на упорядочивание](https://python-all.ru/3.2/whatsnew/3.0.html#ordering-comparisons)98      - [Целые числа](https://python-all.ru/3.2/whatsnew/3.0.html#integers)99      - [Текст против данных: вместо Unicode и 8-битных строк](https://python-all.ru/3.2/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit)100    - [Обзор изменений синтаксиса](https://python-all.ru/3.2/whatsnew/3.0.html#overview-of-syntax-changes)101102      - [Новый синтаксис](https://python-all.ru/3.2/whatsnew/3.0.html#new-syntax)103      - [Изменённый синтаксис](https://python-all.ru/3.2/whatsnew/3.0.html#changed-syntax)104      - [Удалённый синтаксис](https://python-all.ru/3.2/whatsnew/3.0.html#removed-syntax)105    - [Изменения, уже присутствовавшие в Python 2.6](https://python-all.ru/3.2/whatsnew/3.0.html#changes-already-present-in-python-2-6)106    - [Изменения в библиотеке](https://python-all.ru/3.2/whatsnew/3.0.html#library-changes)107    - [**PEP 3101**: Новый подход к форматированию строк](https://python-all.ru/3.2/whatsnew/3.0.html#pep-3101-a-new-approach-to-string-formatting)108    - [Изменения в исключениях](https://python-all.ru/3.2/whatsnew/3.0.html#changes-to-exceptions)109    - [Прочие изменения](https://python-all.ru/3.2/whatsnew/3.0.html#miscellaneous-other-changes)110111      - [Операторы и специальные методы](https://python-all.ru/3.2/whatsnew/3.0.html#operators-and-special-methods)112      - [Встроенные функции](https://python-all.ru/3.2/whatsnew/3.0.html#builtins)113    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/3.0.html#build-and-c-api-changes)114    - [Производительность](https://python-all.ru/3.2/whatsnew/3.0.html#performance)115    - [Переход на Python 3.0](https://python-all.ru/3.2/whatsnew/3.0.html#porting-to-python-3-0)116  - [Что нового в Python 2.7](https://python-all.ru/3.2/whatsnew/2.7.html)117118    - [Будущее Python 2.x](https://python-all.ru/3.2/whatsnew/2.7.html#the-future-for-python-2-x)119    - [Возможности Python 3.1](https://python-all.ru/3.2/whatsnew/2.7.html#python-3-1-features)120    - [PEP 372: Добавление упорядоченного словаря в collections](https://python-all.ru/3.2/whatsnew/2.7.html#pep-372-adding-an-ordered-dictionary-to-collections)121    - [PEP 378: Спецификатор формата для разделителя тысяч](https://python-all.ru/3.2/whatsnew/2.7.html#pep-378-format-specifier-for-thousands-separator)122    - [PEP 389: Модуль argparse для разбора командной строки](https://python-all.ru/3.2/whatsnew/2.7.html#pep-389-the-argparse-module-for-parsing-command-lines)123    - [PEP 391: Конфигурация логирования на основе словаря](https://python-all.ru/3.2/whatsnew/2.7.html#pep-391-dictionary-based-configuration-for-logging)124    - [PEP 3106: Представления словаря](https://python-all.ru/3.2/whatsnew/2.7.html#pep-3106-dictionary-views)125    - [PEP 3137: Объект memoryview](https://python-all.ru/3.2/whatsnew/2.7.html#pep-3137-the-memoryview-object)126    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/2.7.html#other-language-changes)127128      - [Изменения в интерпретаторе](https://python-all.ru/3.2/whatsnew/2.7.html#interpreter-changes)129      - [Оптимизации](https://python-all.ru/3.2/whatsnew/2.7.html#optimizations)130    - [Новые и улучшенные модули](https://python-all.ru/3.2/whatsnew/2.7.html#new-and-improved-modules)131132      - [Новый модуль: importlib](https://python-all.ru/3.2/whatsnew/2.7.html#new-module-importlib)133      - [Новый модуль: sysconfig](https://python-all.ru/3.2/whatsnew/2.7.html#new-module-sysconfig)134      - [ttk: Тематические виджеты для Tk](https://python-all.ru/3.2/whatsnew/2.7.html#ttk-themed-widgets-for-tk)135      - [Обновлённый модуль: unittest](https://python-all.ru/3.2/whatsnew/2.7.html#updated-module-unittest)136      - [Обновлённый модуль: ElementTree 1.3](https://python-all.ru/3.2/whatsnew/2.7.html#updated-module-elementtree-1-3)137    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/2.7.html#build-and-c-api-changes)138139      - [Капсулы](https://python-all.ru/3.2/whatsnew/2.7.html#capsules)140      - [Изменения для конкретных платформ: Windows](https://python-all.ru/3.2/whatsnew/2.7.html#port-specific-changes-windows)141      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/3.2/whatsnew/2.7.html#port-specific-changes-mac-os-x)142      - [Изменения для конкретной платформы: FreeBSD](https://python-all.ru/3.2/whatsnew/2.7.html#port-specific-changes-freebsd)143    - [Прочие изменения и исправления](https://python-all.ru/3.2/whatsnew/2.7.html#other-changes-and-fixes)144    - [Переход на Python 2.7](https://python-all.ru/3.2/whatsnew/2.7.html#porting-to-python-2-7)145    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.7.html#acknowledgements)146  - [Что нового в Python 2.6](https://python-all.ru/3.2/whatsnew/2.6.html)147148    - [Python 3.0](https://python-all.ru/3.2/whatsnew/2.6.html#python-3-0)149    - [Изменения в процессе разработки](https://python-all.ru/3.2/whatsnew/2.6.html#changes-to-the-development-process)150151      - [Новый трекер ошибок: Roundup](https://python-all.ru/3.2/whatsnew/2.6.html#new-issue-tracker-roundup)152      - [Новый формат документации: reStructuredText с использованием Sphinx](https://python-all.ru/3.2/whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx)153    - [PEP 343: Оператор 'with'](https://python-all.ru/3.2/whatsnew/2.6.html#pep-343-the-with-statement)154155      - [Написание контекстных менеджеров](https://python-all.ru/3.2/whatsnew/2.6.html#writing-context-managers)156      - [Модуль contextlib](https://python-all.ru/3.2/whatsnew/2.6.html#the-contextlib-module)157    - [PEP 366: Явные относительные импорты из главного модуля](https://python-all.ru/3.2/whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module)158    - [PEP 370: Пользовательская `site-packages` директория](https://python-all.ru/3.2/whatsnew/2.6.html#pep-370-per-user-site-packages-directory)159    - [PEP 371: Пакет `multiprocessing`](https://python-all.ru/3.2/whatsnew/2.6.html#pep-371-the-multiprocessing-package)160    - [PEP 3101: Расширенное форматирование строк](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3101-advanced-string-formatting)161    - [PEP 3105: `print` как функция](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3105-print-as-a-function)162    - [PEP 3110: Изменения в обработке исключений](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3110-exception-handling-changes)163    - [PEP 3112: Байтовые литералы](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3112-byte-literals)164    - [PEP 3116: Новая библиотека ввода-вывода](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3116-new-i-o-library)165    - [PEP 3118: Пересмотренный протокол буферов](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3118-revised-buffer-protocol)166    - [PEP 3119: Абстрактные базовые классы](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3119-abstract-base-classes)167    - [PEP 3127: Поддержка и синтаксис целочисленных литералов](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax)168    - [PEP 3129: Декораторы классов](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3129-class-decorators)169    - [PEP 3141: Иерархия типов для чисел](https://python-all.ru/3.2/whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers)170171      - [Модуль `fractions`](https://python-all.ru/3.2/whatsnew/2.6.html#the-fractions-module)172    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/2.6.html#other-language-changes)173174      - [Оптимизации](https://python-all.ru/3.2/whatsnew/2.6.html#optimizations)175      - [Изменения в интерпретаторе](https://python-all.ru/3.2/whatsnew/2.6.html#interpreter-changes)176    - [Новые и улучшенные модули](https://python-all.ru/3.2/whatsnew/2.6.html#new-and-improved-modules)177178      - [Модуль `ast`](https://python-all.ru/3.2/whatsnew/2.6.html#the-ast-module)179      - [Модуль `future_builtins`](https://python-all.ru/3.2/whatsnew/2.6.html#the-future-builtins-module)180      - [Модуль `json`: JavaScript Object Notation](https://python-all.ru/3.2/whatsnew/2.6.html#the-json-module-javascript-object-notation)181      - [Модуль `plistlib`: парсер списков свойств](https://python-all.ru/3.2/whatsnew/2.6.html#the-plistlib-module-a-property-list-parser)182      - [Улучшения ctypes](https://python-all.ru/3.2/whatsnew/2.6.html#ctypes-enhancements)183      - [Улучшенная поддержка SSL](https://python-all.ru/3.2/whatsnew/2.6.html#improved-ssl-support)184    - [Устаревания и удаления](https://python-all.ru/3.2/whatsnew/2.6.html#deprecations-and-removals)185    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/2.6.html#build-and-c-api-changes)186187      - [Изменения для конкретных платформ: Windows](https://python-all.ru/3.2/whatsnew/2.6.html#port-specific-changes-windows)188      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/3.2/whatsnew/2.6.html#port-specific-changes-mac-os-x)189      - [Изменения для конкретных платформ: IRIX](https://python-all.ru/3.2/whatsnew/2.6.html#port-specific-changes-irix)190    - [Переход на Python 2.6](https://python-all.ru/3.2/whatsnew/2.6.html#porting-to-python-2-6)191    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.6.html#acknowledgements)192  - [Что нового в Python 2.5](https://python-all.ru/3.2/whatsnew/2.5.html)193194    - [PEP 308: Условные выражения](https://python-all.ru/3.2/whatsnew/2.5.html#pep-308-conditional-expressions)195    - [PEP 309: Частичное применение функций](https://python-all.ru/3.2/whatsnew/2.5.html#pep-309-partial-function-application)196    - [PEP 314: Метаданные для пакетов Python v1.1](https://python-all.ru/3.2/whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1)197    - [PEP 328: Абсолютные и относительные импорты](https://python-all.ru/3.2/whatsnew/2.5.html#pep-328-absolute-and-relative-imports)198    - [PEP 338: Выполнение модулей как сценариев](https://python-all.ru/3.2/whatsnew/2.5.html#pep-338-executing-modules-as-scripts)199    - [PEP 341: Единый try/except/finally](https://python-all.ru/3.2/whatsnew/2.5.html#pep-341-unified-try-except-finally)200    - [PEP 342: Новые возможности генераторов](https://python-all.ru/3.2/whatsnew/2.5.html#pep-342-new-generator-features)201    - [PEP 343: Оператор 'with'](https://python-all.ru/3.2/whatsnew/2.5.html#pep-343-the-with-statement)202203      - [Написание контекстных менеджеров](https://python-all.ru/3.2/whatsnew/2.5.html#writing-context-managers)204      - [Модуль contextlib](https://python-all.ru/3.2/whatsnew/2.5.html#the-contextlib-module)205    - [PEP 352: Исключения как классы нового стиля](https://python-all.ru/3.2/whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes)206    - [PEP 353: Использование ssize\_t в качестве типа индекса](https://python-all.ru/3.2/whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type)207    - [PEP 357: Метод '\_\_index\_\_'](https://python-all.ru/3.2/whatsnew/2.5.html#pep-357-the-index-method)208    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/2.5.html#other-language-changes)209210      - [Изменения в интерактивном интерпретаторе](https://python-all.ru/3.2/whatsnew/2.5.html#interactive-interpreter-changes)211      - [Оптимизации](https://python-all.ru/3.2/whatsnew/2.5.html#optimizations)212    - [Новые, улучшенные и удалённые модули](https://python-all.ru/3.2/whatsnew/2.5.html#new-improved-and-removed-modules)213214      - [Пакет ctypes](https://python-all.ru/3.2/whatsnew/2.5.html#the-ctypes-package)215      - [Пакет ElementTree](https://python-all.ru/3.2/whatsnew/2.5.html#the-elementtree-package)216      - [Пакет hashlib](https://python-all.ru/3.2/whatsnew/2.5.html#the-hashlib-package)217      - [Пакет sqlite3](https://python-all.ru/3.2/whatsnew/2.5.html#the-sqlite3-package)218      - [Пакет wsgiref](https://python-all.ru/3.2/whatsnew/2.5.html#the-wsgiref-package)219    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/2.5.html#build-and-c-api-changes)220221      - [Изменения для конкретных платформ](https://python-all.ru/3.2/whatsnew/2.5.html#port-specific-changes)222    - [Перенос на Python 2.5](https://python-all.ru/3.2/whatsnew/2.5.html#porting-to-python-2-5)223    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.5.html#acknowledgements)224  - [Что нового в Python 2.4](https://python-all.ru/3.2/whatsnew/2.4.html)225226    - [PEP 218: Встроенные объекты множеств](https://python-all.ru/3.2/whatsnew/2.4.html#pep-218-built-in-set-objects)227    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/3.2/whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers)228    - [PEP 289: Генераторные выражения](https://python-all.ru/3.2/whatsnew/2.4.html#pep-289-generator-expressions)229    - [PEP 292: Упрощённая подстановка строк](https://python-all.ru/3.2/whatsnew/2.4.html#pep-292-simpler-string-substitutions)230    - [PEP 318: Декораторы для функций и методов](https://python-all.ru/3.2/whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods)231    - [PEP 322: Обратная итерация](https://python-all.ru/3.2/whatsnew/2.4.html#pep-322-reverse-iteration)232    - [PEP 324: Новый модуль подпроцесса](https://python-all.ru/3.2/whatsnew/2.4.html#pep-324-new-subprocess-module)233    - [PEP 327: Тип данных Decimal](https://python-all.ru/3.2/whatsnew/2.4.html#pep-327-decimal-data-type)234235      - [Зачем нужен Decimal?](https://python-all.ru/3.2/whatsnew/2.4.html#why-is-decimal-needed)236      - [Тип `Decimal`](https://python-all.ru/3.2/whatsnew/2.4.html#the-decimal-type)237      - [Тип `Context`](https://python-all.ru/3.2/whatsnew/2.4.html#the-context-type)238    - [PEP 328: Многострочные импорты](https://python-all.ru/3.2/whatsnew/2.4.html#pep-328-multi-line-imports)239    - [PEP 331: Независящие от локали преобразования float/строк](https://python-all.ru/3.2/whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions)240    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/2.4.html#other-language-changes)241242      - [Оптимизации](https://python-all.ru/3.2/whatsnew/2.4.html#optimizations)243    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.2/whatsnew/2.4.html#new-improved-and-deprecated-modules)244245      - [cookielib](https://python-all.ru/3.2/whatsnew/2.4.html#cookielib)246      - [doctest](https://python-all.ru/3.2/whatsnew/2.4.html#doctest)247    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/2.4.html#build-and-c-api-changes)248249      - [Изменения для конкретных платформ](https://python-all.ru/3.2/whatsnew/2.4.html#port-specific-changes)250    - [Перенос на Python 2.4](https://python-all.ru/3.2/whatsnew/2.4.html#porting-to-python-2-4)251    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.4.html#acknowledgements)252  - [Что нового в Python 2.3](https://python-all.ru/3.2/whatsnew/2.3.html)253254    - [PEP 218: Стандартный тип set](https://python-all.ru/3.2/whatsnew/2.3.html#pep-218-a-standard-set-datatype)255    - [PEP 255: простые генераторы](https://python-all.ru/3.2/whatsnew/2.3.html#pep-255-simple-generators)256    - [PEP 263: Кодировки исходного кода](https://python-all.ru/3.2/whatsnew/2.3.html#pep-263-source-code-encodings)257    - [PEP 273: Импорт модулей из ZIP-архивов](https://python-all.ru/3.2/whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives)258    - [PEP 277: Поддержка имён файлов в Unicode для Windows NT](https://python-all.ru/3.2/whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt)259    - [PEP 278: Универсальная поддержка символов новой строки](https://python-all.ru/3.2/whatsnew/2.3.html#pep-278-universal-newline-support)260    - [PEP 279: enumerate()](https://python-all.ru/3.2/whatsnew/2.3.html#pep-279-enumerate)261    - [PEP 282: Пакет logging](https://python-all.ru/3.2/whatsnew/2.3.html#pep-282-the-logging-package)262    - [PEP 285: Булев тип](https://python-all.ru/3.2/whatsnew/2.3.html#pep-285-a-boolean-type)263    - [PEP 293: Колбэки обработки ошибок кодеков](https://python-all.ru/3.2/whatsnew/2.3.html#pep-293-codec-error-handling-callbacks)264    - [PEP 301: Индекс пакетов и метаданные для Distutils](https://python-all.ru/3.2/whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils)265    - [PEP 302: Новые хуки импорта](https://python-all.ru/3.2/whatsnew/2.3.html#pep-302-new-import-hooks)266    - [PEP 305: Файлы с разделителями-запятыми](https://python-all.ru/3.2/whatsnew/2.3.html#pep-305-comma-separated-files)267    - [PEP 307: Улучшения pickle](https://python-all.ru/3.2/whatsnew/2.3.html#pep-307-pickle-enhancements)268    - [Расширенные срезы](https://python-all.ru/3.2/whatsnew/2.3.html#extended-slices)269    - [Прочие изменения языка](https://python-all.ru/3.2/whatsnew/2.3.html#other-language-changes)270271      - [Изменения в строках](https://python-all.ru/3.2/whatsnew/2.3.html#string-changes)272      - [Оптимизации](https://python-all.ru/3.2/whatsnew/2.3.html#optimizations)273    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.2/whatsnew/2.3.html#new-improved-and-deprecated-modules)274275      - [Тип даты/времени](https://python-all.ru/3.2/whatsnew/2.3.html#date-time-type)276      - [Модуль optparse](https://python-all.ru/3.2/whatsnew/2.3.html#the-optparse-module)277    - [Pymalloc: Специализированный аллокатор объектов](https://python-all.ru/3.2/whatsnew/2.3.html#pymalloc-a-specialized-object-allocator)278    - [Изменения в сборке и C API](https://python-all.ru/3.2/whatsnew/2.3.html#build-and-c-api-changes)279280      - [Изменения для конкретных платформ](https://python-all.ru/3.2/whatsnew/2.3.html#port-specific-changes)281    - [Прочие изменения и исправления](https://python-all.ru/3.2/whatsnew/2.3.html#other-changes-and-fixes)282    - [Перенос на Python 2.3](https://python-all.ru/3.2/whatsnew/2.3.html#porting-to-python-2-3)283    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.3.html#acknowledgements)284  - [Что нового в Python 2.2](https://python-all.ru/3.2/whatsnew/2.2.html)285286    - [Введение](https://python-all.ru/3.2/whatsnew/2.2.html#introduction)287    - [PEP 252 и 253: изменения типов и классов](https://python-all.ru/3.2/whatsnew/2.2.html#peps-252-and-253-type-and-class-changes)288289      - [Старые и новые классы](https://python-all.ru/3.2/whatsnew/2.2.html#old-and-new-classes)290      - [Дескрипторы](https://python-all.ru/3.2/whatsnew/2.2.html#descriptors)291      - [Множественное наследование: правило ромба](https://python-all.ru/3.2/whatsnew/2.2.html#multiple-inheritance-the-diamond-rule)292      - [Доступ к атрибутам](https://python-all.ru/3.2/whatsnew/2.2.html#attribute-access)293      - [Связанные ссылки](https://python-all.ru/3.2/whatsnew/2.2.html#related-links)294    - [PEP 234: итераторы](https://python-all.ru/3.2/whatsnew/2.2.html#pep-234-iterators)295    - [PEP 255: простые генераторы](https://python-all.ru/3.2/whatsnew/2.2.html#pep-255-simple-generators)296    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/3.2/whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers)297    - [PEP 238: изменение оператора деления](https://python-all.ru/3.2/whatsnew/2.2.html#pep-238-changing-the-division-operator)298    - [Изменения в Unicode](https://python-all.ru/3.2/whatsnew/2.2.html#unicode-changes)299    - [PEP 227: вложенные области видимости](https://python-all.ru/3.2/whatsnew/2.2.html#pep-227-nested-scopes)300    - [Новые и улучшенные модули](https://python-all.ru/3.2/whatsnew/2.2.html#new-and-improved-modules)301    - [Изменения и исправления интерпретатора](https://python-all.ru/3.2/whatsnew/2.2.html#interpreter-changes-and-fixes)302    - [Прочие изменения и исправления](https://python-all.ru/3.2/whatsnew/2.2.html#other-changes-and-fixes)303    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.2.html#acknowledgements)304  - [Что нового в Python 2.1](https://python-all.ru/3.2/whatsnew/2.1.html)305306    - [Введение](https://python-all.ru/3.2/whatsnew/2.1.html#introduction)307    - [PEP 227: вложенные области видимости](https://python-all.ru/3.2/whatsnew/2.1.html#pep-227-nested-scopes)308    - [PEP 236: директивы \_\_future\_\_](https://python-all.ru/3.2/whatsnew/2.1.html#pep-236-future-directives)309    - [PEP 207: расширенные сравнения](https://python-all.ru/3.2/whatsnew/2.1.html#pep-207-rich-comparisons)310    - [PEP 230: инфраструктура предупреждений](https://python-all.ru/3.2/whatsnew/2.1.html#pep-230-warning-framework)311    - [PEP 229: новая система сборки](https://python-all.ru/3.2/whatsnew/2.1.html#pep-229-new-build-system)312    - [PEP 205: слабые ссылки](https://python-all.ru/3.2/whatsnew/2.1.html#pep-205-weak-references)313    - [PEP 232: атрибуты функций](https://python-all.ru/3.2/whatsnew/2.1.html#pep-232-function-attributes)314    - [PEP 235: импорт модулей на платформах, нечувствительных к регистру](https://python-all.ru/3.2/whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms)315    - [PEP 217: интерактивный перехватчик вывода](https://python-all.ru/3.2/whatsnew/2.1.html#pep-217-interactive-display-hook)316    - [PEP 208: новая модель приведения типов](https://python-all.ru/3.2/whatsnew/2.1.html#pep-208-new-coercion-model)317    - [PEP 241: метаданные в пакетах Python](https://python-all.ru/3.2/whatsnew/2.1.html#pep-241-metadata-in-python-packages)318    - [Новые и улучшенные модули](https://python-all.ru/3.2/whatsnew/2.1.html#new-and-improved-modules)319    - [Прочие изменения и исправления](https://python-all.ru/3.2/whatsnew/2.1.html#other-changes-and-fixes)320    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.1.html#acknowledgements)321  - [Что нового в Python 2.0](https://python-all.ru/3.2/whatsnew/2.0.html)322323    - [Введение](https://python-all.ru/3.2/whatsnew/2.0.html#introduction)324    - [А что насчёт Python 1.6?](https://python-all.ru/3.2/whatsnew/2.0.html#what-about-python-1-6)325    - [Новый процесс разработки](https://python-all.ru/3.2/whatsnew/2.0.html#new-development-process)326    - [Юникод](https://python-all.ru/3.2/whatsnew/2.0.html#unicode)327    - [Списковые включения](https://python-all.ru/3.2/whatsnew/2.0.html#list-comprehensions)328    - [Расширенное присваивание](https://python-all.ru/3.2/whatsnew/2.0.html#augmented-assignment)329    - [Методы строк](https://python-all.ru/3.2/whatsnew/2.0.html#string-methods)330    - [Сборка мусора циклических ссылок](https://python-all.ru/3.2/whatsnew/2.0.html#garbage-collection-of-cycles)331    - [Другие изменения ядра](https://python-all.ru/3.2/whatsnew/2.0.html#other-core-changes)332333      - [Мелкие изменения языка](https://python-all.ru/3.2/whatsnew/2.0.html#minor-language-changes)334      - [Изменения встроенных функций](https://python-all.ru/3.2/whatsnew/2.0.html#changes-to-built-in-functions)335    - [Перенос на 2.0](https://python-all.ru/3.2/whatsnew/2.0.html#porting-to-2-0)336    - [Изменения в расширении/встраивании](https://python-all.ru/3.2/whatsnew/2.0.html#extending-embedding-changes)337    - [Distutils: упрощение установки модулей](https://python-all.ru/3.2/whatsnew/2.0.html#distutils-making-modules-easy-to-install)338    - [Модули XML](https://python-all.ru/3.2/whatsnew/2.0.html#xml-modules)339340      - [Поддержка SAX2](https://python-all.ru/3.2/whatsnew/2.0.html#sax2-support)341      - [Поддержка DOM](https://python-all.ru/3.2/whatsnew/2.0.html#dom-support)342      - [Связь с PyXML](https://python-all.ru/3.2/whatsnew/2.0.html#relationship-to-pyxml)343    - [Изменения модулей](https://python-all.ru/3.2/whatsnew/2.0.html#module-changes)344    - [Новые модули](https://python-all.ru/3.2/whatsnew/2.0.html#new-modules)345    - [Улучшения IDLE](https://python-all.ru/3.2/whatsnew/2.0.html#idle-improvements)346    - [Удалённые и устаревшие модули](https://python-all.ru/3.2/whatsnew/2.0.html#deleted-and-deprecated-modules)347    - [Благодарности](https://python-all.ru/3.2/whatsnew/2.0.html#acknowledgements)348- [Учебник Python](https://python-all.ru/3.2/tutorial/index.html)349350  - [1. Введение](https://python-all.ru/3.2/tutorial/appetite.html)351  - [2. Использование интерпретатора Python](https://python-all.ru/3.2/tutorial/interpreter.html)352353    - [2.1. Запуск интерпретатора](https://python-all.ru/3.2/tutorial/interpreter.html#invoking-the-interpreter)354355      - [2.1.1. Передача аргументов](https://python-all.ru/3.2/tutorial/interpreter.html#argument-passing)356      - [2.1.2. Интерактивный режим](https://python-all.ru/3.2/tutorial/interpreter.html#interactive-mode)357    - [2.2. Интерпретатор и его окружение](https://python-all.ru/3.2/tutorial/interpreter.html#the-interpreter-and-its-environment)358359      - [2.2.1. Обработка ошибок](https://python-all.ru/3.2/tutorial/interpreter.html#error-handling)360      - [2.2.2. Исполняемые скрипты Python](https://python-all.ru/3.2/tutorial/interpreter.html#executable-python-scripts)361      - [2.2.3. Кодировка исходного кода](https://python-all.ru/3.2/tutorial/interpreter.html#source-code-encoding)362      - [2.2.4. Интерактивный файл запуска](https://python-all.ru/3.2/tutorial/interpreter.html#the-interactive-startup-file)363      - [2.2.5. Модули настройки](https://python-all.ru/3.2/tutorial/interpreter.html#the-customization-modules)364  - [3. Неформальное введение в Python](https://python-all.ru/3.2/tutorial/introduction.html)365366    - [3.1. Использование Python в качестве калькулятора](https://python-all.ru/3.2/tutorial/introduction.html#using-python-as-a-calculator)367368      - [3.1.1. Числа](https://python-all.ru/3.2/tutorial/introduction.html#numbers)369      - [3.1.2. Строки](https://python-all.ru/3.2/tutorial/introduction.html#strings)370      - [3.1.3. О Unicode](https://python-all.ru/3.2/tutorial/introduction.html#about-unicode)371      - [3.1.4. Списки](https://python-all.ru/3.2/tutorial/introduction.html#lists)372    - [3.2. Первые шаги к программированию](https://python-all.ru/3.2/tutorial/introduction.html#first-steps-towards-programming)373  - [4. Дополнительные средства управления потоком](https://python-all.ru/3.2/tutorial/controlflow.html)374375    - [4.1. `if` Инструкции](https://python-all.ru/3.2/tutorial/controlflow.html#if-statements)376    - [4.2. `for` Инструкции](https://python-all.ru/3.2/tutorial/controlflow.html#for-statements)377    - [4.3. Функция `range()`](https://python-all.ru/3.2/tutorial/controlflow.html#the-range-function)378    - [4.4. `break` и `continue` инструкции, а также `else` предложения в циклах](https://python-all.ru/3.2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops)379    - [4.5. `pass` Инструкции](https://python-all.ru/3.2/tutorial/controlflow.html#pass-statements)380    - [4.6. Определение функций](https://python-all.ru/3.2/tutorial/controlflow.html#defining-functions)381    - [4.7. Подробнее об определении функций](https://python-all.ru/3.2/tutorial/controlflow.html#more-on-defining-functions)382383      - [4.7.1. Значения аргументов по умолчанию](https://python-all.ru/3.2/tutorial/controlflow.html#default-argument-values)384      - [4.7.2. Именованные аргументы](https://python-all.ru/3.2/tutorial/controlflow.html#keyword-arguments)385      - [4.7.3. Произвольные списки аргументов](https://python-all.ru/3.2/tutorial/controlflow.html#arbitrary-argument-lists)386      - [4.7.4. Распаковка списков аргументов](https://python-all.ru/3.2/tutorial/controlflow.html#unpacking-argument-lists)387      - [4.7.5. Лямбда-выражения](https://python-all.ru/3.2/tutorial/controlflow.html#lambda-forms)388      - [4.7.6. Строки документации](https://python-all.ru/3.2/tutorial/controlflow.html#documentation-strings)389      - [4.7.7. Аннотации функций](https://python-all.ru/3.2/tutorial/controlflow.html#function-annotations)390    - [4.8. Интермеццо: стиль кодирования](https://python-all.ru/3.2/tutorial/controlflow.html#intermezzo-coding-style)391  - [5. Структуры данных](https://python-all.ru/3.2/tutorial/datastructures.html)392393    - [5.1. Подробнее о списках](https://python-all.ru/3.2/tutorial/datastructures.html#more-on-lists)394395      - [5.1.1. Использование списков как стеков](https://python-all.ru/3.2/tutorial/datastructures.html#using-lists-as-stacks)396      - [5.1.2. Использование списков как очередей](https://python-all.ru/3.2/tutorial/datastructures.html#using-lists-as-queues)397      - [5.1.3. Списковые включения](https://python-all.ru/3.2/tutorial/datastructures.html#list-comprehensions)398      - [5.1.4. Вложенные списковые включения](https://python-all.ru/3.2/tutorial/datastructures.html#nested-list-comprehensions)399    - [5.2. Инструкция `del`](https://python-all.ru/3.2/tutorial/datastructures.html#the-del-statement)400    - [5.3. Кортежи и последовательности](https://python-all.ru/3.2/tutorial/datastructures.html#tuples-and-sequences)401    - [5.4. Множества](https://python-all.ru/3.2/tutorial/datastructures.html#sets)402    - [5.5. Словари](https://python-all.ru/3.2/tutorial/datastructures.html#dictionaries)403    - [5.6. Приёмы работы с циклами](https://python-all.ru/3.2/tutorial/datastructures.html#looping-techniques)404    - [5.7. Подробнее об условиях](https://python-all.ru/3.2/tutorial/datastructures.html#more-on-conditions)405    - [5.8. Сравнение последовательностей и других типов](https://python-all.ru/3.2/tutorial/datastructures.html#comparing-sequences-and-other-types)406  - [6. Модули](https://python-all.ru/3.2/tutorial/modules.html)407408    - [6.1. Подробнее о модулях](https://python-all.ru/3.2/tutorial/modules.html#more-on-modules)409410      - [6.1.1. Запуск модулей как скриптов](https://python-all.ru/3.2/tutorial/modules.html#executing-modules-as-scripts)411      - [6.1.2. Путь поиска модулей](https://python-all.ru/3.2/tutorial/modules.html#the-module-search-path)412      - [6.1.3. «Скомпилированные» файлы Python](https://python-all.ru/3.2/tutorial/modules.html#compiled-python-files)413    - [6.2. Стандартные модули](https://python-all.ru/3.2/tutorial/modules.html#standard-modules)414    - [6.3. Функция `dir()`](https://python-all.ru/3.2/tutorial/modules.html#the-dir-function)415    - [6.4. Пакеты](https://python-all.ru/3.2/tutorial/modules.html#packages)416417      - [6.4.1. Импорт \* из пакета](https://python-all.ru/3.2/tutorial/modules.html#importing-from-a-package)418      - [6.4.2. Ссылки внутри пакета](https://python-all.ru/3.2/tutorial/modules.html#intra-package-references)419      - [6.4.3. Пакеты в нескольких каталогах](https://python-all.ru/3.2/tutorial/modules.html#packages-in-multiple-directories)420  - [7. Ввод и вывод](https://python-all.ru/3.2/tutorial/inputoutput.html)421422    - [7.1. Более сложное форматирование вывода](https://python-all.ru/3.2/tutorial/inputoutput.html#fancier-output-formatting)423424      - [7.1.1. Старое форматирование строк](https://python-all.ru/3.2/tutorial/inputoutput.html#old-string-formatting)425    - [7.2. Чтение и запись файлов](https://python-all.ru/3.2/tutorial/inputoutput.html#reading-and-writing-files)426427      - [7.2.1. Методы файловых объектов](https://python-all.ru/3.2/tutorial/inputoutput.html#methods-of-file-objects)428      - [7.2.2. Модуль `pickle`](https://python-all.ru/3.2/tutorial/inputoutput.html#the-pickle-module)429  - [8. Ошибки и исключения](https://python-all.ru/3.2/tutorial/errors.html)430431    - [8.1. Синтаксические ошибки](https://python-all.ru/3.2/tutorial/errors.html#syntax-errors)432    - [8.2. Исключения](https://python-all.ru/3.2/tutorial/errors.html#exceptions)433    - [8.3. Обработка исключений](https://python-all.ru/3.2/tutorial/errors.html#handling-exceptions)434    - [8.4. Возбуждение исключений](https://python-all.ru/3.2/tutorial/errors.html#raising-exceptions)435    - [8.5. Пользовательские исключения](https://python-all.ru/3.2/tutorial/errors.html#user-defined-exceptions)436    - [8.6. Определение действий по очистке](https://python-all.ru/3.2/tutorial/errors.html#defining-clean-up-actions)437    - [8.7. Предопределённые действия по очистке](https://python-all.ru/3.2/tutorial/errors.html#predefined-clean-up-actions)438  - [9. Классы](https://python-all.ru/3.2/tutorial/classes.html)439440    - [9.1. Несколько слов об именах и объектах](https://python-all.ru/3.2/tutorial/classes.html#a-word-about-names-and-objects)441    - [9.2. Области видимости и пространства имён Python](https://python-all.ru/3.2/tutorial/classes.html#python-scopes-and-namespaces)442443      - [9.2.1. Пример областей видимости и пространств имён](https://python-all.ru/3.2/tutorial/classes.html#scopes-and-namespaces-example)444    - [9.3. Первое знакомство с классами](https://python-all.ru/3.2/tutorial/classes.html#a-first-look-at-classes)445446      - [9.3.1. Синтаксис определения класса](https://python-all.ru/3.2/tutorial/classes.html#class-definition-syntax)447      - [9.3.2. Объекты классов](https://python-all.ru/3.2/tutorial/classes.html#class-objects)448      - [9.3.3. Объекты экземпляров](https://python-all.ru/3.2/tutorial/classes.html#instance-objects)449      - [9.3.4. Объекты методов](https://python-all.ru/3.2/tutorial/classes.html#method-objects)450    - [9.4. Разные замечания](https://python-all.ru/3.2/tutorial/classes.html#random-remarks)451    - [9.5. Наследование](https://python-all.ru/3.2/tutorial/classes.html#inheritance)452453      - [9.5.1. Множественное наследование](https://python-all.ru/3.2/tutorial/classes.html#multiple-inheritance)454    - [9.6. Приватные переменные](https://python-all.ru/3.2/tutorial/classes.html#private-variables)455    - [9.7. Разное](https://python-all.ru/3.2/tutorial/classes.html#odds-and-ends)456    - [9.8. Исключения – тоже классы](https://python-all.ru/3.2/tutorial/classes.html#exceptions-are-classes-too)457    - [9.9. Итераторы](https://python-all.ru/3.2/tutorial/classes.html#iterators)458    - [9.10. Генераторы](https://python-all.ru/3.2/tutorial/classes.html#generators)459    - [9.11. Генераторные выражения](https://python-all.ru/3.2/tutorial/classes.html#generator-expressions)460  - [10. Краткий обзор стандартной библиотеки](https://python-all.ru/3.2/tutorial/stdlib.html)461462    - [10.1. Интерфейс операционной системы](https://python-all.ru/3.2/tutorial/stdlib.html#operating-system-interface)463    - [10.2. Файловые шаблоны](https://python-all.ru/3.2/tutorial/stdlib.html#file-wildcards)464    - [10.3. Аргументы командной строки](https://python-all.ru/3.2/tutorial/stdlib.html#command-line-arguments)465    - [10.4. Перенаправление вывода ошибок и завершение программы](https://python-all.ru/3.2/tutorial/stdlib.html#error-output-redirection-and-program-termination)466    - [10.5. Поиск по шаблону в строках](https://python-all.ru/3.2/tutorial/stdlib.html#string-pattern-matching)467    - [10.6. Математика](https://python-all.ru/3.2/tutorial/stdlib.html#mathematics)468    - [10.7. Доступ в Интернет](https://python-all.ru/3.2/tutorial/stdlib.html#internet-access)469    - [10.8. Даты и время](https://python-all.ru/3.2/tutorial/stdlib.html#dates-and-times)470    - [10.9. Сжатие данных](https://python-all.ru/3.2/tutorial/stdlib.html#data-compression)471    - [10.10. Измерение производительности](https://python-all.ru/3.2/tutorial/stdlib.html#performance-measurement)472    - [10.11. Контроль качества](https://python-all.ru/3.2/tutorial/stdlib.html#quality-control)473    - [10.12. Батарейки в комплекте](https://python-all.ru/3.2/tutorial/stdlib.html#batteries-included)474  - [11. Краткий обзор стандартной библиотеки – Часть II](https://python-all.ru/3.2/tutorial/stdlib2.html)475476    - [11.1. Форматирование вывода](https://python-all.ru/3.2/tutorial/stdlib2.html#output-formatting)477    - [11.2. Шаблоны](https://python-all.ru/3.2/tutorial/stdlib2.html#templating)478    - [11.3. Работа с двоичными данными и структурами записей](https://python-all.ru/3.2/tutorial/stdlib2.html#working-with-binary-data-record-layouts)479    - [11.4. Многопоточность](https://python-all.ru/3.2/tutorial/stdlib2.html#multi-threading)480    - [11.5. Логирование](https://python-all.ru/3.2/tutorial/stdlib2.html#logging)481    - [11.6. Слабые ссылки](https://python-all.ru/3.2/tutorial/stdlib2.html#weak-references)482    - [11.7. Инструменты для работы со списками](https://python-all.ru/3.2/tutorial/stdlib2.html#tools-for-working-with-lists)483    - [11.8. Десятичная арифметика с плавающей запятой](https://python-all.ru/3.2/tutorial/stdlib2.html#decimal-floating-point-arithmetic)484  - [12. Что дальше?](https://python-all.ru/3.2/tutorial/whatnow.html)485  - [13. Интерактивное редактирование ввода и подстановка истории](https://python-all.ru/3.2/tutorial/interactive.html)486487    - [13.1. Редактирование строк](https://python-all.ru/3.2/tutorial/interactive.html#line-editing)488    - [13.2. Подстановка истории](https://python-all.ru/3.2/tutorial/interactive.html#history-substitution)489    - [13.3. Привязки клавиш](https://python-all.ru/3.2/tutorial/interactive.html#key-bindings)490    - [13.4. Альтернативы интерактивному интерпретатору](https://python-all.ru/3.2/tutorial/interactive.html#alternatives-to-the-interactive-interpreter)491  - [14. Арифметика с плавающей запятой: проблемы и ограничения](https://python-all.ru/3.2/tutorial/floatingpoint.html)492493    - [14.1. Ошибка представления](https://python-all.ru/3.2/tutorial/floatingpoint.html#representation-error)494- [Настройка и использование Python](https://python-all.ru/3.2/using/index.html)495496  - [1. Командная строка и окружение](https://python-all.ru/3.2/using/cmdline.html)497498    - [1.1. Командная строка](https://python-all.ru/3.2/using/cmdline.html#command-line)499500      - [1.1.1. Параметры интерфейса](https://python-all.ru/3.2/using/cmdline.html#interface-options)501      - [1.1.2. Общие параметры](https://python-all.ru/3.2/using/cmdline.html#generic-options)502      - [1.1.3. Прочие параметры](https://python-all.ru/3.2/using/cmdline.html#miscellaneous-options)503      - [1.1.4. Опции, которые не следует использовать](https://python-all.ru/3.2/using/cmdline.html#options-you-shouldn-t-use)504    - [1.2. Переменные окружения](https://python-all.ru/3.2/using/cmdline.html#environment-variables)505506      - [1.2.1. Переменные режима отладки](https://python-all.ru/3.2/using/cmdline.html#debug-mode-variables)507  - [2. Использование Python на платформах Unix](https://python-all.ru/3.2/using/unix.html)508509    - [2.1. Получение и установка последней версии Python](https://python-all.ru/3.2/using/unix.html#getting-and-installing-the-latest-version-of-python)510511      - [2.1.1. В Linux](https://python-all.ru/3.2/using/unix.html#on-linux)512      - [2.1.2. В FreeBSD и OpenBSD](https://python-all.ru/3.2/using/unix.html#on-freebsd-and-openbsd)513      - [2.1.3. В OpenSolaris](https://python-all.ru/3.2/using/unix.html#on-opensolaris)514    - [2.2. Сборка Python](https://python-all.ru/3.2/using/unix.html#building-python)515    - [2.3. Пути и файлы, связанные с Python](https://python-all.ru/3.2/using/unix.html#python-related-paths-and-files)516    - [2.4. Прочее](https://python-all.ru/3.2/using/unix.html#miscellaneous)517    - [2.5. Редакторы](https://python-all.ru/3.2/using/unix.html#editors)518  - [3. Использование Python в Windows](https://python-all.ru/3.2/using/windows.html)519520    - [3.1. Установка Python](https://python-all.ru/3.2/using/windows.html#installing-python)521    - [3.2. Альтернативные сборки](https://python-all.ru/3.2/using/windows.html#alternative-bundles)522    - [3.3. Настройка Python](https://python-all.ru/3.2/using/windows.html#configuring-python)523524      - [3.3.1. Экскурс: Установка переменных окружения](https://python-all.ru/3.2/using/windows.html#excursus-setting-environment-variables)525      - [3.3.2. Поиск исполняемого файла Python](https://python-all.ru/3.2/using/windows.html#finding-the-python-executable)526      - [3.3.3. Поиск модулей](https://python-all.ru/3.2/using/windows.html#finding-modules)527      - [3.3.4. Выполнение скриптов](https://python-all.ru/3.2/using/windows.html#executing-scripts)528    - [3.4. Дополнительные модули](https://python-all.ru/3.2/using/windows.html#additional-modules)529530      - [3.4.1. PyWin32](https://python-all.ru/3.2/using/windows.html#pywin32)531      - [3.4.2. Py2exe](https://python-all.ru/3.2/using/windows.html#py2exe)532      - [3.4.3. WConio](https://python-all.ru/3.2/using/windows.html#wconio)533    - [3.5. Компиляция Python в Windows](https://python-all.ru/3.2/using/windows.html#compiling-python-on-windows)534    - [3.6. Другие ресурсы](https://python-all.ru/3.2/using/windows.html#other-resources)535  - [4. Использование Python на Macintosh](https://python-all.ru/3.2/using/mac.html)536537    - [4.1. Получение и установка MacPython](https://python-all.ru/3.2/using/mac.html#getting-and-installing-macpython)538539      - [4.1.1. Как запустить скрипт Python](https://python-all.ru/3.2/using/mac.html#how-to-run-a-python-script)540      - [4.1.2. Запуск скриптов с графическим интерфейсом](https://python-all.ru/3.2/using/mac.html#running-scripts-with-a-gui)541      - [4.1.3. Конфигурация](https://python-all.ru/3.2/using/mac.html#configuration)542    - [4.2. IDE](https://python-all.ru/3.2/using/mac.html#the-ide)543    - [4.3. Установка дополнительных пакетов Python](https://python-all.ru/3.2/using/mac.html#installing-additional-python-packages)544    - [4.4. Программирование графического интерфейса на Mac](https://python-all.ru/3.2/using/mac.html#gui-programming-on-the-mac)545    - [4.5. Распространение приложений Python на Mac](https://python-all.ru/3.2/using/mac.html#distributing-python-applications-on-the-mac)546    - [4.6. Прочие ресурсы](https://python-all.ru/3.2/using/mac.html#other-resources)547- [Справочник по языку Python](https://python-all.ru/3.2/reference/index.html)548549  - [1. Введение](https://python-all.ru/3.2/reference/introduction.html)550551    - [1.1. Альтернативные реализации](https://python-all.ru/3.2/reference/introduction.html#alternate-implementations)552    - [1.2. Обозначения](https://python-all.ru/3.2/reference/introduction.html#notation)553  - [2. Лексический анализ](https://python-all.ru/3.2/reference/lexical_analysis.html)554555    - [2.1. Структура строк](https://python-all.ru/3.2/reference/lexical_analysis.html#line-structure)556557      - [2.1.1. Логические строки](https://python-all.ru/3.2/reference/lexical_analysis.html#logical-lines)558      - [2.1.2. Физические строки](https://python-all.ru/3.2/reference/lexical_analysis.html#physical-lines)559      - [2.1.3. Комментарии](https://python-all.ru/3.2/reference/lexical_analysis.html#comments)560      - [2.1.4. Объявление кодировки](https://python-all.ru/3.2/reference/lexical_analysis.html#encoding-declarations)561      - [2.1.5. Явное объединение строк](https://python-all.ru/3.2/reference/lexical_analysis.html#explicit-line-joining)562      - [2.1.6. Неявное объединение строк](https://python-all.ru/3.2/reference/lexical_analysis.html#implicit-line-joining)563      - [2.1.7. Пустые строки](https://python-all.ru/3.2/reference/lexical_analysis.html#blank-lines)564      - [2.1.8. Отступы](https://python-all.ru/3.2/reference/lexical_analysis.html#indentation)565      - [2.1.9. Пробелы между токенами](https://python-all.ru/3.2/reference/lexical_analysis.html#whitespace-between-tokens)566    - [2.2. Другие токены](https://python-all.ru/3.2/reference/lexical_analysis.html#other-tokens)567    - [2.3. Идентификаторы и ключевые слова](https://python-all.ru/3.2/reference/lexical_analysis.html#identifiers)568569      - [2.3.1. Ключевые слова](https://python-all.ru/3.2/reference/lexical_analysis.html#keywords)570      - [2.3.2. Зарезервированные классы идентификаторов](https://python-all.ru/3.2/reference/lexical_analysis.html#reserved-classes-of-identifiers)571    - [2.4. Литералы](https://python-all.ru/3.2/reference/lexical_analysis.html#literals)572573      - [2.4.1. Строковые и байтовые литералы](https://python-all.ru/3.2/reference/lexical_analysis.html#string-and-bytes-literals)574      - [2.4.2. Конкатенация строковых литералов](https://python-all.ru/3.2/reference/lexical_analysis.html#string-literal-concatenation)575      - [2.4.3. Числовые литералы](https://python-all.ru/3.2/reference/lexical_analysis.html#numeric-literals)576      - [2.4.4. Целочисленные литералы](https://python-all.ru/3.2/reference/lexical_analysis.html#integer-literals)577      - [2.4.5. Литералы с плавающей точкой](https://python-all.ru/3.2/reference/lexical_analysis.html#floating-point-literals)578      - [2.4.6. Литералы мнимых чисел](https://python-all.ru/3.2/reference/lexical_analysis.html#imaginary-literals)579    - [2.5. Операторы](https://python-all.ru/3.2/reference/lexical_analysis.html#operators)580    - [2.6. Разделители](https://python-all.ru/3.2/reference/lexical_analysis.html#delimiters)581  - [3. Модель данных](https://python-all.ru/3.2/reference/datamodel.html)582583    - [3.1. Объекты, значения и типы](https://python-all.ru/3.2/reference/datamodel.html#objects-values-and-types)584    - [3.2. Стандартная иерархия типов](https://python-all.ru/3.2/reference/datamodel.html#the-standard-type-hierarchy)585    - [3.3. Имена специальных методов](https://python-all.ru/3.2/reference/datamodel.html#special-method-names)586587      - [3.3.1. Базовая настройка](https://python-all.ru/3.2/reference/datamodel.html#basic-customization)588      - [3.3.2. Настройка доступа к атрибутам](https://python-all.ru/3.2/reference/datamodel.html#customizing-attribute-access)589590        - [3.3.2.1. Реализация дескрипторов](https://python-all.ru/3.2/reference/datamodel.html#implementing-descriptors)591        - [3.3.2.2. Вызов дескрипторов](https://python-all.ru/3.2/reference/datamodel.html#invoking-descriptors)592        - [3.3.2.3. \_\_slots\_\_](https://python-all.ru/3.2/reference/datamodel.html#slots)593594          - [3.3.2.3.1. Примечания по использованию *\_\_slots\_\_*](https://python-all.ru/3.2/reference/datamodel.html#notes-on-using-slots)595      - [3.3.3. Настройка создания классов](https://python-all.ru/3.2/reference/datamodel.html#customizing-class-creation)596      - [3.3.4. Настройка проверок принадлежности экземплярам и подклассам](https://python-all.ru/3.2/reference/datamodel.html#customizing-instance-and-subclass-checks)597      - [3.3.5. Эмуляция вызываемых объектов](https://python-all.ru/3.2/reference/datamodel.html#emulating-callable-objects)598      - [3.3.6. Эмуляция контейнерных типов](https://python-all.ru/3.2/reference/datamodel.html#emulating-container-types)599      - [3.3.7. Эмуляция числовых типов](https://python-all.ru/3.2/reference/datamodel.html#emulating-numeric-types)600      - [3.3.8. Контекстные менеджеры with](https://python-all.ru/3.2/reference/datamodel.html#with-statement-context-managers)601      - [3.3.9. Поиск специальных методов](https://python-all.ru/3.2/reference/datamodel.html#special-method-lookup)602  - [4. Модель выполнения](https://python-all.ru/3.2/reference/executionmodel.html)603604    - [4.1. Именование и связывание](https://python-all.ru/3.2/reference/executionmodel.html#naming-and-binding)605606      - [4.1.1. Взаимодействие с динамическими возможностями](https://python-all.ru/3.2/reference/executionmodel.html#interaction-with-dynamic-features)607    - [4.2. Исключения](https://python-all.ru/3.2/reference/executionmodel.html#exceptions)608  - [5. Выражения](https://python-all.ru/3.2/reference/expressions.html)609610    - [5.1. Арифметические преобразования](https://python-all.ru/3.2/reference/expressions.html#arithmetic-conversions)611    - [5.2. Атомы](https://python-all.ru/3.2/reference/expressions.html#atoms)612613      - [5.2.1. Идентификаторы (имена)](https://python-all.ru/3.2/reference/expressions.html#atom-identifiers)614      - [5.2.2. Литералы](https://python-all.ru/3.2/reference/expressions.html#literals)615      - [5.2.3. Формы в скобках](https://python-all.ru/3.2/reference/expressions.html#parenthesized-forms)616      - [5.2.4. Отображения списков, множеств и словарей](https://python-all.ru/3.2/reference/expressions.html#displays-for-lists-sets-and-dictionaries)617      - [5.2.5. Отображения списков](https://python-all.ru/3.2/reference/expressions.html#list-displays)618      - [5.2.6. Отображения множеств](https://python-all.ru/3.2/reference/expressions.html#set-displays)619      - [5.2.7. Отображения словарей](https://python-all.ru/3.2/reference/expressions.html#dictionary-displays)620      - [5.2.8. Генераторные выражения](https://python-all.ru/3.2/reference/expressions.html#generator-expressions)621      - [5.2.9. Выражения yield](https://python-all.ru/3.2/reference/expressions.html#yield-expressions)622623        - [5.2.9.1. Методы генератор-итератора](https://python-all.ru/3.2/reference/expressions.html#generator-iterator-methods)624    - [5.3. Первичные элементы](https://python-all.ru/3.2/reference/expressions.html#primaries)625626      - [5.3.1. Ссылки на атрибуты](https://python-all.ru/3.2/reference/expressions.html#attribute-references)627      - [5.3.2. Индексация](https://python-all.ru/3.2/reference/expressions.html#subscriptions)628      - [5.3.3. Срезы](https://python-all.ru/3.2/reference/expressions.html#slicings)629      - [5.3.4. Вызовы](https://python-all.ru/3.2/reference/expressions.html#calls)630    - [5.4. Оператор возведения в степень](https://python-all.ru/3.2/reference/expressions.html#the-power-operator)631    - [5.5. Унарные арифметические и побитовые операции](https://python-all.ru/3.2/reference/expressions.html#unary-arithmetic-and-bitwise-operations)632    - [5.6. Бинарные арифметические операции](https://python-all.ru/3.2/reference/expressions.html#binary-arithmetic-operations)633    - [5.7. Операции сдвига](https://python-all.ru/3.2/reference/expressions.html#shifting-operations)634    - [5.8. Бинарные побитовые операции](https://python-all.ru/3.2/reference/expressions.html#binary-bitwise-operations)635    - [5.9. Сравнения](https://python-all.ru/3.2/reference/expressions.html#not-in)636    - [5.10. Булевы операции](https://python-all.ru/3.2/reference/expressions.html#boolean-operations)637    - [5.11. Условные выражения](https://python-all.ru/3.2/reference/expressions.html#conditional-expressions)638    - [5.12. Лямбда-выражения](https://python-all.ru/3.2/reference/expressions.html#lambda)639    - [5.13. Списки выражений](https://python-all.ru/3.2/reference/expressions.html#expression-lists)640    - [5.14. Порядок вычисления](https://python-all.ru/3.2/reference/expressions.html#evaluation-order)641    - [5.15. Приоритет операторов](https://python-all.ru/3.2/reference/expressions.html#operator-precedence)642  - [6. Простые инструкции](https://python-all.ru/3.2/reference/simple_stmts.html)643644    - [6.1. Инструкции-выражения](https://python-all.ru/3.2/reference/simple_stmts.html#expression-statements)645    - [6.2. Инструкции присваивания](https://python-all.ru/3.2/reference/simple_stmts.html#assignment-statements)646647      - [6.2.1. Инструкции присваивания с операцией](https://python-all.ru/3.2/reference/simple_stmts.html#augmented-assignment-statements)648    - [6.3. Инструкция `assert`](https://python-all.ru/3.2/reference/simple_stmts.html#the-assert-statement)649    - [6.4. Инструкция `pass`](https://python-all.ru/3.2/reference/simple_stmts.html#the-pass-statement)650    - [6.5. Инструкция `del`](https://python-all.ru/3.2/reference/simple_stmts.html#the-del-statement)651    - [6.6. Оператор `return`](https://python-all.ru/3.2/reference/simple_stmts.html#the-return-statement)652    - [6.7. Оператор `yield`](https://python-all.ru/3.2/reference/simple_stmts.html#the-yield-statement)653    - [6.8. Оператор `raise`](https://python-all.ru/3.2/reference/simple_stmts.html#the-raise-statement)654    - [6.9. Оператор `break`](https://python-all.ru/3.2/reference/simple_stmts.html#the-break-statement)655    - [6.10. Оператор `continue`](https://python-all.ru/3.2/reference/simple_stmts.html#the-continue-statement)656    - [6.11. Оператор `import`](https://python-all.ru/3.2/reference/simple_stmts.html#the-import-statement)657658      - [6.11.1. Инструкции future](https://python-all.ru/3.2/reference/simple_stmts.html#future-statements)659    - [6.12. Оператор `global`](https://python-all.ru/3.2/reference/simple_stmts.html#the-global-statement)660    - [6.13. Оператор `nonlocal`](https://python-all.ru/3.2/reference/simple_stmts.html#the-nonlocal-statement)661  - [7. Составные инструкции](https://python-all.ru/3.2/reference/compound_stmts.html)662663    - [7.1. Инструкция `if`](https://python-all.ru/3.2/reference/compound_stmts.html#the-if-statement)664    - [7.2. Инструкция `while`](https://python-all.ru/3.2/reference/compound_stmts.html#the-while-statement)665    - [7.3. Инструкция `for`](https://python-all.ru/3.2/reference/compound_stmts.html#the-for-statement)666    - [7.4. Инструкция `try`](https://python-all.ru/3.2/reference/compound_stmts.html#the-try-statement)667    - [7.5. Инструкция `with`](https://python-all.ru/3.2/reference/compound_stmts.html#the-with-statement)668    - [7.6. Определения функций](https://python-all.ru/3.2/reference/compound_stmts.html#function-definitions)669    - [7.7. Определения классов](https://python-all.ru/3.2/reference/compound_stmts.html#class-definitions)670  - [8. Компоненты верхнего уровня](https://python-all.ru/3.2/reference/toplevel_components.html)671672    - [8.1. Полные программы Python](https://python-all.ru/3.2/reference/toplevel_components.html#complete-python-programs)673    - [8.2. Ввод из файла](https://python-all.ru/3.2/reference/toplevel_components.html#file-input)674    - [8.3. Интерактивный ввод](https://python-all.ru/3.2/reference/toplevel_components.html#interactive-input)675    - [8.4. Ввод выражений](https://python-all.ru/3.2/reference/toplevel_components.html#expression-input)676  - [9. Полная спецификация грамматики](https://python-all.ru/3.2/reference/grammar.html)677- [Стандартная библиотека Python](https://python-all.ru/3.2/library/index.html)678679  - [1. Введение](https://python-all.ru/3.2/library/intro.html)680  - [2. Встроенные функции](https://python-all.ru/3.2/library/functions.html)681  - [3. Встроенные константы](https://python-all.ru/3.2/library/constants.html)682683    - [3.1. Константы, добавленные модулем `site`](https://python-all.ru/3.2/library/constants.html#constants-added-by-the-site-module)684  - [4. Встроенные типы](https://python-all.ru/3.2/library/stdtypes.html)685686    - [4.1. Проверка истинности](https://python-all.ru/3.2/library/stdtypes.html#truth-value-testing)687    - [4.2. Логические операции – `and`, `or`, `not`](https://python-all.ru/3.2/library/stdtypes.html#boolean-operations-and-or-not)688    - [4.3. Сравнения](https://python-all.ru/3.2/library/stdtypes.html#comparisons)689    - [4.4. Числовые типы – `int`, `float`, `complex`](https://python-all.ru/3.2/library/stdtypes.html#numeric-types-int-float-complex)690691      - [4.4.1. Побитовые операции над целыми типами](https://python-all.ru/3.2/library/stdtypes.html#bitwise-operations-on-integer-types)692      - [4.4.2. Дополнительные методы целых типов](https://python-all.ru/3.2/library/stdtypes.html#additional-methods-on-integer-types)693      - [4.4.3. Дополнительные методы Float](https://python-all.ru/3.2/library/stdtypes.html#additional-methods-on-float)694      - [4.4.4. Хеширование числовых типов](https://python-all.ru/3.2/library/stdtypes.html#hashing-of-numeric-types)695    - [4.5. Типы итераторов](https://python-all.ru/3.2/library/stdtypes.html#iterator-types)696697      - [4.5.1. Типы генераторов](https://python-all.ru/3.2/library/stdtypes.html#generator-types)698    - [4.6. Типы последовательностей – `str`, `bytes`, `bytearray`, `list`, `tuple`, `range`](https://python-all.ru/3.2/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range)699700      - [4.6.1. Методы строк](https://python-all.ru/3.2/library/stdtypes.html#string-methods)701      - [4.6.2. Старые операции форматирования строк](https://python-all.ru/3.2/library/stdtypes.html#old-string-formatting-operations)702      - [4.6.3. Тип range](https://python-all.ru/3.2/library/stdtypes.html#range-type)703      - [4.6.4. Изменяемые типы последовательностей](https://python-all.ru/3.2/library/stdtypes.html#mutable-sequence-types)704      - [4.6.5. Методы bytes и bytearray](https://python-all.ru/3.2/library/stdtypes.html#bytes-and-byte-array-methods)705    - [4.7. Типы множеств – `set`, `frozenset`](https://python-all.ru/3.2/library/stdtypes.html#set-types-set-frozenset)706    - [4.8. Типы отображений – `dict`](https://python-all.ru/3.2/library/stdtypes.html#mapping-types-dict)707708      - [4.8.1. Объекты представления словаря](https://python-all.ru/3.2/library/stdtypes.html#dictionary-view-objects)709    - [4.9. Тип memoryview](https://python-all.ru/3.2/library/stdtypes.html#memoryview-type)710    - [4.10. Типы менеджеров контекста](https://python-all.ru/3.2/library/stdtypes.html#context-manager-types)711    - [4.11. Прочие встроенные типы](https://python-all.ru/3.2/library/stdtypes.html#other-built-in-types)712713      - [4.11.1. Модули](https://python-all.ru/3.2/library/stdtypes.html#modules)714      - [4.11.2. Классы и экземпляры классов](https://python-all.ru/3.2/library/stdtypes.html#classes-and-class-instances)715      - [4.11.3. Функции](https://python-all.ru/3.2/library/stdtypes.html#functions)716      - [4.11.4. Методы](https://python-all.ru/3.2/library/stdtypes.html#methods)717      - [4.11.5. Объекты кода](https://python-all.ru/3.2/library/stdtypes.html#code-objects)718      - [4.11.6. Объекты типов](https://python-all.ru/3.2/library/stdtypes.html#type-objects)719      - [4.11.7. Объект Null](https://python-all.ru/3.2/library/stdtypes.html#the-null-object)720      - [4.11.8. Объект Ellipsis](https://python-all.ru/3.2/library/stdtypes.html#the-ellipsis-object)721      - [4.11.9. Объект NotImplemented](https://python-all.ru/3.2/library/stdtypes.html#the-notimplemented-object)722      - [4.11.10. Булевы значения](https://python-all.ru/3.2/library/stdtypes.html#boolean-values)723      - [4.11.11. Внутренние объекты](https://python-all.ru/3.2/library/stdtypes.html#internal-objects)724    - [4.12. Специальные атрибуты](https://python-all.ru/3.2/library/stdtypes.html#special-attributes)725  - [5. Встроенные исключения](https://python-all.ru/3.2/library/exceptions.html)726727    - [5.1. Иерархия исключений](https://python-all.ru/3.2/library/exceptions.html#exception-hierarchy)728  - [6. Строковые сервисы](https://python-all.ru/3.2/library/strings.html)729730    - [6.1. `string` – Распространённые операции со строками](https://python-all.ru/3.2/library/string.html)731732      - [6.1.1. Константы строк](https://python-all.ru/3.2/library/string.html#string-constants)733      - [6.1.2. Форматирование строк](https://python-all.ru/3.2/library/string.html#string-formatting)734      - [6.1.3. Синтаксис форматной строки](https://python-all.ru/3.2/library/string.html#format-string-syntax)735736        - [6.1.3.1. Мини-язык спецификаций формата](https://python-all.ru/3.2/library/string.html#format-specification-mini-language)737        - [6.1.3.2. Примеры форматирования](https://python-all.ru/3.2/library/string.html#format-examples)738      - [6.1.4. Шаблонные строки](https://python-all.ru/3.2/library/string.html#template-strings)739      - [6.1.5. Вспомогательные функции](https://python-all.ru/3.2/library/string.html#helper-functions)740    - [6.2. `re` – Операции с регулярными выражениями](https://python-all.ru/3.2/library/re.html)741742      - [6.2.1. Синтаксис регулярных выражений](https://python-all.ru/3.2/library/re.html#regular-expression-syntax)743      - [6.2.2. Содержимое модуля](https://python-all.ru/3.2/library/re.html#module-contents)744      - [6.2.3. Объекты регулярных выражений](https://python-all.ru/3.2/library/re.html#regular-expression-objects)745      - [6.2.4. Объекты сопоставления](https://python-all.ru/3.2/library/re.html#match-objects)746      - [6.2.5. Примеры регулярных выражений](https://python-all.ru/3.2/library/re.html#regular-expression-examples)747748        - [6.2.5.1. Проверка на пару](https://python-all.ru/3.2/library/re.html#checking-for-a-pair)749        - [6.2.5.2. Имитация scanf()](https://python-all.ru/3.2/library/re.html#simulating-scanf)750        - [6.2.5.3. search() против match()](https://python-all.ru/3.2/library/re.html#search-vs-match)751        - [6.2.5.4. Создание телефонной книги](https://python-all.ru/3.2/library/re.html#making-a-phonebook)752        - [6.2.5.5. Обработка текста](https://python-all.ru/3.2/library/re.html#text-munging)753        - [6.2.5.6. Поиск всех наречий](https://python-all.ru/3.2/library/re.html#finding-all-adverbs)754        - [6.2.5.7. Поиск всех наречий и их позиций](https://python-all.ru/3.2/library/re.html#finding-all-adverbs-and-their-positions)755        - [6.2.5.8. Сырые строки](https://python-all.ru/3.2/library/re.html#raw-string-notation)756        - [6.2.5.9. Написание токенизатора](https://python-all.ru/3.2/library/re.html#writing-a-tokenizer)757    - [6.3. `struct` – Интерпретация байтов как упакованных двоичных данных](https://python-all.ru/3.2/library/struct.html)758759      - [6.3.1. Функции и исключения](https://python-all.ru/3.2/library/struct.html#functions-and-exceptions)760      - [6.3.2. Строки формата](https://python-all.ru/3.2/library/struct.html#format-strings)761762        - [6.3.2.1. Порядок байтов, размер и выравнивание](https://python-all.ru/3.2/library/struct.html#byte-order-size-and-alignment)763        - [6.3.2.2. Символы формата](https://python-all.ru/3.2/library/struct.html#format-characters)764        - [6.3.2.3. Примеры](https://python-all.ru/3.2/library/struct.html#examples)765      - [6.3.3. Классы](https://python-all.ru/3.2/library/struct.html#classes)766    - [6.4. `difflib` – Вспомогательные средства для вычисления дельт](https://python-all.ru/3.2/library/difflib.html)767768      - [6.4.1. Объекты SequenceMatcher](https://python-all.ru/3.2/library/difflib.html#sequencematcher-objects)769      - [6.4.2. Примеры SequenceMatcher](https://python-all.ru/3.2/library/difflib.html#sequencematcher-examples)770      - [6.4.3. Объекты Differ](https://python-all.ru/3.2/library/difflib.html#differ-objects)771      - [6.4.4. Пример Differ](https://python-all.ru/3.2/library/difflib.html#differ-example)772      - [6.4.5. Интерфейс командной строки для difflib](https://python-all.ru/3.2/library/difflib.html#a-command-line-interface-to-difflib)773    - [6.5. `textwrap` – Перенос строк и заполнение](https://python-all.ru/3.2/library/textwrap.html)774    - [6.6. `codecs` – Реестр кодеков и базовые классы](https://python-all.ru/3.2/library/codecs.html)775776      - [6.6.1. Базовые классы кодеков](https://python-all.ru/3.2/library/codecs.html#codec-base-classes)777778        - [6.6.1.1. Объекты Codec](https://python-all.ru/3.2/library/codecs.html#codec-objects)779        - [6.6.1.2. Объекты IncrementalEncoder](https://python-all.ru/3.2/library/codecs.html#incrementalencoder-objects)780        - [6.6.1.3. Объекты IncrementalDecoder](https://python-all.ru/3.2/library/codecs.html#incrementaldecoder-objects)781        - [6.6.1.4. Объекты StreamWriter](https://python-all.ru/3.2/library/codecs.html#streamwriter-objects)782        - [6.6.1.5. Объекты StreamReader](https://python-all.ru/3.2/library/codecs.html#streamreader-objects)783        - [6.6.1.6. Объекты StreamReaderWriter](https://python-all.ru/3.2/library/codecs.html#streamreaderwriter-objects)784        - [6.6.1.7. Объекты StreamRecoder](https://python-all.ru/3.2/library/codecs.html#streamrecoder-objects)785      - [6.6.2. Кодировки и Юникод](https://python-all.ru/3.2/library/codecs.html#encodings-and-unicode)786      - [6.6.3. Стандартные кодировки](https://python-all.ru/3.2/library/codecs.html#standard-encodings)787      - [6.6.4. `encodings.idna` – Интернационализированные доменные имена в приложениях](https://python-all.ru/3.2/library/codecs.html#module-encodings.idna)788      - [6.6.5. `encodings.mbcs` – Кодовая страница Windows ANSI](https://python-all.ru/3.2/library/codecs.html#module-encodings.mbcs)789      - [6.6.6. `encodings.utf_8_sig` – Кодек UTF-8 с сигнатурой BOM](https://python-all.ru/3.2/library/codecs.html#module-encodings.utf_8_sig)790    - [6.7. `unicodedata` – База данных Юникода](https://python-all.ru/3.2/library/unicodedata.html)791    - [6.8. `stringprep` – Подготовка интернет-строк](https://python-all.ru/3.2/library/stringprep.html)792  - [7. Типы данных](https://python-all.ru/3.2/library/datatypes.html)793794    - [7.1. `datetime` – Базовые типы даты и времени](https://python-all.ru/3.2/library/datetime.html)795796      - [7.1.1. Доступные типы](https://python-all.ru/3.2/library/datetime.html#available-types)797      - [7.1.2. Объекты `timedelta`](https://python-all.ru/3.2/library/datetime.html#timedelta-objects)798      - [7.1.3. Объекты `date`](https://python-all.ru/3.2/library/datetime.html#date-objects)799      - [7.1.4. Объекты `datetime`](https://python-all.ru/3.2/library/datetime.html#datetime-objects)800      - [7.1.5. Объекты `time`](https://python-all.ru/3.2/library/datetime.html#time-objects)801      - [7.1.6. Объекты `tzinfo`](https://python-all.ru/3.2/library/datetime.html#tzinfo-objects)802      - [7.1.7. Объекты `timezone`](https://python-all.ru/3.2/library/datetime.html#timezone-objects)803      - [7.1.8. Поведение `strftime()` и `strptime()`](https://python-all.ru/3.2/library/datetime.html#strftime-and-strptime-behavior)804    - [7.2. `calendar` – Общие функции для работы с календарём](https://python-all.ru/3.2/library/calendar.html)805    - [7.3. `collections` – Типы-контейнеры](https://python-all.ru/3.2/library/collections.html)806807      - [7.3.1. Объекты `Counter`](https://python-all.ru/3.2/library/collections.html#counter-objects)808      - [7.3.2. Объекты `deque`](https://python-all.ru/3.2/library/collections.html#deque-objects)809810        - [7.3.2.1. Рецепты `deque`](https://python-all.ru/3.2/library/collections.html#deque-recipes)811      - [7.3.3. Объекты `defaultdict`](https://python-all.ru/3.2/library/collections.html#defaultdict-objects)812813        - [7.3.3.1. Примеры `defaultdict`](https://python-all.ru/3.2/library/collections.html#defaultdict-examples)814      - [7.3.4. `namedtuple()` Фабричная функция для кортежей с именованными полями](https://python-all.ru/3.2/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields)815      - [7.3.5. `OrderedDict` объекты](https://python-all.ru/3.2/library/collections.html#ordereddict-objects)816817        - [7.3.5.1. `OrderedDict` Примеры и рецепты](https://python-all.ru/3.2/library/collections.html#ordereddict-examples-and-recipes)818      - [7.3.6. `UserDict` объекты](https://python-all.ru/3.2/library/collections.html#userdict-objects)819      - [7.3.7. `UserList` объекты](https://python-all.ru/3.2/library/collections.html#userlist-objects)820      - [7.3.8. `UserString` объекты](https://python-all.ru/3.2/library/collections.html#userstring-objects)821      - [7.3.9. ABCs – абстрактные базовые классы](https://python-all.ru/3.2/library/collections.html#abcs-abstract-base-classes)822    - [7.4. `heapq` – алгоритм кучи (очередь с приоритетом)](https://python-all.ru/3.2/library/heapq.html)823824      - [7.4.1. Простые примеры](https://python-all.ru/3.2/library/heapq.html#basic-examples)825      - [7.4.2. Заметки по реализации очереди с приоритетами](https://python-all.ru/3.2/library/heapq.html#priority-queue-implementation-notes)826      - [7.4.3. Теория](https://python-all.ru/3.2/library/heapq.html#theory)827    - [7.5. `bisect` – алгоритм бинарного поиска в массиве](https://python-all.ru/3.2/library/bisect.html)828829      - [7.5.1. Поиск в отсортированных списках](https://python-all.ru/3.2/library/bisect.html#searching-sorted-lists)830      - [7.5.2. Другие примеры](https://python-all.ru/3.2/library/bisect.html#other-examples)831    - [7.6. `array` – эффективные массивы числовых значений](https://python-all.ru/3.2/library/array.html)832    - [7.7. `sched` – планировщик событий](https://python-all.ru/3.2/library/sched.html)833834      - [7.7.1. Объекты планировщика](https://python-all.ru/3.2/library/sched.html#scheduler-objects)835    - [7.8. `queue` – синхронизированный класс очереди](https://python-all.ru/3.2/library/queue.html)836837      - [7.8.1. Объекты очереди](https://python-all.ru/3.2/library/queue.html#queue-objects)838    - [7.9. `weakref` – слабые ссылки](https://python-all.ru/3.2/library/weakref.html)839840      - [7.9.1. Объекты слабых ссылок](https://python-all.ru/3.2/library/weakref.html#weak-reference-objects)841      - [7.9.2. Пример](https://python-all.ru/3.2/library/weakref.html#example)842    - [7.10. `types` – имена встроенных типов](https://python-all.ru/3.2/library/types.html)843    - [7.11. `copy` – операции поверхностного и глубокого копирования](https://python-all.ru/3.2/library/copy.html)844    - [7.12. `pprint` – форматированный вывод данных](https://python-all.ru/3.2/library/pprint.html)845846      - [7.12.1. Объекты PrettyPrinter](https://python-all.ru/3.2/library/pprint.html#prettyprinter-objects)847      - [7.12.2. Пример](https://python-all.ru/3.2/library/pprint.html#example)848    - [7.13. `reprlib` – альтернативная реализация `repr()`](https://python-all.ru/3.2/library/reprlib.html)849850      - [7.13.1. Объекты Repr](https://python-all.ru/3.2/library/reprlib.html#repr-objects)851      - [7.13.2. Создание подклассов Repr](https://python-all.ru/3.2/library/reprlib.html#subclassing-repr-objects)852  - [8. Числовые и математические модули](https://python-all.ru/3.2/library/numeric.html)853854    - [8.1. `numbers` – числовые абстрактные базовые классы](https://python-all.ru/3.2/library/numbers.html)855856      - [8.1.1. Числовая башня](https://python-all.ru/3.2/library/numbers.html#the-numeric-tower)857      - [8.1.2. Примечания для разработчиков типов](https://python-all.ru/3.2/library/numbers.html#notes-for-type-implementors)858859        - [8.1.2.1. Добавление новых числовых ABC](https://python-all.ru/3.2/library/numbers.html#adding-more-numeric-abcs)860        - [8.1.2.2. Реализация арифметических операций](https://python-all.ru/3.2/library/numbers.html#implementing-the-arithmetic-operations)861    - [8.2. `math` – Математические функции](https://python-all.ru/3.2/library/math.html)862863      - [8.2.1. Теоретико-числовые функции и функции представления](https://python-all.ru/3.2/library/math.html#number-theoretic-and-representation-functions)864      - [8.2.2. Степенные и логарифмические функции](https://python-all.ru/3.2/library/math.html#power-and-logarithmic-functions)865      - [8.2.3. Тригонометрические функции](https://python-all.ru/3.2/library/math.html#trigonometric-functions)866      - [8.2.4. Преобразование углов](https://python-all.ru/3.2/library/math.html#angular-conversion)867      - [8.2.5. Гиперболические функции](https://python-all.ru/3.2/library/math.html#hyperbolic-functions)868      - [8.2.6. Специальные функции](https://python-all.ru/3.2/library/math.html#special-functions)869      - [8.2.7. Константы](https://python-all.ru/3.2/library/math.html#constants)870    - [8.3. `cmath` – Математические функции для комплексных чисел](https://python-all.ru/3.2/library/cmath.html)871872      - [8.3.1. Преобразования в полярные координаты и обратно](https://python-all.ru/3.2/library/cmath.html#conversions-to-and-from-polar-coordinates)873      - [8.3.2. Степенные и логарифмические функции](https://python-all.ru/3.2/library/cmath.html#power-and-logarithmic-functions)874      - [8.3.3. Тригонометрические функции](https://python-all.ru/3.2/library/cmath.html#trigonometric-functions)875      - [8.3.4. Гиперболические функции](https://python-all.ru/3.2/library/cmath.html#hyperbolic-functions)876      - [8.3.5. Функции классификации](https://python-all.ru/3.2/library/cmath.html#classification-functions)877      - [8.3.6. Константы](https://python-all.ru/3.2/library/cmath.html#constants)878    - [8.4. `decimal` – Десятичная арифметика с фиксированной и плавающей точкой](https://python-all.ru/3.2/library/decimal.html)879880      - [8.4.1. Краткое руководство](https://python-all.ru/3.2/library/decimal.html#quick-start-tutorial)881      - [8.4.2. Объекты Decimal](https://python-all.ru/3.2/library/decimal.html#decimal-objects)882883        - [8.4.2.1. Логические операнды](https://python-all.ru/3.2/library/decimal.html#logical-operands)884      - [8.4.3. Объекты контекста](https://python-all.ru/3.2/library/decimal.html#context-objects)885      - [8.4.4. Сигналы](https://python-all.ru/3.2/library/decimal.html#signals)886      - [8.4.5. Примечания по числам с плавающей точкой](https://python-all.ru/3.2/library/decimal.html#floating-point-notes)887888        - [8.4.5.1. Снижение ошибок округления за счёт увеличения точности](https://python-all.ru/3.2/library/decimal.html#mitigating-round-off-error-with-increased-precision)889        - [8.4.5.2. Специальные значения](https://python-all.ru/3.2/library/decimal.html#special-values)890      - [8.4.6. Работа с потоками](https://python-all.ru/3.2/library/decimal.html#working-with-threads)891      - [8.4.7. Рецепты](https://python-all.ru/3.2/library/decimal.html#recipes)892      - [8.4.8. Decimal FAQ](https://python-all.ru/3.2/library/decimal.html#decimal-faq)893    - [8.5. `fractions` – Рациональные числа](https://python-all.ru/3.2/library/fractions.html)894    - [8.6. `random` – Генерация псевдослучайных чисел](https://python-all.ru/3.2/library/random.html)895896      - [8.6.1. Примечания о воспроизводимости](https://python-all.ru/3.2/library/random.html#notes-on-reproducibility)897      - [8.6.2. Примеры и рецепты](https://python-all.ru/3.2/library/random.html#examples-and-recipes)898  - [9. Модули функционального программирования](https://python-all.ru/3.2/library/functional.html)899900    - [9.1. `itertools` – Функции, создающие итераторы для эффективного обхода](https://python-all.ru/3.2/library/itertools.html)901902      - [9.1.1. Функции itertools](https://python-all.ru/3.2/library/itertools.html#itertool-functions)903      - [9.1.2. Рецепты itertools](https://python-all.ru/3.2/library/itertools.html#itertools-recipes)904    - [9.2. `functools` – Функции высшего порядка и операции над вызываемыми объектами](https://python-all.ru/3.2/library/functools.html)905906      - [9.2.1. `partial` Объекты](https://python-all.ru/3.2/library/functools.html#partial-objects)907    - [9.3. `operator` – Стандартные операторы как функции](https://python-all.ru/3.2/library/operator.html)908909      - [9.3.1. Сопоставление операторов с функциями](https://python-all.ru/3.2/library/operator.html#mapping-operators-to-functions)910      - [9.3.2. Операторы на месте](https://python-all.ru/3.2/library/operator.html#inplace-operators)911  - [10. Доступ к файлам и каталогам](https://python-all.ru/3.2/library/filesys.html)912913    - [10.1. `os.path` – Общие операции с путями](https://python-all.ru/3.2/library/os.path.html)914    - [10.2. `fileinput` – Итерация по строкам из нескольких входных потоков](https://python-all.ru/3.2/library/fileinput.html)915    - [10.3. `stat` – Интерпретация результатов `stat()`](https://python-all.ru/3.2/library/stat.html)916    - [10.4. `filecmp` – Сравнение файлов и каталогов](https://python-all.ru/3.2/library/filecmp.html)917918      - [10.4.1. Класс `dircmp`](https://python-all.ru/3.2/library/filecmp.html#the-dircmp-class)919    - [10.5. `tempfile` – Создание временных файлов и каталогов](https://python-all.ru/3.2/library/tempfile.html)920921      - [10.5.1. Примеры](https://python-all.ru/3.2/library/tempfile.html#examples)922    - [10.6. `glob` – Расширение шаблонов путей в стиле Unix](https://python-all.ru/3.2/library/glob.html)923    - [10.7. `fnmatch` – Сопоставление имен файлов по шаблону Unix](https://python-all.ru/3.2/library/fnmatch.html)924    - [10.8. `linecache` – Произвольный доступ к строкам текста](https://python-all.ru/3.2/library/linecache.html)925    - [10.9. `shutil` – Высокоуровневые операции с файлами](https://python-all.ru/3.2/library/shutil.html)926927      - [10.9.1. Операции с каталогами и файлами](https://python-all.ru/3.2/library/shutil.html#directory-and-files-operations)928929        - [10.9.1.1. Пример copytree](https://python-all.ru/3.2/library/shutil.html#copytree-example)930      - [10.9.2. Операции архивирования](https://python-all.ru/3.2/library/shutil.html#archiving-operations)931932        - [10.9.2.1. Пример архивирования](https://python-all.ru/3.2/library/shutil.html#archiving-example)933    - [10.10. `macpath` – Функции работы с путями Mac OS 9](https://python-all.ru/3.2/library/macpath.html)934  - [11. Устойчивое сохранение данных](https://python-all.ru/3.2/library/persistence.html)935936    - [11.1. `pickle` – Сериализация объектов Python](https://python-all.ru/3.2/library/pickle.html)937938      - [11.1.1. Отношение к другим модулям Python](https://python-all.ru/3.2/library/pickle.html#relationship-to-other-python-modules)939      - [11.1.2. Формат потока данных](https://python-all.ru/3.2/library/pickle.html#data-stream-format)940      - [11.1.3. Интерфейс модуля](https://python-all.ru/3.2/library/pickle.html#module-interface)941      - [11.1.4. Что можно сериализовать и десериализовать?](https://python-all.ru/3.2/library/pickle.html#what-can-be-pickled-and-unpickled)942      - [11.1.5. Сериализация экземпляров классов](https://python-all.ru/3.2/library/pickle.html#pickling-class-instances)943944        - [11.1.5.1. Сохранение внешних объектов](https://python-all.ru/3.2/library/pickle.html#persistence-of-external-objects)945        - [11.1.5.2. Обработка объектов с состоянием](https://python-all.ru/3.2/library/pickle.html#handling-stateful-objects)946      - [11.1.6. Ограничение глобальных объектов](https://python-all.ru/3.2/library/pickle.html#restricting-globals)947      - [11.1.7. Примеры](https://python-all.ru/3.2/library/pickle.html#examples)948    - [11.2. `copyreg` – Регистрация `pickle` вспомогательных функций](https://python-all.ru/3.2/library/copyreg.html)949950      - [11.2.1. Пример](https://python-all.ru/3.2/library/copyreg.html#example)951    - [11.3. `shelve` – Сохранение объектов Python](https://python-all.ru/3.2/library/shelve.html)952953      - [11.3.1. Ограничения](https://python-all.ru/3.2/library/shelve.html#restrictions)954      - [11.3.2. Пример](https://python-all.ru/3.2/library/shelve.html#example)955    - [11.4. `marshal` – Внутренняя сериализация объектов Python](https://python-all.ru/3.2/library/marshal.html)956    - [11.5. `dbm` – Интерфейсы к «базам данных» Unix](https://python-all.ru/3.2/library/dbm.html)957958      - [11.5.1. `dbm.gnu` – Переосмысление dbm от GNU](https://python-all.ru/3.2/library/dbm.html#module-dbm.gnu)959      - [11.5.2. `dbm.ndbm` – Интерфейс на основе ndbm](https://python-all.ru/3.2/library/dbm.html#module-dbm.ndbm)960      - [11.5.3. `dbm.dumb` – Переносимая реализация DBM](https://python-all.ru/3.2/library/dbm.html#module-dbm.dumb)961    - [11.6. `sqlite3` – Интерфейс DB-API 2.0 для баз данных SQLite](https://python-all.ru/3.2/library/sqlite3.html)962963      - [11.6.1. Функции и константы модуля](https://python-all.ru/3.2/library/sqlite3.html#module-functions-and-constants)964      - [11.6.2. Объекты соединения](https://python-all.ru/3.2/library/sqlite3.html#connection-objects)965      - [11.6.3. Объекты курсора](https://python-all.ru/3.2/library/sqlite3.html#cursor-objects)966      - [11.6.4. Объекты строки](https://python-all.ru/3.2/library/sqlite3.html#row-objects)967      - [11.6.5. Типы SQLite и Python](https://python-all.ru/3.2/library/sqlite3.html#sqlite-and-python-types)968969        - [11.6.5.1. Введение](https://python-all.ru/3.2/library/sqlite3.html#introduction)970        - [11.6.5.2. Использование адаптеров для хранения дополнительных типов Python в базах данных SQLite](https://python-all.ru/3.2/library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases)971972          - [11.6.5.2.1. Адаптация объекта самостоятельно](https://python-all.ru/3.2/library/sqlite3.html#letting-your-object-adapt-itself)973          - [11.6.5.2.2. Регистрация вызываемого адаптера](https://python-all.ru/3.2/library/sqlite3.html#registering-an-adapter-callable)974        - [11.6.5.3. Преобразование значений SQLite в пользовательские типы Python](https://python-all.ru/3.2/library/sqlite3.html#converting-sqlite-values-to-custom-python-types)975        - [11.6.5.4. Адаптеры и преобразователи по умолчанию](https://python-all.ru/3.2/library/sqlite3.html#default-adapters-and-converters)976      - [11.6.6. Управление транзакциями](https://python-all.ru/3.2/library/sqlite3.html#controlling-transactions)977      - [11.6.7. Эффективное использование `sqlite3`](https://python-all.ru/3.2/library/sqlite3.html#using-sqlite3-efficiently)978979        - [11.6.7.1. Использование сокращённых методов](https://python-all.ru/3.2/library/sqlite3.html#using-shortcut-methods)980        - [11.6.7.2. Доступ к столбцам по имени вместо индекса](https://python-all.ru/3.2/library/sqlite3.html#accessing-columns-by-name-instead-of-by-index)981        - [11.6.7.3. Использование соединения как менеджера контекста](https://python-all.ru/3.2/library/sqlite3.html#using-the-connection-as-a-context-manager)982      - [11.6.8. Частые проблемы](https://python-all.ru/3.2/library/sqlite3.html#common-issues)983984        - [11.6.8.1. Многопоточность](https://python-all.ru/3.2/library/sqlite3.html#multithreading)985  - [12. Сжатие и архивирование данных](https://python-all.ru/3.2/library/archiving.html)986987    - [12.1. `zlib` – Сжатие, совместимое с **gzip**](https://python-all.ru/3.2/library/zlib.html)988    - [12.2. `gzip` – Поддержка файлов **gzip**](https://python-all.ru/3.2/library/gzip.html)989990      - [12.2.1. Примеры использования](https://python-all.ru/3.2/library/gzip.html#examples-of-usage)991    - [12.3. `bz2` – Сжатие, совместимое с **bzip2**](https://python-all.ru/3.2/library/bz2.html)992993      - [12.3.1. Сжатие и распаковка файлов](https://python-all.ru/3.2/library/bz2.html#de-compression-of-files)994      - [12.3.2. Последовательное сжатие и распаковка](https://python-all.ru/3.2/library/bz2.html#sequential-de-compression)995      - [12.3.3. Одноразовое сжатие и распаковка](https://python-all.ru/3.2/library/bz2.html#one-shot-de-compression)996    - [12.4. `zipfile` – Работа с ZIP-архивами](https://python-all.ru/3.2/library/zipfile.html)997998      - [12.4.1. Объекты ZipFile](https://python-all.ru/3.2/library/zipfile.html#zipfile-objects)999      - [12.4.2. Объекты PyZipFile](https://python-all.ru/3.2/library/zipfile.html#pyzipfile-objects)1000      - [12.4.3. Объекты ZipInfo](https://python-all.ru/3.2/library/zipfile.html#zipinfo-objects)1001    - [12.5. `tarfile` – Чтение и запись tar-архивов](https://python-all.ru/3.2/library/tarfile.html)10021003      - [12.5.1. Объекты TarFile](https://python-all.ru/3.2/library/tarfile.html#tarfile-objects)1004      - [12.5.2. Объекты TarInfo](https://python-all.ru/3.2/library/tarfile.html#tarinfo-objects)1005      - [12.5.3. Примеры](https://python-all.ru/3.2/library/tarfile.html#examples)1006      - [12.5.4. Поддерживаемые форматы tar](https://python-all.ru/3.2/library/tarfile.html#supported-tar-formats)1007      - [12.5.5. Проблемы с Unicode](https://python-all.ru/3.2/library/tarfile.html#unicode-issues)1008  - [13. Форматы файлов](https://python-all.ru/3.2/library/fileformats.html)10091010    - [13.1. `csv` – Чтение и запись CSV-файлов](https://python-all.ru/3.2/library/csv.html)10111012      - [13.1.1. Содержимое модуля](https://python-all.ru/3.2/library/csv.html#module-contents)1013      - [13.1.2. Диалекты и параметры форматирования](https://python-all.ru/3.2/library/csv.html#dialects-and-formatting-parameters)1014      - [13.1.3. Объекты Reader](https://python-all.ru/3.2/library/csv.html#reader-objects)1015      - [13.1.4. Объекты Writer](https://python-all.ru/3.2/library/csv.html#writer-objects)1016      - [13.1.5. Примеры](https://python-all.ru/3.2/library/csv.html#examples)1017    - [13.2. `configparser` – Парсер конфигурационных файлов](https://python-all.ru/3.2/library/configparser.html)10181019      - [13.2.1. Быстрый старт](https://python-all.ru/3.2/library/configparser.html#quick-start)1020      - [13.2.2. Поддерживаемые типы данных](https://python-all.ru/3.2/library/configparser.html#supported-datatypes)1021      - [13.2.3. Значения по умолчанию](https://python-all.ru/3.2/library/configparser.html#fallback-values)1022      - [13.2.4. Поддерживаемая структура INI-файлов](https://python-all.ru/3.2/library/configparser.html#supported-ini-file-structure)1023      - [13.2.5. Интерполяция значений](https://python-all.ru/3.2/library/configparser.html#interpolation-of-values)1024      - [13.2.6. Доступ через протокол отображения](https://python-all.ru/3.2/library/configparser.html#mapping-protocol-access)1025      - [13.2.7. Настройка поведения парсера](https://python-all.ru/3.2/library/configparser.html#customizing-parser-behaviour)1026      - [13.2.8. Примеры устаревшего API](https://python-all.ru/3.2/library/configparser.html#legacy-api-examples)1027      - [13.2.9. Объекты ConfigParser](https://python-all.ru/3.2/library/configparser.html#configparser-objects)1028      - [13.2.10. Объекты RawConfigParser](https://python-all.ru/3.2/library/configparser.html#rawconfigparser-objects)1029      - [13.2.11. Исключения](https://python-all.ru/3.2/library/configparser.html#exceptions)1030    - [13.3. `netrc` – обработка файлов netrc](https://python-all.ru/3.2/library/netrc.html)10311032      - [13.3.1. Объекты netrc](https://python-all.ru/3.2/library/netrc.html#netrc-objects)1033    - [13.4. `xdrlib` – кодирование и декодирование данных XDR](https://python-all.ru/3.2/library/xdrlib.html)10341035      - [13.4.1. Объекты Packer](https://python-all.ru/3.2/library/xdrlib.html#packer-objects)1036      - [13.4.2. Объекты Unpacker](https://python-all.ru/3.2/library/xdrlib.html#unpacker-objects)1037      - [13.4.3. Исключения](https://python-all.ru/3.2/library/xdrlib.html#exceptions)1038    - [13.5. `plistlib` – создание и разбор файлов `.plist` Mac OS X](https://python-all.ru/3.2/library/plistlib.html)10391040      - [13.5.1. Примеры](https://python-all.ru/3.2/library/plistlib.html#examples)1041  - [14. Криптографические сервисы](https://python-all.ru/3.2/library/crypto.html)10421043    - [14.1. `hashlib` – Безопасные хеши и дайджесты сообщений](https://python-all.ru/3.2/library/hashlib.html)1044    - [14.2. `hmac` – Ключевое хеширование для аутентификации сообщений](https://python-all.ru/3.2/library/hmac.html)1045  - [15. Общие службы операционной системы](https://python-all.ru/3.2/library/allos.html)10461047    - [15.1. `os` – Разные интерфейсы операционной системы](https://python-all.ru/3.2/library/os.html)10481049      - [15.1.1. Имена файлов, аргументы командной строки и переменные окружения](https://python-all.ru/3.2/library/os.html#file-names-command-line-arguments-and-environment-variables)1050      - [15.1.2. Параметры процесса](https://python-all.ru/3.2/library/os.html#process-parameters)1051      - [15.1.3. Создание файловых объектов](https://python-all.ru/3.2/library/os.html#file-object-creation)1052      - [15.1.4. Операции с файловыми дескрипторами](https://python-all.ru/3.2/library/os.html#file-descriptor-operations)10531054        - [15.1.4.1. Константы флагов `open()`](https://python-all.ru/3.2/library/os.html#open-flag-constants)1055      - [15.1.5. Файлы и каталоги](https://python-all.ru/3.2/library/os.html#files-and-directories)1056      - [15.1.6. Управление процессами](https://python-all.ru/3.2/library/os.html#process-management)1057      - [15.1.7. Разная системная информация](https://python-all.ru/3.2/library/os.html#miscellaneous-system-information)1058      - [15.1.8. Разные функции](https://python-all.ru/3.2/library/os.html#miscellaneous-functions)1059    - [15.2. `io` – Основные средства для работы с потоками](https://python-all.ru/3.2/library/io.html)10601061      - [15.2.1. Обзор](https://python-all.ru/3.2/library/io.html#overview)10621063        - [15.2.1.1. Текстовый ввод-вывод](https://python-all.ru/3.2/library/io.html#text-i-o)1064        - [15.2.1.2. Двоичный ввод-вывод](https://python-all.ru/3.2/library/io.html#binary-i-o)1065        - [15.2.1.3. Raw I/O](https://python-all.ru/3.2/library/io.html#raw-i-o)1066      - [15.2.2. Интерфейс модуля высокого уровня](https://python-all.ru/3.2/library/io.html#high-level-module-interface)10671068        - [15.2.2.1. Потоки в памяти](https://python-all.ru/3.2/library/io.html#in-memory-streams)1069      - [15.2.3. Иерархия классов](https://python-all.ru/3.2/library/io.html#class-hierarchy)10701071        - [15.2.3.1. Базовые классы ввода-вывода](https://python-all.ru/3.2/library/io.html#i-o-base-classes)1072        - [15.2.3.2. Raw File I/O](https://python-all.ru/3.2/library/io.html#raw-file-i-o)1073        - [15.2.3.3. Буферизованные потоки](https://python-all.ru/3.2/library/io.html#buffered-streams)1074        - [15.2.3.4. Текстовый ввод-вывод](https://python-all.ru/3.2/library/io.html#id1)1075      - [15.2.4. Производительность](https://python-all.ru/3.2/library/io.html#performance)10761077        - [15.2.4.1. Двоичный ввод-вывод](https://python-all.ru/3.2/library/io.html#id2)1078        - [15.2.4.2. Текстовый ввод-вывод](https://python-all.ru/3.2/library/io.html#id3)1079        - [15.2.4.3. Многопоточность](https://python-all.ru/3.2/library/io.html#multi-threading)1080        - [15.2.4.4. Реентерабельность](https://python-all.ru/3.2/library/io.html#reentrancy)1081    - [15.3. `time` – Доступ ко времени и преобразования](https://python-all.ru/3.2/library/time.html)1082    - [15.4. `argparse` – Парсер для параметров командной строки, аргументов и подкоманд](https://python-all.ru/3.2/library/argparse.html)10831084      - [15.4.1. Пример](https://python-all.ru/3.2/library/argparse.html#example)10851086        - [15.4.1.1. Создание парсера](https://python-all.ru/3.2/library/argparse.html#creating-a-parser)1087        - [15.4.1.2. Добавление аргументов](https://python-all.ru/3.2/library/argparse.html#adding-arguments)1088        - [15.4.1.3. Разбор аргументов](https://python-all.ru/3.2/library/argparse.html#parsing-arguments)1089      - [15.4.2. Объекты ArgumentParser](https://python-all.ru/3.2/library/argparse.html#argumentparser-objects)10901091        - [15.4.2.1. description](https://python-all.ru/3.2/library/argparse.html#description)1092        - [15.4.2.2. epilog](https://python-all.ru/3.2/library/argparse.html#epilog)1093        - [15.4.2.3. add\_help](https://python-all.ru/3.2/library/argparse.html#add-help)1094        - [15.4.2.4. prefix\_chars](https://python-all.ru/3.2/library/argparse.html#prefix-chars)1095        - [15.4.2.5. fromfile\_prefix\_chars](https://python-all.ru/3.2/library/argparse.html#fromfile-prefix-chars)1096        - [15.4.2.6. argument\_default](https://python-all.ru/3.2/library/argparse.html#argument-default)1097        - [15.4.2.7. parents](https://python-all.ru/3.2/library/argparse.html#parents)1098        - [15.4.2.8. formatter\_class](https://python-all.ru/3.2/library/argparse.html#formatter-class)1099        - [15.4.2.9. conflict\_handler](https://python-all.ru/3.2/library/argparse.html#conflict-handler)1100        - [15.4.2.10. prog](https://python-all.ru/3.2/library/argparse.html#prog)1101        - [15.4.2.11. usage](https://python-all.ru/3.2/library/argparse.html#usage)1102      - [15.4.3. Метод add\_argument()](https://python-all.ru/3.2/library/argparse.html#the-add-argument-method)11031104        - [15.4.3.1. name или flags](https://python-all.ru/3.2/library/argparse.html#name-or-flags)1105        - [15.4.3.2. action](https://python-all.ru/3.2/library/argparse.html#action)1106        - [15.4.3.3. nargs](https://python-all.ru/3.2/library/argparse.html#nargs)1107        - [15.4.3.4. const](https://python-all.ru/3.2/library/argparse.html#const)1108        - [15.4.3.5. default](https://python-all.ru/3.2/library/argparse.html#default)1109        - [15.4.3.6. type](https://python-all.ru/3.2/library/argparse.html#type)1110        - [15.4.3.7. choices](https://python-all.ru/3.2/library/argparse.html#choices)1111        - [15.4.3.8. required](https://python-all.ru/3.2/library/argparse.html#required)1112        - [15.4.3.9. help](https://python-all.ru/3.2/library/argparse.html#help)1113        - [15.4.3.10. metavar](https://python-all.ru/3.2/library/argparse.html#metavar)1114        - [15.4.3.11. dest](https://python-all.ru/3.2/library/argparse.html#dest)1115        - [15.4.3.12. Классы действий](https://python-all.ru/3.2/library/argparse.html#action-classes)1116      - [15.4.4. Метод parse\_args()](https://python-all.ru/3.2/library/argparse.html#the-parse-args-method)11171118        - [15.4.4.1. Синтаксис значений опций](https://python-all.ru/3.2/library/argparse.html#option-value-syntax)1119        - [15.4.4.2. Недопустимые аргументы](https://python-all.ru/3.2/library/argparse.html#invalid-arguments)1120        - [15.4.4.3. Аргументы, содержащие `-`](https://python-all.ru/3.2/library/argparse.html#arguments-containing)1121        - [15.4.4.4. Сокращения аргументов](https://python-all.ru/3.2/library/argparse.html#argument-abbreviations)1122        - [15.4.4.5. Помимо `sys.argv`](https://python-all.ru/3.2/library/argparse.html#beyond-sys-argv)1123        - [15.4.4.6. Объект Namespace](https://python-all.ru/3.2/library/argparse.html#the-namespace-object)1124      - [15.4.5. Другие утилиты](https://python-all.ru/3.2/library/argparse.html#other-utilities)11251126        - [15.4.5.1. Подкоманды](https://python-all.ru/3.2/library/argparse.html#sub-commands)1127        - [15.4.5.2. Объекты FileType](https://python-all.ru/3.2/library/argparse.html#filetype-objects)1128        - [15.4.5.3. Группы аргументов](https://python-all.ru/3.2/library/argparse.html#argument-groups)1129        - [15.4.5.4. Взаимное исключение](https://python-all.ru/3.2/library/argparse.html#mutual-exclusion)1130        - [15.4.5.5. Значения по умолчанию парсера](https://python-all.ru/3.2/library/argparse.html#parser-defaults)1131        - [15.4.5.6. Вывод справки](https://python-all.ru/3.2/library/argparse.html#printing-help)1132        - [15.4.5.7. Частичный разбор](https://python-all.ru/3.2/library/argparse.html#partial-parsing)1133        - [15.4.5.8. Настройка разбора файлов](https://python-all.ru/3.2/library/argparse.html#customizing-file-parsing)1134        - [15.4.5.9. Методы завершения](https://python-all.ru/3.2/library/argparse.html#exiting-methods)1135      - [15.4.6. Обновление кода optparse](https://python-all.ru/3.2/library/argparse.html#upgrading-optparse-code)1136    - [15.5. `optparse` – Парсер параметров командной строки](https://python-all.ru/3.2/library/optparse.html)11371138      - [15.5.1. Общие сведения](https://python-all.ru/3.2/library/optparse.html#background)11391140        - [15.5.1.1. Терминология](https://python-all.ru/3.2/library/optparse.html#terminology)1141        - [15.5.1.2. Для чего нужны параметры?](https://python-all.ru/3.2/library/optparse.html#what-are-options-for)1142        - [15.5.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/3.2/library/optparse.html#what-are-positional-arguments-for)1143      - [15.5.2. Учебное пособие](https://python-all.ru/3.2/library/optparse.html#tutorial)11441145        - [15.5.2.1. Действия параметров](https://python-all.ru/3.2/library/optparse.html#understanding-option-actions)1146        - [15.5.2.2. Действие store](https://python-all.ru/3.2/library/optparse.html#the-store-action)1147        - [15.5.2.3. Обработка булевых (флаговых) параметров](https://python-all.ru/3.2/library/optparse.html#handling-boolean-flag-options)1148        - [15.5.2.4. Прочие действия](https://python-all.ru/3.2/library/optparse.html#other-actions)1149        - [15.5.2.5. Значения по умолчанию](https://python-all.ru/3.2/library/optparse.html#default-values)1150        - [15.5.2.6. Генерация справки](https://python-all.ru/3.2/library/optparse.html#generating-help)11511152          - [15.5.2.6.1. Группировка параметров](https://python-all.ru/3.2/library/optparse.html#grouping-options)1153        - [15.5.2.7. Вывод строки версии](https://python-all.ru/3.2/library/optparse.html#printing-a-version-string)1154        - [15.5.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/3.2/library/optparse.html#how-optparse-handles-errors)1155        - [15.5.2.9. Собираем всё вместе](https://python-all.ru/3.2/library/optparse.html#putting-it-all-together)1156      - [15.5.3. Справочное руководство](https://python-all.ru/3.2/library/optparse.html#reference-guide)11571158        - [15.5.3.1. Создание парсера](https://python-all.ru/3.2/library/optparse.html#creating-the-parser)1159        - [15.5.3.2. Заполнение парсера](https://python-all.ru/3.2/library/optparse.html#populating-the-parser)1160        - [15.5.3.3. Определение параметров](https://python-all.ru/3.2/library/optparse.html#defining-options)1161        - [15.5.3.4. Атрибуты параметров](https://python-all.ru/3.2/library/optparse.html#option-attributes)1162        - [15.5.3.5. Стандартные действия параметров](https://python-all.ru/3.2/library/optparse.html#standard-option-actions)1163        - [15.5.3.6. Стандартные типы параметров](https://python-all.ru/3.2/library/optparse.html#standard-option-types)1164        - [15.5.3.7. Разбор аргументов](https://python-all.ru/3.2/library/optparse.html#parsing-arguments)1165        - [15.5.3.8. Запросы и изменение парсера параметров](https://python-all.ru/3.2/library/optparse.html#querying-and-manipulating-your-option-parser)1166        - [15.5.3.9. Конфликты между параметрами](https://python-all.ru/3.2/library/optparse.html#conflicts-between-options)1167        - [15.5.3.10. Очистка](https://python-all.ru/3.2/library/optparse.html#cleanup)1168        - [15.5.3.11. Прочие методы](https://python-all.ru/3.2/library/optparse.html#other-methods)1169      - [15.5.4. Колбэки параметров](https://python-all.ru/3.2/library/optparse.html#option-callbacks)11701171        - [15.5.4.1. Определение параметра-колбэка](https://python-all.ru/3.2/library/optparse.html#defining-a-callback-option)1172        - [15.5.4.2. Как вызываются колбэки](https://python-all.ru/3.2/library/optparse.html#how-callbacks-are-called)1173        - [15.5.4.3. Возбуждение ошибок в колбэке](https://python-all.ru/3.2/library/optparse.html#raising-errors-in-a-callback)1174        - [15.5.4.4. Пример колбэка 1: тривиальный колбэк](https://python-all.ru/3.2/library/optparse.html#callback-example-1-trivial-callback)1175        - [15.5.4.5. Пример колбэка 2: проверка порядка опций](https://python-all.ru/3.2/library/optparse.html#callback-example-2-check-option-order)1176        - [15.5.4.6. Пример колбэка 3: проверка порядка опций (обобщённая)](https://python-all.ru/3.2/library/optparse.html#callback-example-3-check-option-order-generalized)1177        - [15.5.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/3.2/library/optparse.html#callback-example-4-check-arbitrary-condition)1178        - [15.5.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/3.2/library/optparse.html#callback-example-5-fixed-arguments)1179        - [15.5.4.9. Пример колбэка 6: переменные аргументы](https://python-all.ru/3.2/library/optparse.html#callback-example-6-variable-arguments)1180      - [15.5.5. Расширение `optparse`](https://python-all.ru/3.2/library/optparse.html#extending-optparse)11811182        - [15.5.5.1. Добавление новых типов](https://python-all.ru/3.2/library/optparse.html#adding-new-types)1183        - [15.5.5.2. Добавление новых действий](https://python-all.ru/3.2/library/optparse.html#adding-new-actions)1184    - [15.6. `getopt` – C-стильный парсер аргументов командной строки](https://python-all.ru/3.2/library/getopt.html)1185    - [15.7. `logging` – Средство логирования для Python](https://python-all.ru/3.2/library/logging.html)11861187      - [15.7.1. Объекты Logger](https://python-all.ru/3.2/library/logging.html#logger-objects)1188      - [15.7.2. Объекты Handler](https://python-all.ru/3.2/library/logging.html#handler-objects)1189      - [15.7.3. Объекты Formatter](https://python-all.ru/3.2/library/logging.html#formatter-objects)1190      - [15.7.4. Объекты Filter](https://python-all.ru/3.2/library/logging.html#filter-objects)1191      - [15.7.5. Объекты LogRecord](https://python-all.ru/3.2/library/logging.html#logrecord-objects)1192      - [15.7.6. Атрибуты LogRecord](https://python-all.ru/3.2/library/logging.html#logrecord-attributes)1193      - [15.7.7. Объекты LoggerAdapter](https://python-all.ru/3.2/library/logging.html#loggeradapter-objects)1194      - [15.7.8. Потокобезопасность](https://python-all.ru/3.2/library/logging.html#thread-safety)1195      - [15.7.9. Функции уровня модуля](https://python-all.ru/3.2/library/logging.html#module-level-functions)1196      - [15.7.10. Атрибуты уровня модуля](https://python-all.ru/3.2/library/logging.html#module-level-attributes)1197      - [15.7.11. Интеграция с модулем warnings](https://python-all.ru/3.2/library/logging.html#integration-with-the-warnings-module)1198    - [15.8. `logging.config` – Конфигурация логирования](https://python-all.ru/3.2/library/logging.config.html)11991200      - [15.8.1. Функции конфигурации](https://python-all.ru/3.2/library/logging.config.html#configuration-functions)1201      - [15.8.2. Схема словаря конфигурации](https://python-all.ru/3.2/library/logging.config.html#configuration-dictionary-schema)12021203        - [15.8.2.1. Подробности схемы словаря](https://python-all.ru/3.2/library/logging.config.html#dictionary-schema-details)1204        - [15.8.2.2. Инкрементальная конфигурация](https://python-all.ru/3.2/library/logging.config.html#incremental-configuration)1205        - [15.8.2.3. Связи объектов](https://python-all.ru/3.2/library/logging.config.html#object-connections)1206        - [15.8.2.4. Определяемые пользователем объекты](https://python-all.ru/3.2/library/logging.config.html#user-defined-objects)1207        - [15.8.2.5. Доступ к внешним объектам](https://python-all.ru/3.2/library/logging.config.html#access-to-external-objects)1208        - [15.8.2.6. Доступ к внутренним объектам](https://python-all.ru/3.2/library/logging.config.html#access-to-internal-objects)1209        - [15.8.2.7. Разрешение импорта и пользовательские импортёры](https://python-all.ru/3.2/library/logging.config.html#import-resolution-and-custom-importers)1210      - [15.8.3. Формат конфигурационного файла](https://python-all.ru/3.2/library/logging.config.html#configuration-file-format)1211    - [15.9. `logging.handlers` – Обработчики журналирования](https://python-all.ru/3.2/library/logging.handlers.html)12121213      - [15.9.1. StreamHandler](https://python-all.ru/3.2/library/logging.handlers.html#streamhandler)1214      - [15.9.2. FileHandler](https://python-all.ru/3.2/library/logging.handlers.html#filehandler)1215      - [15.9.3. NullHandler](https://python-all.ru/3.2/library/logging.handlers.html#nullhandler)1216      - [15.9.4. WatchedFileHandler](https://python-all.ru/3.2/library/logging.handlers.html#watchedfilehandler)1217      - [15.9.5. RotatingFileHandler](https://python-all.ru/3.2/library/logging.handlers.html#rotatingfilehandler)1218      - [15.9.6. TimedRotatingFileHandler](https://python-all.ru/3.2/library/logging.handlers.html#timedrotatingfilehandler)1219      - [15.9.7. SocketHandler](https://python-all.ru/3.2/library/logging.handlers.html#sockethandler)1220      - [15.9.8. DatagramHandler](https://python-all.ru/3.2/library/logging.handlers.html#datagramhandler)1221      - [15.9.9. SysLogHandler](https://python-all.ru/3.2/library/logging.handlers.html#sysloghandler)1222      - [15.9.10. NTEventLogHandler](https://python-all.ru/3.2/library/logging.handlers.html#nteventloghandler)1223      - [15.9.11. SMTPHandler](https://python-all.ru/3.2/library/logging.handlers.html#smtphandler)1224      - [15.9.12. MemoryHandler](https://python-all.ru/3.2/library/logging.handlers.html#memoryhandler)1225      - [15.9.13. HTTPHandler](https://python-all.ru/3.2/library/logging.handlers.html#httphandler)1226      - [15.9.14. QueueHandler](https://python-all.ru/3.2/library/logging.handlers.html#queuehandler)1227      - [15.9.15. QueueListener](https://python-all.ru/3.2/library/logging.handlers.html#queuelistener)1228    - [15.10. `getpass` – Переносимый ввод пароля](https://python-all.ru/3.2/library/getpass.html)1229    - [15.11. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/3.2/library/curses.html)12301231      - [15.11.1. Функции](https://python-all.ru/3.2/library/curses.html#functions)1232      - [15.11.2. Объекты окон](https://python-all.ru/3.2/library/curses.html#window-objects)1233      - [15.11.3. Константы](https://python-all.ru/3.2/library/curses.html#constants)1234    - [15.12. `curses.textpad` – Виджет ввода текста для программ с curses](https://python-all.ru/3.2/library/curses.html#module-curses.textpad)12351236      - [15.12.1. Объекты Textbox](https://python-all.ru/3.2/library/curses.html#textbox-objects)1237    - [15.13. `curses.ascii` – Утилиты для символов ASCII](https://python-all.ru/3.2/library/curses.ascii.html)1238    - [15.14. `curses.panel` – Расширение стека панелей для curses](https://python-all.ru/3.2/library/curses.panel.html)12391240      - [15.14.1. Функции](https://python-all.ru/3.2/library/curses.panel.html#functions)1241      - [15.14.2. Объекты панелей](https://python-all.ru/3.2/library/curses.panel.html#panel-objects)1242    - [15.15. `platform` – Доступ к идентификационным данным базовой платформы](https://python-all.ru/3.2/library/platform.html)12431244      - [15.15.1. Кроссплатформенные](https://python-all.ru/3.2/library/platform.html#cross-platform)1245      - [15.15.2. Платформа Java](https://python-all.ru/3.2/library/platform.html#java-platform)1246      - [15.15.3. Платформа Windows](https://python-all.ru/3.2/library/platform.html#windows-platform)12471248        - [15.15.3.1. Особенности Win95/98](https://python-all.ru/3.2/library/platform.html#win95-98-specific)1249      - [15.15.4. Платформа Mac OS](https://python-all.ru/3.2/library/platform.html#mac-os-platform)1250      - [15.15.5. Платформы Unix](https://python-all.ru/3.2/library/platform.html#unix-platforms)1251    - [15.16. `errno` – Стандартные системные символы errno](https://python-all.ru/3.2/library/errno.html)1252    - [15.17. `ctypes` – Библиотека внешних функций для Python](https://python-all.ru/3.2/library/ctypes.html)12531254      - [15.17.1. Руководство по ctypes](https://python-all.ru/3.2/library/ctypes.html#ctypes-tutorial)12551256        - [15.17.1.1. Загрузка динамически подключаемых библиотек](https://python-all.ru/3.2/library/ctypes.html#loading-dynamic-link-libraries)1257        - [15.17.1.2. Доступ к функциям из загруженных DLL](https://python-all.ru/3.2/library/ctypes.html#accessing-functions-from-loaded-dlls)1258        - [15.17.1.3. Вызов функций](https://python-all.ru/3.2/library/ctypes.html#calling-functions)1259        - [15.17.1.4. Базовые типы данных](https://python-all.ru/3.2/library/ctypes.html#fundamental-data-types)1260        - [15.17.1.5. Вызов функций (продолжение)](https://python-all.ru/3.2/library/ctypes.html#calling-functions-continued)1261        - [15.17.1.6. Вызов функций с собственными пользовательскими типами данных](https://python-all.ru/3.2/library/ctypes.html#calling-functions-with-your-own-custom-data-types)1262        - [15.17.1.7. Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/3.2/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)1263        - [15.17.1.8. Типы возвращаемых значений](https://python-all.ru/3.2/library/ctypes.html#return-types)1264        - [15.17.1.9. Передача указателей (или передача параметров по ссылке)](https://python-all.ru/3.2/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)1265        - [15.17.1.10. Структуры и объединения](https://python-all.ru/3.2/library/ctypes.html#structures-and-unions)1266        - [15.17.1.11. Выравнивание структур/объединений и порядок байтов](https://python-all.ru/3.2/library/ctypes.html#structure-union-alignment-and-byte-order)1267        - [15.17.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/3.2/library/ctypes.html#bit-fields-in-structures-and-unions)1268        - [15.17.1.13. Массивы](https://python-all.ru/3.2/library/ctypes.html#arrays)1269        - [15.17.1.14. Указатели](https://python-all.ru/3.2/library/ctypes.html#pointers)1270        - [15.17.1.15. Преобразования типов](https://python-all.ru/3.2/library/ctypes.html#type-conversions)1271        - [15.17.1.16. Неполные типы](https://python-all.ru/3.2/library/ctypes.html#incomplete-types)1272        - [15.17.1.17. Функции обратного вызова](https://python-all.ru/3.2/library/ctypes.html#callback-functions)1273        - [15.17.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/3.2/library/ctypes.html#accessing-values-exported-from-dlls)1274        - [15.17.1.19. Неожиданности](https://python-all.ru/3.2/library/ctypes.html#surprises)1275        - [15.17.1.20. Типы данных переменного размера](https://python-all.ru/3.2/library/ctypes.html#variable-sized-data-types)1276      - [15.17.2. Справочник по ctypes](https://python-all.ru/3.2/library/ctypes.html#ctypes-reference)12771278        - [15.17.2.1. Поиск разделяемых библиотек](https://python-all.ru/3.2/library/ctypes.html#finding-shared-libraries)1279        - [15.17.2.2. Загрузка разделяемых библиотек](https://python-all.ru/3.2/library/ctypes.html#loading-shared-libraries)1280        - [15.17.2.3. Внешние функции](https://python-all.ru/3.2/library/ctypes.html#foreign-functions)1281        - [15.17.2.4. Прототипы функций](https://python-all.ru/3.2/library/ctypes.html#function-prototypes)1282        - [15.17.2.5. Вспомогательные функции](https://python-all.ru/3.2/library/ctypes.html#utility-functions)1283        - [15.17.2.6. Типы данных](https://python-all.ru/3.2/library/ctypes.html#data-types)1284        - [15.17.2.7. Базовые типы данных](https://python-all.ru/3.2/library/ctypes.html#ctypes-fundamental-data-types-2)1285        - [15.17.2.8. Структурированные типы данных](https://python-all.ru/3.2/library/ctypes.html#structured-data-types)1286        - [15.17.2.9. Массивы и указатели](https://python-all.ru/3.2/library/ctypes.html#arrays-and-pointers)1287  - [16. Дополнительные службы операционной системы](https://python-all.ru/3.2/library/someos.html)12881289    - [16.1. `select` – Ожидание завершения ввода-вывода](https://python-all.ru/3.2/library/select.html)12901291      - [16.1.1. Объекты опроса по переднему фронту и по уровню (epoll)](https://python-all.ru/3.2/library/select.html#edge-and-level-trigger-polling-epoll-objects)1292      - [16.1.2. Объекты опроса](https://python-all.ru/3.2/library/select.html#polling-objects)1293      - [16.1.3. Объекты kqueue](https://python-all.ru/3.2/library/select.html#kqueue-objects)1294      - [16.1.4. Объекты kevent](https://python-all.ru/3.2/library/select.html#kevent-objects)1295    - [16.2. `threading` – Параллелизм на основе потоков](https://python-all.ru/3.2/library/threading.html)12961297      - [16.2.1. Объекты потоков](https://python-all.ru/3.2/library/threading.html#thread-objects)1298      - [16.2.2. Объекты блокировок](https://python-all.ru/3.2/library/threading.html#lock-objects)1299      - [16.2.3. Объекты RLock](https://python-all.ru/3.2/library/threading.html#rlock-objects)1300      - [16.2.4. Объекты Condition](https://python-all.ru/3.2/library/threading.html#condition-objects)13011302        - [16.2.4.1. Использование](https://python-all.ru/3.2/library/threading.html#usage)1303        - [16.2.4.2. Интерфейс](https://python-all.ru/3.2/library/threading.html#interface)1304      - [16.2.5. Объекты семафоров](https://python-all.ru/3.2/library/threading.html#semaphore-objects)13051306        - [16.2.5.1. Пример с `Semaphore`](https://python-all.ru/3.2/library/threading.html#semaphore-example)1307      - [16.2.6. Объекты событий](https://python-all.ru/3.2/library/threading.html#event-objects)1308      - [16.2.7. Объекты таймеров](https://python-all.ru/3.2/library/threading.html#timer-objects)1309      - [16.2.8. Объекты Barrier](https://python-all.ru/3.2/library/threading.html#barrier-objects)1310      - [16.2.9. Использование блокировок, условий и семафоров в операторе `with`](https://python-all.ru/3.2/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement)1311      - [16.2.10. Импорт в многопоточном коде](https://python-all.ru/3.2/library/threading.html#importing-in-threaded-code)1312    - [16.3. `multiprocessing` – Параллелизм на основе процессов](https://python-all.ru/3.2/library/multiprocessing.html)13131314      - [16.3.1. Введение](https://python-all.ru/3.2/library/multiprocessing.html#introduction)13151316        - [16.3.1.1. Класс `Process`](https://python-all.ru/3.2/library/multiprocessing.html#the-process-class)1317        - [16.3.1.2. Обмен объектами между процессами](https://python-all.ru/3.2/library/multiprocessing.html#exchanging-objects-between-processes)1318        - [16.3.1.3. Синхронизация между процессами](https://python-all.ru/3.2/library/multiprocessing.html#synchronization-between-processes)1319        - [16.3.1.4. Разделение состояния между процессами](https://python-all.ru/3.2/library/multiprocessing.html#sharing-state-between-processes)1320        - [16.3.1.5. Использование пула процессов](https://python-all.ru/3.2/library/multiprocessing.html#using-a-pool-of-workers)1321      - [16.3.2. Справочник](https://python-all.ru/3.2/library/multiprocessing.html#reference)13221323        - [16.3.2.1. `процесс` и исключения](https://python-all.ru/3.2/library/multiprocessing.html#process-and-exceptions)1324        - [16.3.2.2. Каналы и очереди](https://python-all.ru/3.2/library/multiprocessing.html#pipes-and-queues)1325        - [16.3.2.3. Разное](https://python-all.ru/3.2/library/multiprocessing.html#miscellaneous)1326        - [16.3.2.4. Объекты соединений](https://python-all.ru/3.2/library/multiprocessing.html#connection-objects)1327        - [16.3.2.5. Примитивы синхронизации](https://python-all.ru/3.2/library/multiprocessing.html#synchronization-primitives)1328        - [16.3.2.6. Разделяемые `ctypes` объекты](https://python-all.ru/3.2/library/multiprocessing.html#shared-ctypes-objects)13291330          - [16.3.2.6.1. Модуль `multiprocessing.sharedctypes`](https://python-all.ru/3.2/library/multiprocessing.html#module-multiprocessing.sharedctypes)1331        - [16.3.2.7. Менеджеры](https://python-all.ru/3.2/library/multiprocessing.html#managers)13321333          - [16.3.2.7.1. Объекты пространства имён](https://python-all.ru/3.2/library/multiprocessing.html#namespace-objects)1334          - [16.3.2.7.2. Настраиваемые менеджеры](https://python-all.ru/3.2/library/multiprocessing.html#customized-managers)1335          - [16.3.2.7.3. Использование удалённого менеджера](https://python-all.ru/3.2/library/multiprocessing.html#using-a-remote-manager)1336        - [16.3.2.8. Объекты-прокси](https://python-all.ru/3.2/library/multiprocessing.html#proxy-objects)13371338          - [16.3.2.8.1. Очистка](https://python-all.ru/3.2/library/multiprocessing.html#cleanup)1339        - [16.3.2.9. Пулы процессов](https://python-all.ru/3.2/library/multiprocessing.html#module-multiprocessing.pool)1340        - [16.3.2.10. Слушатели и клиенты](https://python-all.ru/3.2/library/multiprocessing.html#module-multiprocessing.connection)13411342          - [16.3.2.10.1. Форматы адресов](https://python-all.ru/3.2/library/multiprocessing.html#address-formats)1343        - [16.3.2.11. Ключи аутентификации](https://python-all.ru/3.2/library/multiprocessing.html#authentication-keys)1344        - [16.3.2.12. Журналирование](https://python-all.ru/3.2/library/multiprocessing.html#logging)1345        - [16.3.2.13. Модуль `multiprocessing.dummy`](https://python-all.ru/3.2/library/multiprocessing.html#module-multiprocessing.dummy)1346      - [16.3.3. Рекомендации по программированию](https://python-all.ru/3.2/library/multiprocessing.html#programming-guidelines)13471348        - [16.3.3.1. Все платформы](https://python-all.ru/3.2/library/multiprocessing.html#all-platforms)1349        - [16.3.3.2. Windows](https://python-all.ru/3.2/library/multiprocessing.html#windows)1350      - [16.3.4. Примеры](https://python-all.ru/3.2/library/multiprocessing.html#examples)1351    - [16.4. `concurrent.futures` – запуск параллельных задач](https://python-all.ru/3.2/library/concurrent.futures.html)13521353      - [16.4.1. Объекты исполнителя](https://python-all.ru/3.2/library/concurrent.futures.html#executor-objects)1354      - [16.4.2. ThreadPoolExecutor](https://python-all.ru/3.2/library/concurrent.futures.html#threadpoolexecutor)13551356        - [16.4.2.1. Пример ThreadPoolExecutor](https://python-all.ru/3.2/library/concurrent.futures.html#threadpoolexecutor-example)1357      - [16.4.3. ProcessPoolExecutor](https://python-all.ru/3.2/library/concurrent.futures.html#processpoolexecutor)13581359        - [16.4.3.1. Пример ProcessPoolExecutor](https://python-all.ru/3.2/library/concurrent.futures.html#processpoolexecutor-example)1360      - [16.4.4. Объекты Future](https://python-all.ru/3.2/library/concurrent.futures.html#future-objects)1361      - [16.4.5. Функции модуля](https://python-all.ru/3.2/library/concurrent.futures.html#module-functions)1362    - [16.5. `mmap` – Поддержка файлов, отображаемых в память](https://python-all.ru/3.2/library/mmap.html)1363    - [16.6. `readline` – Интерфейс GNU readline](https://python-all.ru/3.2/library/readline.html)13641365      - [16.6.1. Пример](https://python-all.ru/3.2/library/readline.html#example)1366    - [16.7. `rlcompleter` – Функция автодополнения для GNU readline](https://python-all.ru/3.2/library/rlcompleter.html)13671368      - [16.7.1. Объекты Completer](https://python-all.ru/3.2/library/rlcompleter.html#completer-objects)1369    - [16.8. `dummy_threading` – Прозрачная замена модуля `threading`](https://python-all.ru/3.2/library/dummy_threading.html)1370    - [16.9. `_thread` – Низкоуровневый API потоков](https://python-all.ru/3.2/library/_thread.html)1371    - [16.10. `_dummy_thread` – Прозрачная замена модуля `_thread`](https://python-all.ru/3.2/library/_dummy_thread.html)1372  - [17. Межпроцессное взаимодействие и сетевые возможности](https://python-all.ru/3.2/library/ipc.html)13731374    - [17.1. `subprocess` – Управление подпроцессами](https://python-all.ru/3.2/library/subprocess.html)13751376      - [17.1.1. Использование модуля `subprocess`](https://python-all.ru/3.2/library/subprocess.html#using-the-subprocess-module)13771378        - [17.1.1.1. Часто используемые аргументы](https://python-all.ru/3.2/library/subprocess.html#frequently-used-arguments)1379        - [17.1.1.2. Конструктор Popen](https://python-all.ru/3.2/library/subprocess.html#popen-constructor)1380        - [17.1.1.3. Исключения](https://python-all.ru/3.2/library/subprocess.html#exceptions)1381        - [17.1.1.4. Безопасность](https://python-all.ru/3.2/library/subprocess.html#security)1382      - [17.1.2. Объекты Popen](https://python-all.ru/3.2/library/subprocess.html#popen-objects)1383      - [17.1.3. Вспомогательные функции Popen для Windows](https://python-all.ru/3.2/library/subprocess.html#windows-popen-helpers)13841385        - [17.1.3.1. Константы](https://python-all.ru/3.2/library/subprocess.html#constants)1386      - [17.1.4. Замена старых функций модулем `subprocess`](https://python-all.ru/3.2/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)13871388        - [17.1.4.1. Замена обратных кавычек оболочки /bin/sh](https://python-all.ru/3.2/library/subprocess.html#replacing-bin-sh-shell-backquote)1389        - [17.1.4.2. Замена конвейера оболочки](https://python-all.ru/3.2/library/subprocess.html#replacing-shell-pipeline)1390        - [17.1.4.3. Замена `os.system()`](https://python-all.ru/3.2/library/subprocess.html#replacing-os-system)1391        - [17.1.4.4. Замена семейства `os.spawn`](https://python-all.ru/3.2/library/subprocess.html#replacing-the-os-spawn-family)1392        - [17.1.4.5. Замена `os.popen()`, `os.popen2()`, `os.popen3()`](https://python-all.ru/3.2/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3)1393        - [17.1.4.6. Замена функций из модуля `popen2`](https://python-all.ru/3.2/library/subprocess.html#replacing-functions-from-the-popen2-module)1394      - [17.1.5. Устаревшие функции вызова оболочки](https://python-all.ru/3.2/library/subprocess.html#legacy-shell-invocation-functions)1395      - [17.1.6. Примечания](https://python-all.ru/3.2/library/subprocess.html#notes)13961397        - [17.1.6.1. Преобразование последовательности аргументов в строку в Windows](https://python-all.ru/3.2/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows)1398    - [17.2. `socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/3.2/library/socket.html)13991400      - [17.2.1. Семейства сокетов](https://python-all.ru/3.2/library/socket.html#socket-families)1401      - [17.2.2. Содержимое модуля](https://python-all.ru/3.2/library/socket.html#module-contents)1402      - [17.2.3. Объекты сокетов](https://python-all.ru/3.2/library/socket.html#socket-objects)1403      - [17.2.4. Замечания по тайм-аутам сокетов](https://python-all.ru/3.2/library/socket.html#notes-on-socket-timeouts)14041405        - [17.2.4.1. Тайм-ауты и метод `connect`](https://python-all.ru/3.2/library/socket.html#timeouts-and-the-connect-method)1406        - [17.2.4.2. Тайм-ауты и метод `accept`](https://python-all.ru/3.2/library/socket.html#timeouts-and-the-accept-method)1407      - [17.2.5. Пример](https://python-all.ru/3.2/library/socket.html#example)1408    - [17.3. `ssl` – обёртка TLS/SSL для объектов сокетов](https://python-all.ru/3.2/library/ssl.html)14091410      - [17.3.1. Функции, константы и исключения](https://python-all.ru/3.2/library/ssl.html#functions-constants-and-exceptions)14111412        - [17.3.1.1. Создание сокетов](https://python-all.ru/3.2/library/ssl.html#socket-creation)1413        - [17.3.1.2. Генерация случайных чисел](https://python-all.ru/3.2/library/ssl.html#random-generation)1414        - [17.3.1.3. Работа с сертификатами](https://python-all.ru/3.2/library/ssl.html#certificate-handling)1415        - [17.3.1.4. Константы](https://python-all.ru/3.2/library/ssl.html#constants)1416      - [17.3.2. SSL-сокеты](https://python-all.ru/3.2/library/ssl.html#ssl-sockets)1417      - [17.3.3. SSL-контексты](https://python-all.ru/3.2/library/ssl.html#ssl-contexts)1418      - [17.3.4. Сертификаты](https://python-all.ru/3.2/library/ssl.html#certificates)14191420        - [17.3.4.1. Цепочки сертификатов](https://python-all.ru/3.2/library/ssl.html#certificate-chains)1421        - [17.3.4.2. Сертификаты CA](https://python-all.ru/3.2/library/ssl.html#ca-certificates)1422        - [17.3.4.3. Совмещённые ключ и сертификат](https://python-all.ru/3.2/library/ssl.html#combined-key-and-certificate)1423        - [17.3.4.4. Самоподписанные сертификаты](https://python-all.ru/3.2/library/ssl.html#self-signed-certificates)1424      - [17.3.5. Примеры](https://python-all.ru/3.2/library/ssl.html#examples)14251426        - [17.3.5.1. Проверка поддержки SSL](https://python-all.ru/3.2/library/ssl.html#testing-for-ssl-support)1427        - [17.3.5.2. Работа на стороне клиента](https://python-all.ru/3.2/library/ssl.html#client-side-operation)1428        - [17.3.5.3. Работа на стороне сервера](https://python-all.ru/3.2/library/ssl.html#server-side-operation)1429      - [17.3.6. Замечания по неблокирующим сокетам](https://python-all.ru/3.2/library/ssl.html#notes-on-non-blocking-sockets)1430      - [17.3.7. Вопросы безопасности](https://python-all.ru/3.2/library/ssl.html#security-considerations)14311432        - [17.3.7.1. Проверка сертификатов](https://python-all.ru/3.2/library/ssl.html#verifying-certificates)1433        - [17.3.7.2. Версии протоколов](https://python-all.ru/3.2/library/ssl.html#protocol-versions)1434        - [17.3.7.3. Выбор шифров](https://python-all.ru/3.2/library/ssl.html#cipher-selection)1435    - [17.4. `signal` – Установка обработчиков для асинхронных событий](https://python-all.ru/3.2/library/signal.html)14361437      - [17.4.1. Общие правила](https://python-all.ru/3.2/library/signal.html#general-rules)14381439        - [17.4.1.1. Выполнение обработчиков сигналов Python](https://python-all.ru/3.2/library/signal.html#execution-of-python-signal-handlers)1440        - [17.4.1.2. Сигналы и потоки](https://python-all.ru/3.2/library/signal.html#signals-and-threads)1441      - [17.4.2. Содержимое модуля](https://python-all.ru/3.2/library/signal.html#module-contents)1442      - [17.4.3. Пример](https://python-all.ru/3.2/library/signal.html#example)1443    - [17.5. `asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/3.2/library/asyncore.html)14441445      - [17.5.1. asyncore – пример базового HTTP-клиента](https://python-all.ru/3.2/library/asyncore.html#asyncore-example-basic-http-client)1446      - [17.5.2. asyncore – пример базового эхо-сервера](https://python-all.ru/3.2/library/asyncore.html#asyncore-example-basic-echo-server)1447    - [17.6. `asynchat` – Асинхронный обработчик команд/ответов сокетов](https://python-all.ru/3.2/library/asynchat.html)14481449      - [17.6.1. asynchat – Вспомогательные классы](https://python-all.ru/3.2/library/asynchat.html#asynchat-auxiliary-classes)1450      - [17.6.2. asynchat – пример](https://python-all.ru/3.2/library/asynchat.html#asynchat-example)1451  - [18. Обработка интернет-данных](https://python-all.ru/3.2/library/netdata.html)14521453    - [18.1. `email` – Пакет для работы с электронной почтой и MIME](https://python-all.ru/3.2/library/email.html)14541455      - [18.1.1. `email.message`: Представление сообщения электронной почты](https://python-all.ru/3.2/library/email.message.html)1456      - [18.1.2. `email.parser`: Разбор сообщений электронной почты](https://python-all.ru/3.2/library/email.parser.html)14571458        - [18.1.2.1. FeedParser API](https://python-all.ru/3.2/library/email.parser.html#feedparser-api)1459        - [18.1.2.2. API класса Parser](https://python-all.ru/3.2/library/email.parser.html#parser-class-api)1460        - [18.1.2.3. Дополнительные замечания](https://python-all.ru/3.2/library/email.parser.html#additional-notes)1461      - [18.1.3. `email.generator`: Генерация MIME-документов](https://python-all.ru/3.2/library/email.generator.html)1462      - [18.1.4. `email.mime`: Создание объектов электронной почты и MIME с нуля](https://python-all.ru/3.2/library/email.mime.html)1463      - [18.1.5. `email.header`: Интернационализированные заголовки](https://python-all.ru/3.2/library/email.header.html)1464      - [18.1.6. `email.charset`: Представление наборов символов](https://python-all.ru/3.2/library/email.charset.html)1465      - [18.1.7. `email.encoders`: Кодировщики](https://python-all.ru/3.2/library/email.encoders.html)1466      - [18.1.8. `email.errors`: Классы исключений и дефектов](https://python-all.ru/3.2/library/email.errors.html)1467      - [18.1.9. `email.utils`: Разные утилиты](https://python-all.ru/3.2/library/email.util.html)1468      - [18.1.10. `email.iterators`: Итераторы](https://python-all.ru/3.2/library/email.iterators.html)1469      - [18.1.11. `email`: Примеры](https://python-all.ru/3.2/library/email-examples.html)1470      - [18.1.12. История пакета](https://python-all.ru/3.2/library/email.html#package-history)1471      - [18.1.13. Отличия от `mimelib`](https://python-all.ru/3.2/library/email.html#differences-from-mimelib)1472    - [18.2. `json` – Кодировщик и декодировщик JSON](https://python-all.ru/3.2/library/json.html)14731474      - [18.2.1. Базовое использование](https://python-all.ru/3.2/library/json.html#basic-usage)1475      - [18.2.2. Кодировщики и декодировщики](https://python-all.ru/3.2/library/json.html#encoders-and-decoders)1476      - [18.2.3. Соответствие стандарту](https://python-all.ru/3.2/library/json.html#standard-compliance)14771478        - [18.2.3.1. Кодировки символов](https://python-all.ru/3.2/library/json.html#character-encodings)1479        - [18.2.3.2. Значения верхнего уровня, не являющиеся объектами или массивами](https://python-all.ru/3.2/library/json.html#top-level-non-object-non-array-values)1480        - [18.2.3.3. Бесконечные значения и NaN](https://python-all.ru/3.2/library/json.html#infinite-and-nan-number-values)1481        - [18.2.3.4. Повторяющиеся имена внутри объекта](https://python-all.ru/3.2/library/json.html#repeated-names-within-an-object)1482    - [18.3. `mailcap` – Обработка файлов mailcap](https://python-all.ru/3.2/library/mailcap.html)1483    - [18.4. `mailbox` – Работа с почтовыми ящиками в различных форматах](https://python-all.ru/3.2/library/mailbox.html)14841485      - [18.4.1. Объекты `Mailbox`](https://python-all.ru/3.2/library/mailbox.html#mailbox-objects)14861487        - [18.4.1.1. `Maildir`](https://python-all.ru/3.2/library/mailbox.html#maildir)1488        - [18.4.1.2. `mbox`](https://python-all.ru/3.2/library/mailbox.html#mbox)1489        - [18.4.1.3. `MH`](https://python-all.ru/3.2/library/mailbox.html#mh)1490        - [18.4.1.4. `Babyl`](https://python-all.ru/3.2/library/mailbox.html#babyl)1491        - [18.4.1.5. `MMDF`](https://python-all.ru/3.2/library/mailbox.html#mmdf)1492      - [18.4.2. Объекты `Message`](https://python-all.ru/3.2/library/mailbox.html#message-objects)14931494        - [18.4.2.1. `MaildirMessage`](https://python-all.ru/3.2/library/mailbox.html#maildirmessage)1495        - [18.4.2.2. `mboxMessage`](https://python-all.ru/3.2/library/mailbox.html#mboxmessage)1496        - [18.4.2.3. `MHMessage`](https://python-all.ru/3.2/library/mailbox.html#mhmessage)1497        - [18.4.2.4. `BabylMessage`](https://python-all.ru/3.2/library/mailbox.html#babylmessage)1498        - [18.4.2.5. `MMDFMessage`](https://python-all.ru/3.2/library/mailbox.html#mmdfmessage)1499      - [18.4.3. Исключения](https://python-all.ru/3.2/library/mailbox.html#exceptions)1500      - [18.4.4. Примеры](https://python-all.ru/3.2/library/mailbox.html#examples)1501    - [18.5. `mimetypes` – Сопоставление имён файлов с MIME-типами](https://python-all.ru/3.2/library/mimetypes.html)15021503      - [18.5.1. Объекты MimeTypes](https://python-all.ru/3.2/library/mimetypes.html#mimetypes-objects)1504    - [18.6. `base64` – RFC 3548: Кодирование данных Base16, Base32, Base64](https://python-all.ru/3.2/library/base64.html)1505    - [18.7. `binhex` – Кодирование и декодирование файлов binhex4](https://python-all.ru/3.2/library/binhex.html)15061507      - [18.7.1. Замечания](https://python-all.ru/3.2/library/binhex.html#notes)1508    - [18.8. `binascii` – Преобразование между двоичным и ASCII](https://python-all.ru/3.2/library/binascii.html)1509    - [18.9. `quopri` – Кодирование и декодирование MIME quoted-printable данных](https://python-all.ru/3.2/library/quopri.html)1510    - [18.10. `uu` – Кодирование и декодирование файлов uuencode](https://python-all.ru/3.2/library/uu.html)1511  - [19. Инструменты обработки структурированной разметки](https://python-all.ru/3.2/library/markup.html)15121513    - [19.1. `html` – Поддержка языка гипертекстовой разметки](https://python-all.ru/3.2/library/html.html)1514    - [19.2. `html.parser` – Простой парсер HTML и XHTML](https://python-all.ru/3.2/library/html.parser.html)15151516      - [19.2.1. Пример приложения парсера HTML](https://python-all.ru/3.2/library/html.parser.html#example-html-parser-application)1517      - [19.2.2. Методы `HTMLParser`](https://python-all.ru/3.2/library/html.parser.html#htmlparser-methods)1518      - [19.2.3. Примеры](https://python-all.ru/3.2/library/html.parser.html#examples)1519    - [19.3. `html.entities` – Определения общих HTML-сущностей](https://python-all.ru/3.2/library/html.entities.html)1520    - [19.4. Модули обработки XML](https://python-all.ru/3.2/library/xml.html)1521    - [19.5. Уязвимости XML](https://python-all.ru/3.2/library/xml.html#xml-vulnerabilities)15221523      - [19.5.1. Пакеты defused](https://python-all.ru/3.2/library/xml.html#defused-packages)1524    - [19.6. `xml.etree.ElementTree` – API XML для ElementTree](https://python-all.ru/3.2/library/xml.etree.elementtree.html)15251526      - [19.6.1. Функции](https://python-all.ru/3.2/library/xml.etree.elementtree.html#functions)1527      - [19.6.2. Объекты Element](https://python-all.ru/3.2/library/xml.etree.elementtree.html#element-objects)1528      - [19.6.3. Объекты ElementTree](https://python-all.ru/3.2/library/xml.etree.elementtree.html#elementtree-objects)1529      - [19.6.4. Объекты QName](https://python-all.ru/3.2/library/xml.etree.elementtree.html#qname-objects)1530      - [19.6.5. Объекты TreeBuilder](https://python-all.ru/3.2/library/xml.etree.elementtree.html#treebuilder-objects)1531      - [19.6.6. Объекты XMLParser](https://python-all.ru/3.2/library/xml.etree.elementtree.html#xmlparser-objects)1532    - [19.7. `xml.dom` – API объектной модели документа (DOM)](https://python-all.ru/3.2/library/xml.dom.html)15331534      - [19.7.1. Содержимое модуля](https://python-all.ru/3.2/library/xml.dom.html#module-contents)1535      - [19.7.2. Объекты в DOM](https://python-all.ru/3.2/library/xml.dom.html#objects-in-the-dom)15361537        - [19.7.2.1. Объекты DOMImplementation](https://python-all.ru/3.2/library/xml.dom.html#domimplementation-objects)1538        - [19.7.2.2. Объекты Node](https://python-all.ru/3.2/library/xml.dom.html#node-objects)1539        - [19.7.2.3. Объекты NodeList](https://python-all.ru/3.2/library/xml.dom.html#nodelist-objects)1540        - [19.7.2.4. Объекты DocumentType](https://python-all.ru/3.2/library/xml.dom.html#documenttype-objects)1541        - [19.7.2.5. Объекты Document](https://python-all.ru/3.2/library/xml.dom.html#document-objects)1542        - [19.7.2.6. Объекты Element](https://python-all.ru/3.2/library/xml.dom.html#element-objects)1543        - [19.7.2.7. Объекты Attr](https://python-all.ru/3.2/library/xml.dom.html#attr-objects)1544        - [19.7.2.8. Объекты NamedNodeMap](https://python-all.ru/3.2/library/xml.dom.html#namednodemap-objects)1545        - [19.7.2.9. Объекты Comment](https://python-all.ru/3.2/library/xml.dom.html#comment-objects)1546        - [19.7.2.10. Объекты Text и CDATASection](https://python-all.ru/3.2/library/xml.dom.html#text-and-cdatasection-objects)1547        - [19.7.2.11. Объекты ProcessingInstruction](https://python-all.ru/3.2/library/xml.dom.html#processinginstruction-objects)1548        - [19.7.2.12. Исключения](https://python-all.ru/3.2/library/xml.dom.html#exceptions)1549      - [19.7.3. Соответствие стандарту](https://python-all.ru/3.2/library/xml.dom.html#conformance)15501551        - [19.7.3.1. Сопоставление типов](https://python-all.ru/3.2/library/xml.dom.html#type-mapping)1552        - [19.7.3.2. Методы доступа](https://python-all.ru/3.2/library/xml.dom.html#accessor-methods)1553    - [19.8. `xml.dom.minidom` – Минимальная реализация DOM](https://python-all.ru/3.2/library/xml.dom.minidom.html)15541555      - [19.8.1. Объекты DOM](https://python-all.ru/3.2/library/xml.dom.minidom.html#dom-objects)1556      - [19.8.2. Пример DOM](https://python-all.ru/3.2/library/xml.dom.minidom.html#dom-example)1557      - [19.8.3. minidom и стандарт DOM](https://python-all.ru/3.2/library/xml.dom.minidom.html#minidom-and-the-dom-standard)1558    - [19.9. `xml.dom.pulldom` – Поддержка построения частичных DOM-деревьев](https://python-all.ru/3.2/library/xml.dom.pulldom.html)15591560      - [19.9.1. Объекты DOMEventStream](https://python-all.ru/3.2/library/xml.dom.pulldom.html#domeventstream-objects)1561    - [19.10. `xml.sax` – Поддержка парсеров SAX2](https://python-all.ru/3.2/library/xml.sax.html)15621563      - [19.10.1. Объекты SAXException](https://python-all.ru/3.2/library/xml.sax.html#saxexception-objects)1564    - [19.11. `xml.sax.handler` – Базовые классы для обработчиков SAX](https://python-all.ru/3.2/library/xml.sax.handler.html)15651566      - [19.11.1. Объекты ContentHandler](https://python-all.ru/3.2/library/xml.sax.handler.html#contenthandler-objects)1567      - [19.11.2. Объекты DTDHandler](https://python-all.ru/3.2/library/xml.sax.handler.html#dtdhandler-objects)1568      - [19.11.3. Объекты EntityResolver](https://python-all.ru/3.2/library/xml.sax.handler.html#entityresolver-objects)1569      - [19.11.4. Объекты ErrorHandler](https://python-all.ru/3.2/library/xml.sax.handler.html#errorhandler-objects)1570    - [19.12. `xml.sax.saxutils` – Утилиты SAX](https://python-all.ru/3.2/library/xml.sax.utils.html)1571    - [19.13. `xml.sax.xmlreader` – Интерфейс для XML-парсеров](https://python-all.ru/3.2/library/xml.sax.reader.html)15721573      - [19.13.1. Объекты XMLReader](https://python-all.ru/3.2/library/xml.sax.reader.html#xmlreader-objects)1574      - [19.13.2. Объекты IncrementalParser](https://python-all.ru/3.2/library/xml.sax.reader.html#incrementalparser-objects)1575      - [19.13.3. Объекты Locator](https://python-all.ru/3.2/library/xml.sax.reader.html#locator-objects)1576      - [19.13.4. Объекты InputSource](https://python-all.ru/3.2/library/xml.sax.reader.html#inputsource-objects)1577      - [19.13.5. Интерфейс `Attributes`](https://python-all.ru/3.2/library/xml.sax.reader.html#the-attributes-interface)1578      - [19.13.6. Интерфейс `AttributesNS`](https://python-all.ru/3.2/library/xml.sax.reader.html#the-attributesns-interface)1579    - [19.14. `xml.parsers.expat` – Быстрый разбор XML с помощью Expat](https://python-all.ru/3.2/library/pyexpat.html)15801581      - [19.14.1. Объекты XMLParser](https://python-all.ru/3.2/library/pyexpat.html#xmlparser-objects)1582      - [19.14.2. Исключения ExpatError](https://python-all.ru/3.2/library/pyexpat.html#expaterror-exceptions)1583      - [19.14.3. Пример](https://python-all.ru/3.2/library/pyexpat.html#example)1584      - [19.14.4. Описания моделей содержимого](https://python-all.ru/3.2/library/pyexpat.html#module-xml.parsers.expat.model)1585      - [19.14.5. Константы ошибок Expat](https://python-all.ru/3.2/library/pyexpat.html#module-xml.parsers.expat.errors)1586  - [20. Интернет-протоколы и поддержка](https://python-all.ru/3.2/library/internet.html)15871588    - [20.1. `webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/3.2/library/webbrowser.html)15891590      - [20.1.1. Объекты контроллера браузера](https://python-all.ru/3.2/library/webbrowser.html#browser-controller-objects)1591    - [20.2. `cgi` – Поддержка Common Gateway Interface](https://python-all.ru/3.2/library/cgi.html)15921593      - [20.2.1. Введение](https://python-all.ru/3.2/library/cgi.html#introduction)1594      - [20.2.2. Использование модуля cgi](https://python-all.ru/3.2/library/cgi.html#using-the-cgi-module)1595      - [20.2.3. Интерфейс высокого уровня](https://python-all.ru/3.2/library/cgi.html#higher-level-interface)1596      - [20.2.4. Функции](https://python-all.ru/3.2/library/cgi.html#functions)1597      - [20.2.5. Вопросы безопасности](https://python-all.ru/3.2/library/cgi.html#caring-about-security)1598      - [20.2.6. Установка CGI-скрипта в системе Unix](https://python-all.ru/3.2/library/cgi.html#installing-your-cgi-script-on-a-unix-system)1599      - [20.2.7. Тестирование CGI-скрипта](https://python-all.ru/3.2/library/cgi.html#testing-your-cgi-script)1600      - [20.2.8. Отладка CGI-скриптов](https://python-all.ru/3.2/library/cgi.html#debugging-cgi-scripts)1601      - [20.2.9. Распространённые проблемы и их решения](https://python-all.ru/3.2/library/cgi.html#common-problems-and-solutions)1602    - [20.3. `cgitb` – Менеджер трассировки для CGI-скриптов](https://python-all.ru/3.2/library/cgitb.html)1603    - [20.4. `wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/3.2/library/wsgiref.html)16041605      - [20.4.1. `wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/3.2/library/wsgiref.html#module-wsgiref.util)1606      - [20.4.2. `wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/3.2/library/wsgiref.html#module-wsgiref.headers)1607      - [20.4.3. `wsgiref.simple_server` – Простой HTTP-сервер WSGI](https://python-all.ru/3.2/library/wsgiref.html#module-wsgiref.simple_server)1608      - [20.4.4. `wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/3.2/library/wsgiref.html#module-wsgiref.validate)1609      - [20.4.5. `wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/3.2/library/wsgiref.html#module-wsgiref.handlers)1610      - [20.4.6. Примеры](https://python-all.ru/3.2/library/wsgiref.html#examples)1611    - [20.5. `urllib.request` – Расширяемая библиотека для открытия URL](https://python-all.ru/3.2/library/urllib.request.html)16121613      - [20.5.1. Объекты Request](https://python-all.ru/3.2/library/urllib.request.html#request-objects)1614      - [20.5.2. Объекты OpenerDirector](https://python-all.ru/3.2/library/urllib.request.html#openerdirector-objects)1615      - [20.5.3. Объекты BaseHandler](https://python-all.ru/3.2/library/urllib.request.html#basehandler-objects)1616      - [20.5.4. Объекты HTTPRedirectHandler](https://python-all.ru/3.2/library/urllib.request.html#httpredirecthandler-objects)1617      - [20.5.5. Объекты HTTPCookieProcessor](https://python-all.ru/3.2/library/urllib.request.html#httpcookieprocessor-objects)1618      - [20.5.6. Объекты ProxyHandler](https://python-all.ru/3.2/library/urllib.request.html#proxyhandler-objects)1619      - [20.5.7. Объекты HTTPPasswordMgr](https://python-all.ru/3.2/library/urllib.request.html#httppasswordmgr-objects)1620      - [20.5.8. Объекты AbstractBasicAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#abstractbasicauthhandler-objects)1621      - [20.5.9. Объекты HTTPBasicAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#httpbasicauthhandler-objects)1622      - [20.5.10. Объекты ProxyBasicAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#proxybasicauthhandler-objects)1623      - [20.5.11. Объекты AbstractDigestAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#abstractdigestauthhandler-objects)1624      - [20.5.12. Объекты HTTPDigestAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#httpdigestauthhandler-objects)1625      - [20.5.13. Объекты ProxyDigestAuthHandler](https://python-all.ru/3.2/library/urllib.request.html#proxydigestauthhandler-objects)1626      - [20.5.14. Объекты HTTPHandler](https://python-all.ru/3.2/library/urllib.request.html#httphandler-objects)1627      - [20.5.15. Объекты HTTPSHandler](https://python-all.ru/3.2/library/urllib.request.html#httpshandler-objects)1628      - [20.5.16. Объекты FileHandler](https://python-all.ru/3.2/library/urllib.request.html#filehandler-objects)1629      - [20.5.17. Объекты FTPHandler](https://python-all.ru/3.2/library/urllib.request.html#ftphandler-objects)1630      - [20.5.18. Объекты CacheFTPHandler](https://python-all.ru/3.2/library/urllib.request.html#cacheftphandler-objects)1631      - [20.5.19. Объекты UnknownHandler](https://python-all.ru/3.2/library/urllib.request.html#unknownhandler-objects)1632      - [20.5.20. Объекты HTTPErrorProcessor](https://python-all.ru/3.2/library/urllib.request.html#httperrorprocessor-objects)1633      - [20.5.21. Примеры](https://python-all.ru/3.2/library/urllib.request.html#examples)1634      - [20.5.22. Устаревший интерфейс](https://python-all.ru/3.2/library/urllib.request.html#legacy-interface)1635      - [20.5.23. `urllib.request` Ограничения](https://python-all.ru/3.2/library/urllib.request.html#urllib-request-restrictions)1636    - [20.6. `urllib.response` – Классы ответов, используемые urllib](https://python-all.ru/3.2/library/urllib.request.html#module-urllib.response)1637    - [20.7. `urllib.parse` – Разбор URL на компоненты](https://python-all.ru/3.2/library/urllib.parse.html)16381639      - [20.7.1. Разбор URL](https://python-all.ru/3.2/library/urllib.parse.html#url-parsing)1640      - [20.7.2. Разбор ASCII-кодированных байтов](https://python-all.ru/3.2/library/urllib.parse.html#parsing-ascii-encoded-bytes)1641      - [20.7.3. Структурированные результаты разбора](https://python-all.ru/3.2/library/urllib.parse.html#structured-parse-results)1642      - [20.7.4. Квотирование URL](https://python-all.ru/3.2/library/urllib.parse.html#url-quoting)1643    - [20.8. `urllib.error` – Классы исключений, вызываемые urllib.request](https://python-all.ru/3.2/library/urllib.error.html)1644    - [20.9. `urllib.robotparser` – Парсер для robots.txt](https://python-all.ru/3.2/library/urllib.robotparser.html)1645    - [20.10. `http.client` – Клиент протокола HTTP](https://python-all.ru/3.2/library/http.client.html)16461647      - [20.10.1. Объекты HTTPConnection](https://python-all.ru/3.2/library/http.client.html#httpconnection-objects)1648      - [20.10.2. Объекты HTTPResponse](https://python-all.ru/3.2/library/http.client.html#httpresponse-objects)1649      - [20.10.3. Примеры](https://python-all.ru/3.2/library/http.client.html#examples)1650      - [20.10.4. Объекты HTTPMessage](https://python-all.ru/3.2/library/http.client.html#httpmessage-objects)1651    - [20.11. `ftplib` – Клиент протокола FTP](https://python-all.ru/3.2/library/ftplib.html)16521653      - [20.11.1. Объекты FTP](https://python-all.ru/3.2/library/ftplib.html#ftp-objects)1654      - [20.11.2. Объекты FTP\_TLS](https://python-all.ru/3.2/library/ftplib.html#ftp-tls-objects)1655    - [20.12. `poplib` – Клиент протокола POP3](https://python-all.ru/3.2/library/poplib.html)16561657      - [20.12.1. Объекты POP3](https://python-all.ru/3.2/library/poplib.html#pop3-objects)1658      - [20.12.2. Пример POP3](https://python-all.ru/3.2/library/poplib.html#pop3-example)1659    - [20.13. `imaplib` – Клиент протокола IMAP4](https://python-all.ru/3.2/library/imaplib.html)16601661      - [20.13.1. Объекты IMAP4](https://python-all.ru/3.2/library/imaplib.html#imap4-objects)1662      - [20.13.2. Пример IMAP4](https://python-all.ru/3.2/library/imaplib.html#imap4-example)1663    - [20.14. `nntplib` – Клиент протокола NNTP](https://python-all.ru/3.2/library/nntplib.html)16641665      - [20.14.1. Объекты NNTP](https://python-all.ru/3.2/library/nntplib.html#nntp-objects)16661667        - [20.14.1.1. Атрибуты](https://python-all.ru/3.2/library/nntplib.html#attributes)1668        - [20.14.1.2. Методы](https://python-all.ru/3.2/library/nntplib.html#methods)1669      - [20.14.2. Вспомогательные функции](https://python-all.ru/3.2/library/nntplib.html#utility-functions)1670    - [20.15. `smtplib` – Клиент протокола SMTP](https://python-all.ru/3.2/library/smtplib.html)16711672      - [20.15.1. Объекты SMTP](https://python-all.ru/3.2/library/smtplib.html#smtp-objects)1673      - [20.15.2. Пример SMTP](https://python-all.ru/3.2/library/smtplib.html#smtp-example)1674    - [20.16. `smtpd` – SMTP-сервер](https://python-all.ru/3.2/library/smtpd.html)16751676      - [20.16.1. Объекты SMTPServer](https://python-all.ru/3.2/library/smtpd.html#smtpserver-objects)1677      - [20.16.2. Объекты DebuggingServer](https://python-all.ru/3.2/library/smtpd.html#debuggingserver-objects)1678      - [20.16.3. Объекты PureProxy](https://python-all.ru/3.2/library/smtpd.html#pureproxy-objects)1679      - [20.16.4. Объекты MailmanProxy](https://python-all.ru/3.2/library/smtpd.html#mailmanproxy-objects)1680      - [20.16.5. Объекты SMTPChannel](https://python-all.ru/3.2/library/smtpd.html#smtpchannel-objects)1681    - [20.17. `telnetlib` – Telnet-клиент](https://python-all.ru/3.2/library/telnetlib.html)16821683      - [20.17.1. Объекты Telnet](https://python-all.ru/3.2/library/telnetlib.html#telnet-objects)1684      - [20.17.2. Пример Telnet](https://python-all.ru/3.2/library/telnetlib.html#telnet-example)1685    - [20.18. `uuid` – объекты UUID по RFC 4122](https://python-all.ru/3.2/library/uuid.html)16861687      - [20.18.1. Пример](https://python-all.ru/3.2/library/uuid.html#example)1688    - [20.19. `socketserver` – каркас для сетевых серверов](https://python-all.ru/3.2/library/socketserver.html)16891690      - [20.19.1. Замечания по созданию сервера](https://python-all.ru/3.2/library/socketserver.html#server-creation-notes)1691      - [20.19.2. Объекты сервера](https://python-all.ru/3.2/library/socketserver.html#server-objects)1692      - [20.19.3. Объекты RequestHandler](https://python-all.ru/3.2/library/socketserver.html#requesthandler-objects)1693      - [20.19.4. Примеры](https://python-all.ru/3.2/library/socketserver.html#examples)16941695        - [20.19.4.1. Пример `socketserver.TCPServer`](https://python-all.ru/3.2/library/socketserver.html#socketserver-tcpserver-example)1696        - [20.19.4.2. Пример `socketserver.UDPServer`](https://python-all.ru/3.2/library/socketserver.html#socketserver-udpserver-example)1697        - [20.19.4.3. Асинхронные миксины](https://python-all.ru/3.2/library/socketserver.html#asynchronous-mixins)1698    - [20.20. `http.server` – HTTP-серверы](https://python-all.ru/3.2/library/http.server.html)1699    - [20.21. `http.cookies` – управление состоянием HTTP](https://python-all.ru/3.2/library/http.cookies.html)17001701      - [20.21.1. Объекты Cookie](https://python-all.ru/3.2/library/http.cookies.html#cookie-objects)1702      - [20.21.2. Объекты Morsel](https://python-all.ru/3.2/library/http.cookies.html#morsel-objects)1703      - [20.21.3. Пример](https://python-all.ru/3.2/library/http.cookies.html#example)1704    - [20.22. `http.cookiejar` – обработка cookie для HTTP-клиентов](https://python-all.ru/3.2/library/http.cookiejar.html)17051706      - [20.22.1. Объекты CookieJar и FileCookieJar](https://python-all.ru/3.2/library/http.cookiejar.html#cookiejar-and-filecookiejar-objects)1707      - [20.22.2. Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/3.2/library/http.cookiejar.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)1708      - [20.22.3. Объекты CookiePolicy](https://python-all.ru/3.2/library/http.cookiejar.html#cookiepolicy-objects)1709      - [20.22.4. Объекты DefaultCookiePolicy](https://python-all.ru/3.2/library/http.cookiejar.html#defaultcookiepolicy-objects)1710      - [20.22.5. Объекты Cookie](https://python-all.ru/3.2/library/http.cookiejar.html#cookie-objects)1711      - [20.22.6. Примеры](https://python-all.ru/3.2/library/http.cookiejar.html#examples)1712    - [20.23. `xmlrpc.client` – клиентский доступ к XML-RPC](https://python-all.ru/3.2/library/xmlrpc.client.html)17131714      - [20.23.1. Объекты ServerProxy](https://python-all.ru/3.2/library/xmlrpc.client.html#serverproxy-objects)1715      - [20.23.2. Объекты DateTime](https://python-all.ru/3.2/library/xmlrpc.client.html#datetime-objects)1716      - [20.23.3. Двоичные объекты](https://python-all.ru/3.2/library/xmlrpc.client.html#binary-objects)1717      - [20.23.4. Объекты Fault](https://python-all.ru/3.2/library/xmlrpc.client.html#fault-objects)1718      - [20.23.5. Объекты ProtocolError](https://python-all.ru/3.2/library/xmlrpc.client.html#protocolerror-objects)1719      - [20.23.6. Объекты MultiCall](https://python-all.ru/3.2/library/xmlrpc.client.html#multicall-objects)1720      - [20.23.7. Вспомогательные функции](https://python-all.ru/3.2/library/xmlrpc.client.html#convenience-functions)1721      - [20.23.8. Пример использования клиента](https://python-all.ru/3.2/library/xmlrpc.client.html#example-of-client-usage)1722      - [20.23.9. Пример использования клиента и сервера](https://python-all.ru/3.2/library/xmlrpc.client.html#example-of-client-and-server-usage)1723    - [20.24. `xmlrpc.server` – Базовые XML-RPC-серверы](https://python-all.ru/3.2/library/xmlrpc.server.html)17241725      - [20.24.1. Объекты SimpleXMLRPCServer](https://python-all.ru/3.2/library/xmlrpc.server.html#simplexmlrpcserver-objects)17261727        - [20.24.1.1. Пример SimpleXMLRPCServer](https://python-all.ru/3.2/library/xmlrpc.server.html#simplexmlrpcserver-example)1728      - [20.24.2. CGIXMLRPCRequestHandler](https://python-all.ru/3.2/library/xmlrpc.server.html#cgixmlrpcrequesthandler)1729      - [20.24.3. Документирование XMLRPC-сервера](https://python-all.ru/3.2/library/xmlrpc.server.html#documenting-xmlrpc-server)1730      - [20.24.4. Объекты DocXMLRPCServer](https://python-all.ru/3.2/library/xmlrpc.server.html#docxmlrpcserver-objects)1731      - [20.24.5. DocCGIXMLRPCRequestHandler](https://python-all.ru/3.2/library/xmlrpc.server.html#doccgixmlrpcrequesthandler)1732  - [21. Мультимедийные службы](https://python-all.ru/3.2/library/mm.html)17331734    - [21.1. `audioop` – Обработка необработанных аудиоданных](https://python-all.ru/3.2/library/audioop.html)1735    - [21.2. `aifc` – Чтение и запись файлов AIFF и AIFC](https://python-all.ru/3.2/library/aifc.html)1736    - [21.3. `sunau` – Чтение и запись файлов Sun AU](https://python-all.ru/3.2/library/sunau.html)17371738      - [21.3.1. Объекты AU\_read](https://python-all.ru/3.2/library/sunau.html#au-read-objects)1739      - [21.3.2. Объекты AU\_write](https://python-all.ru/3.2/library/sunau.html#au-write-objects)1740    - [21.4. `wave` – Чтение и запись WAV-файлов](https://python-all.ru/3.2/library/wave.html)17411742      - [21.4.1. Объекты Wave\_read](https://python-all.ru/3.2/library/wave.html#wave-read-objects)1743      - [21.4.2. Объекты Wave\_write](https://python-all.ru/3.2/library/wave.html#wave-write-objects)1744    - [21.5. `chunk` – Чтение блочных данных IFF](https://python-all.ru/3.2/library/chunk.html)1745    - [21.6. `colorsys` – Преобразование между цветовыми системами](https://python-all.ru/3.2/library/colorsys.html)1746    - [21.7. `imghdr` – Определение типа изображения](https://python-all.ru/3.2/library/imghdr.html)1747    - [21.8. `sndhdr` – Определение типа звукового файла](https://python-all.ru/3.2/library/sndhdr.html)1748    - [21.9. `ossaudiodev` – Доступ к аудиоустройствам, совместимым с OSS](https://python-all.ru/3.2/library/ossaudiodev.html)17491750      - [21.9.1. Объекты аудиоустройств](https://python-all.ru/3.2/library/ossaudiodev.html#audio-device-objects)1751      - [21.9.2. Объекты микшерных устройств](https://python-all.ru/3.2/library/ossaudiodev.html#mixer-device-objects)1752  - [22. Интернационализация](https://python-all.ru/3.2/library/i18n.html)17531754    - [22.1. `gettext` – Многоязычные службы интернационализации](https://python-all.ru/3.2/library/gettext.html)17551756      - [22.1.1. GNU **gettext** API](https://python-all.ru/3.2/library/gettext.html#gnu-gettext-api)1757      - [22.1.2. API на основе классов](https://python-all.ru/3.2/library/gettext.html#class-based-api)17581759        - [22.1.2.1. Класс `NullTranslations`](https://python-all.ru/3.2/library/gettext.html#the-nulltranslations-class)1760        - [22.1.2.2. Класс `GNUTranslations`](https://python-all.ru/3.2/library/gettext.html#the-gnutranslations-class)1761        - [22.1.2.3. Поддержка каталогов сообщений Solaris](https://python-all.ru/3.2/library/gettext.html#solaris-message-catalog-support)1762        - [22.1.2.4. Конструктор Catalog](https://python-all.ru/3.2/library/gettext.html#the-catalog-constructor)1763      - [22.1.3. Интернационализация программ и модулей](https://python-all.ru/3.2/library/gettext.html#internationalizing-your-programs-and-modules)17641765        - [22.1.3.1. Локализация модуля](https://python-all.ru/3.2/library/gettext.html#localizing-your-module)1766        - [22.1.3.2. Локализация приложения](https://python-all.ru/3.2/library/gettext.html#localizing-your-application)1767        - [22.1.3.3. Смена языка на лету](https://python-all.ru/3.2/library/gettext.html#changing-languages-on-the-fly)1768        - [22.1.3.4. Отложенные переводы](https://python-all.ru/3.2/library/gettext.html#deferred-translations)1769      - [22.1.4. Благодарности](https://python-all.ru/3.2/library/gettext.html#acknowledgements)1770    - [22.2. `locale` – Службы интернационализации](https://python-all.ru/3.2/library/locale.html)17711772      - [22.2.1. Предыстория, подробности, советы и предостережения](https://python-all.ru/3.2/library/locale.html#background-details-hints-tips-and-caveats)1773      - [22.2.2. Для разработчиков расширений и программ, встраивающих Python](https://python-all.ru/3.2/library/locale.html#for-extension-writers-and-programs-that-embed-python)1774      - [22.2.3. Доступ к каталогам сообщений](https://python-all.ru/3.2/library/locale.html#access-to-message-catalogs)1775  - [23. Каркасы программ](https://python-all.ru/3.2/library/frameworks.html)17761777    - [23.1. `turtle` – Графика черепашки](https://python-all.ru/3.2/library/turtle.html)17781779      - [23.1.1. Введение](https://python-all.ru/3.2/library/turtle.html#introduction)1780      - [23.1.2. Обзор доступных методов Turtle и Screen](https://python-all.ru/3.2/library/turtle.html#overview-of-available-turtle-and-screen-methods)17811782        - [23.1.2.1. Методы Turtle](https://python-all.ru/3.2/library/turtle.html#turtle-methods)1783        - [23.1.2.2. Методы TurtleScreen/Screen](https://python-all.ru/3.2/library/turtle.html#methods-of-turtlescreen-screen)1784      - [23.1.3. Методы RawTurtle/Turtle и соответствующие функции](https://python-all.ru/3.2/library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions)17851786        - [23.1.3.1. Движение черепашки](https://python-all.ru/3.2/library/turtle.html#turtle-motion)1787        - [23.1.3.2. Состояние черепашки](https://python-all.ru/3.2/library/turtle.html#tell-turtle-s-state)1788        - [23.1.3.3. Настройки измерений](https://python-all.ru/3.2/library/turtle.html#settings-for-measurement)1789        - [23.1.3.4. Управление пером](https://python-all.ru/3.2/library/turtle.html#pen-control)17901791          - [23.1.3.4.1. Состояние рисования](https://python-all.ru/3.2/library/turtle.html#drawing-state)1792          - [23.1.3.4.2. Управление цветом](https://python-all.ru/3.2/library/turtle.html#color-control)1793          - [23.1.3.4.3. Заливка](https://python-all.ru/3.2/library/turtle.html#filling)1794          - [23.1.3.4.4. Дополнительное управление рисованием](https://python-all.ru/3.2/library/turtle.html#more-drawing-control)1795        - [23.1.3.5. Состояние черепахи](https://python-all.ru/3.2/library/turtle.html#turtle-state)17961797          - [23.1.3.5.1. Видимость](https://python-all.ru/3.2/library/turtle.html#visibility)1798          - [23.1.3.5.2. Внешний вид](https://python-all.ru/3.2/library/turtle.html#appearance)1799        - [23.1.3.6. Использование событий](https://python-all.ru/3.2/library/turtle.html#using-events)1800        - [23.1.3.7. Специальные методы Turtle](https://python-all.ru/3.2/library/turtle.html#special-turtle-methods)1801        - [23.1.3.8. Составные формы](https://python-all.ru/3.2/library/turtle.html#compound-shapes)1802      - [23.1.4. Методы TurtleScreen/Screen и соответствующие функции](https://python-all.ru/3.2/library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions)18031804        - [23.1.4.1. Управление окном](https://python-all.ru/3.2/library/turtle.html#window-control)1805        - [23.1.4.2. Управление анимацией](https://python-all.ru/3.2/library/turtle.html#animation-control)1806        - [23.1.4.3. Использование событий экрана](https://python-all.ru/3.2/library/turtle.html#using-screen-events)1807        - [23.1.4.4. Методы ввода](https://python-all.ru/3.2/library/turtle.html#input-methods)1808        - [23.1.4.5. Настройки и специальные методы](https://python-all.ru/3.2/library/turtle.html#settings-and-special-methods)1809        - [23.1.4.6. Методы, специфичные для Screen, не унаследованные от TurtleScreen](https://python-all.ru/3.2/library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen)1810      - [23.1.5. Публичные классы](https://python-all.ru/3.2/library/turtle.html#public-classes)1811      - [23.1.6. Справка и настройка](https://python-all.ru/3.2/library/turtle.html#help-and-configuration)18121813        - [23.1.6.1. Как пользоваться справкой](https://python-all.ru/3.2/library/turtle.html#how-to-use-help)1814        - [23.1.6.2. Перевод докстрингов на разные языки](https://python-all.ru/3.2/library/turtle.html#translation-of-docstrings-into-different-languages)1815        - [23.1.6.3. Как настроить экран и черепах](https://python-all.ru/3.2/library/turtle.html#how-to-configure-screen-and-turtles)1816      - [23.1.7. Демонстрационные скрипты](https://python-all.ru/3.2/library/turtle.html#demo-scripts)1817      - [23.1.8. Изменения начиная с Python 2.6](https://python-all.ru/3.2/library/turtle.html#changes-since-python-2-6)1818      - [23.1.9. Изменения начиная с Python 3.0](https://python-all.ru/3.2/library/turtle.html#changes-since-python-3-0)1819    - [23.2. `cmd` – поддержка построчных командных интерпретаторов](https://python-all.ru/3.2/library/cmd.html)18201821      - [23.2.1. Объекты Cmd](https://python-all.ru/3.2/library/cmd.html#cmd-objects)1822      - [23.2.2. Пример Cmd](https://python-all.ru/3.2/library/cmd.html#cmd-example)1823    - [23.3. `shlex` – простой лексический анализ](https://python-all.ru/3.2/library/shlex.html)18241825      - [23.3.1. Объекты shlex](https://python-all.ru/3.2/library/shlex.html#shlex-objects)1826      - [23.3.2. Правила разбора](https://python-all.ru/3.2/library/shlex.html#parsing-rules)1827  - [24. Графические пользовательские интерфейсы с Tk](https://python-all.ru/3.2/library/tk.html)18281829    - [24.1. `tkinter` – интерфейс Python к Tcl/Tk](https://python-all.ru/3.2/library/tkinter.html)18301831      - [24.1.1. Модули Tkinter](https://python-all.ru/3.2/library/tkinter.html#tkinter-modules)1832      - [24.1.2. Жизненный спасатель Tkinter](https://python-all.ru/3.2/library/tkinter.html#tkinter-life-preserver)18331834        - [24.1.2.1. Как использовать этот раздел](https://python-all.ru/3.2/library/tkinter.html#how-to-use-this-section)1835        - [24.1.2.2. Простая программа Hello World](https://python-all.ru/3.2/library/tkinter.html#a-simple-hello-world-program)1836      - [24.1.3. Очень быстрый взгляд на Tcl/Tk](https://python-all.ru/3.2/library/tkinter.html#a-very-quick-look-at-tcl-tk)1837      - [24.1.4. Отображение базового Tk в Tkinter](https://python-all.ru/3.2/library/tkinter.html#mapping-basic-tk-into-tkinter)1838      - [24.1.5. Как связаны Tk и Tkinter](https://python-all.ru/3.2/library/tkinter.html#how-tk-and-tkinter-are-related)1839      - [24.1.6. Удобный справочник](https://python-all.ru/3.2/library/tkinter.html#handy-reference)18401841        - [24.1.6.1. Настройка параметров](https://python-all.ru/3.2/library/tkinter.html#setting-options)1842        - [24.1.6.2. Упаковщик](https://python-all.ru/3.2/library/tkinter.html#the-packer)1843        - [24.1.6.3. Параметры упаковщика](https://python-all.ru/3.2/library/tkinter.html#packer-options)1844        - [24.1.6.4. Привязка переменных виджетов](https://python-all.ru/3.2/library/tkinter.html#coupling-widget-variables)1845        - [24.1.6.5. Менеджер окон](https://python-all.ru/3.2/library/tkinter.html#the-window-manager)1846        - [24.1.6.6. Типы данных параметров Tk](https://python-all.ru/3.2/library/tkinter.html#tk-option-data-types)1847        - [24.1.6.7. Привязки и события](https://python-all.ru/3.2/library/tkinter.html#bindings-and-events)1848        - [24.1.6.8. Параметр index](https://python-all.ru/3.2/library/tkinter.html#the-index-parameter)1849        - [24.1.6.9. Изображения](https://python-all.ru/3.2/library/tkinter.html#images)1850    - [24.2. `tkinter.ttk` – тематические виджеты Tk](https://python-all.ru/3.2/library/tkinter.ttk.html)18511852      - [24.2.1. Использование Ttk](https://python-all.ru/3.2/library/tkinter.ttk.html#using-ttk)1853      - [24.2.2. Виджеты Ttk](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-widgets)1854      - [24.2.3. Виджет](https://python-all.ru/3.2/library/tkinter.ttk.html#widget)18551856        - [24.2.3.1. Стандартные параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#standard-options)1857        - [24.2.3.2. Параметры прокручиваемого виджета](https://python-all.ru/3.2/library/tkinter.ttk.html#scrollable-widget-options)1858        - [24.2.3.3. Параметры метки](https://python-all.ru/3.2/library/tkinter.ttk.html#label-options)1859        - [24.2.3.4. Параметры совместимости](https://python-all.ru/3.2/library/tkinter.ttk.html#compatibility-options)1860        - [24.2.3.5. Состояния виджетов](https://python-all.ru/3.2/library/tkinter.ttk.html#widget-states)1861        - [24.2.3.6. ttk.Widget](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-widget)1862      - [24.2.4. Combobox](https://python-all.ru/3.2/library/tkinter.ttk.html#combobox)18631864        - [24.2.4.1. Параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#options)1865        - [24.2.4.2. Виртуальные события](https://python-all.ru/3.2/library/tkinter.ttk.html#virtual-events)1866        - [24.2.4.3. ttk.Combobox](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-combobox)1867      - [24.2.5. Notebook](https://python-all.ru/3.2/library/tkinter.ttk.html#notebook)18681869        - [24.2.5.1. Параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#id1)1870        - [24.2.5.2. Параметры вкладок](https://python-all.ru/3.2/library/tkinter.ttk.html#tab-options)1871        - [24.2.5.3. Идентификаторы вкладок](https://python-all.ru/3.2/library/tkinter.ttk.html#tab-identifiers)1872        - [24.2.5.4. Виртуальные события](https://python-all.ru/3.2/library/tkinter.ttk.html#id2)1873        - [24.2.5.5. ttk.Notebook](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-notebook)1874      - [24.2.6. Progressbar](https://python-all.ru/3.2/library/tkinter.ttk.html#progressbar)18751876        - [24.2.6.1. Параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#id3)1877        - [24.2.6.2. ttk.Progressbar](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-progressbar)1878      - [24.2.7. Separator](https://python-all.ru/3.2/library/tkinter.ttk.html#separator)18791880        - [24.2.7.1. Параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#id4)1881      - [24.2.8. Sizegrip](https://python-all.ru/3.2/library/tkinter.ttk.html#sizegrip)18821883        - [24.2.8.1. Примечания для конкретных платформ](https://python-all.ru/3.2/library/tkinter.ttk.html#platform-specific-notes)1884        - [24.2.8.2. Ошибки](https://python-all.ru/3.2/library/tkinter.ttk.html#bugs)1885      - [24.2.9. Treeview](https://python-all.ru/3.2/library/tkinter.ttk.html#treeview)18861887        - [24.2.9.1. Параметры](https://python-all.ru/3.2/library/tkinter.ttk.html#id5)1888        - [24.2.9.2. Параметры элементов](https://python-all.ru/3.2/library/tkinter.ttk.html#item-options)1889        - [24.2.9.3. Параметры тегов](https://python-all.ru/3.2/library/tkinter.ttk.html#tag-options)1890        - [24.2.9.4. Идентификаторы столбцов](https://python-all.ru/3.2/library/tkinter.ttk.html#column-identifiers)1891        - [24.2.9.5. Виртуальные события](https://python-all.ru/3.2/library/tkinter.ttk.html#id6)1892        - [24.2.9.6. ttk.Treeview](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-treeview)1893      - [24.2.10. Стилизация Ttk](https://python-all.ru/3.2/library/tkinter.ttk.html#ttk-styling)18941895        - [24.2.10.1. Макеты](https://python-all.ru/3.2/library/tkinter.ttk.html#layouts)1896    - [24.3. `tkinter.tix` – Расширяющие виджеты для Tk](https://python-all.ru/3.2/library/tkinter.tix.html)18971898      - [24.3.1. Использование Tix](https://python-all.ru/3.2/library/tkinter.tix.html#using-tix)1899      - [24.3.2. Виджеты Tix](https://python-all.ru/3.2/library/tkinter.tix.html#tix-widgets)19001901        - [24.3.2.1. Базовые виджеты](https://python-all.ru/3.2/library/tkinter.tix.html#basic-widgets)1902        - [24.3.2.2. Селекторы файлов](https://python-all.ru/3.2/library/tkinter.tix.html#file-selectors)1903        - [24.3.2.3. Иерархический ListBox](https://python-all.ru/3.2/library/tkinter.tix.html#hierarchical-listbox)1904        - [24.3.2.4. Табличный ListBox](https://python-all.ru/3.2/library/tkinter.tix.html#tabular-listbox)1905        - [24.3.2.5. Виджеты-менеджеры](https://python-all.ru/3.2/library/tkinter.tix.html#manager-widgets)1906        - [24.3.2.6. Типы изображений](https://python-all.ru/3.2/library/tkinter.tix.html#image-types)1907        - [24.3.2.7. Прочие виджеты](https://python-all.ru/3.2/library/tkinter.tix.html#miscellaneous-widgets)1908        - [24.3.2.8. Менеджер геометрии Form](https://python-all.ru/3.2/library/tkinter.tix.html#form-geometry-manager)1909      - [24.3.3. Команды Tix](https://python-all.ru/3.2/library/tkinter.tix.html#tix-commands)1910    - [24.4. `tkinter.scrolledtext` – Виджет прокручиваемого текста](https://python-all.ru/3.2/library/tkinter.scrolledtext.html)1911    - [24.5. IDLE](https://python-all.ru/3.2/library/idle.html)19121913      - [24.5.1. Меню](https://python-all.ru/3.2/library/idle.html#menus)19141915        - [24.5.1.1. Меню «Файл»](https://python-all.ru/3.2/library/idle.html#file-menu)1916        - [24.5.1.2. Меню «Правка»](https://python-all.ru/3.2/library/idle.html#edit-menu)1917        - [24.5.1.3. Меню «Окна»](https://python-all.ru/3.2/library/idle.html#windows-menu)1918        - [24.5.1.4. Меню «Отладка»](https://python-all.ru/3.2/library/idle.html#debug-menu)1919        - [24.5.1.5. Контекстное меню редактора](https://python-all.ru/3.2/library/idle.html#edit-context-menu)1920        - [24.5.1.6. Контекстное меню оболочки](https://python-all.ru/3.2/library/idle.html#shell-context-menu)1921      - [24.5.2. Основы редактирования и навигации](https://python-all.ru/3.2/library/idle.html#basic-editing-and-navigation)19221923        - [24.5.2.1. Автоматический отступ](https://python-all.ru/3.2/library/idle.html#automatic-indentation)1924        - [24.5.2.2. Окно оболочки Python](https://python-all.ru/3.2/library/idle.html#python-shell-window)1925      - [24.5.3. Цвета синтаксиса](https://python-all.ru/3.2/library/idle.html#syntax-colors)1926      - [24.5.4. Запуск](https://python-all.ru/3.2/library/idle.html#startup)19271928        - [24.5.4.1. Использование командной строки](https://python-all.ru/3.2/library/idle.html#command-line-usage)1929    - [24.6. Другие пакеты графического интерфейса пользователя](https://python-all.ru/3.2/library/othergui.html)1930  - [25. Инструменты разработки](https://python-all.ru/3.2/library/development.html)19311932    - [25.1. `pydoc` – Генератор документации и справочная система](https://python-all.ru/3.2/library/pydoc.html)1933    - [25.2. `doctest` – Тестирование интерактивных примеров Python](https://python-all.ru/3.2/library/doctest.html)19341935      - [25.2.1. Простое использование: проверка примеров в docstrings](https://python-all.ru/3.2/library/doctest.html#simple-usage-checking-examples-in-docstrings)1936      - [25.2.2. Простое использование: проверка примеров в текстовом файле](https://python-all.ru/3.2/library/doctest.html#simple-usage-checking-examples-in-a-text-file)1937      - [25.2.3. Как это работает](https://python-all.ru/3.2/library/doctest.html#how-it-works)19381939        - [25.2.3.1. Какие docstrings проверяются?](https://python-all.ru/3.2/library/doctest.html#which-docstrings-are-examined)1940        - [25.2.3.2. Как распознаются примеры в строках документации?](https://python-all.ru/3.2/library/doctest.html#how-are-docstring-examples-recognized)1941        - [25.2.3.3. Каков контекст выполнения?](https://python-all.ru/3.2/library/doctest.html#what-s-the-execution-context)1942        - [25.2.3.4. А что насчёт исключений?](https://python-all.ru/3.2/library/doctest.html#what-about-exceptions)1943        - [25.2.3.5. Флаги опций и директивы](https://python-all.ru/3.2/library/doctest.html#option-flags-and-directives)1944        - [25.2.3.6. Предупреждения](https://python-all.ru/3.2/library/doctest.html#warnings)1945      - [25.2.4. Базовый API](https://python-all.ru/3.2/library/doctest.html#basic-api)1946      - [25.2.5. Unittest API](https://python-all.ru/3.2/library/doctest.html#unittest-api)1947      - [25.2.6. Продвинутый API](https://python-all.ru/3.2/library/doctest.html#advanced-api)19481949        - [25.2.6.1. Объекты DocTest](https://python-all.ru/3.2/library/doctest.html#doctest-objects)1950        - [25.2.6.2. Объекты Example](https://python-all.ru/3.2/library/doctest.html#example-objects)1951        - [25.2.6.3. Объекты DocTestFinder](https://python-all.ru/3.2/library/doctest.html#doctestfinder-objects)1952        - [25.2.6.4. Объекты DocTestParser](https://python-all.ru/3.2/library/doctest.html#doctestparser-objects)1953        - [25.2.6.5. Объекты DocTestRunner](https://python-all.ru/3.2/library/doctest.html#doctestrunner-objects)1954        - [25.2.6.6. Объекты OutputChecker](https://python-all.ru/3.2/library/doctest.html#outputchecker-objects)1955      - [25.2.7. Отладка](https://python-all.ru/3.2/library/doctest.html#debugging)1956      - [25.2.8. Разное](https://python-all.ru/3.2/library/doctest.html#soapbox)1957    - [25.3. `unittest` – фреймворк для модульного тестирования](https://python-all.ru/3.2/library/unittest.html)19581959      - [25.3.1. Простой пример](https://python-all.ru/3.2/library/unittest.html#basic-example)1960      - [25.3.2. Интерфейс командной строки](https://python-all.ru/3.2/library/unittest.html#command-line-interface)19611962        - [25.3.2.1. Параметры командной строки](https://python-all.ru/3.2/library/unittest.html#command-line-options)1963      - [25.3.3. Обнаружение тестов](https://python-all.ru/3.2/library/unittest.html#test-discovery)1964      - [25.3.4. Организация тестового кода](https://python-all.ru/3.2/library/unittest.html#organizing-test-code)1965      - [25.3.5. Повторное использование старого тестового кода](https://python-all.ru/3.2/library/unittest.html#re-using-old-test-code)1966      - [25.3.6. Пропуск тестов и ожидаемые сбои](https://python-all.ru/3.2/library/unittest.html#skipping-tests-and-expected-failures)1967      - [25.3.7. Классы и функции](https://python-all.ru/3.2/library/unittest.html#classes-and-functions)19681969        - [25.3.7.1. Тестовые примеры](https://python-all.ru/3.2/library/unittest.html#test-cases)19701971          - [25.3.7.1.1. Устаревшие псевдонимы](https://python-all.ru/3.2/library/unittest.html#deprecated-aliases)1972        - [25.3.7.2. Группировка тестов](https://python-all.ru/3.2/library/unittest.html#grouping-tests)1973        - [25.3.7.3. Загрузка и запуск тестов](https://python-all.ru/3.2/library/unittest.html#loading-and-running-tests)19741975          - [25.3.7.3.1. Протокол load\_tests](https://python-all.ru/3.2/library/unittest.html#load-tests-protocol)1976      - [25.3.8. Фикстуры классов и модулей](https://python-all.ru/3.2/library/unittest.html#class-and-module-fixtures)19771978        - [25.3.8.1. setUpClass и tearDownClass](https://python-all.ru/3.2/library/unittest.html#setupclass-and-teardownclass)1979        - [25.3.8.2. setUpModule и tearDownModule](https://python-all.ru/3.2/library/unittest.html#setupmodule-and-teardownmodule)1980      - [25.3.9. Обработка сигналов](https://python-all.ru/3.2/library/unittest.html#signal-handling)1981    - [25.4. 2to3 – автоматическое преобразование кода Python 2 в 3](https://python-all.ru/3.2/library/2to3.html)19821983      - [25.4.1. Использование 2to3](https://python-all.ru/3.2/library/2to3.html#using-2to3)1984      - [25.4.2. Fixers](https://python-all.ru/3.2/library/2to3.html#fixers)1985      - [25.4.3. `lib2to3` – библиотека 2to3](https://python-all.ru/3.2/library/2to3.html#module-lib2to3)1986    - [25.5. `test` – пакет регрессионных тестов для Python](https://python-all.ru/3.2/library/test.html)19871988      - [25.5.1. Написание модульных тестов для пакета `test`](https://python-all.ru/3.2/library/test.html#writing-unit-tests-for-the-test-package)1989      - [25.5.2. Запуск тестов с помощью интерфейса командной строки](https://python-all.ru/3.2/library/test.html#running-tests-using-the-command-line-interface)1990    - [25.6. `test.support` – Утилиты для набора тестов Python](https://python-all.ru/3.2/library/test.html#module-test.support)1991  - [26. Отладка и профилирование](https://python-all.ru/3.2/library/debug.html)19921993    - [26.1. `bdb` – Каркас отладчика](https://python-all.ru/3.2/library/bdb.html)1994    - [26.2. `pdb` – Отладчик Python](https://python-all.ru/3.2/library/pdb.html)19951996      - [26.2.1. Команды отладчика](https://python-all.ru/3.2/library/pdb.html#debugger-commands)1997    - [26.3. Профилировщики Python](https://python-all.ru/3.2/library/profile.html)19981999      - [26.3.1. Введение в профилировщики](https://python-all.ru/3.2/library/profile.html#introduction-to-the-profilers)2000      - [26.3.2. Краткое руководство пользователя](https://python-all.ru/3.2/library/profile.html#instant-user-s-manual)2001      - [26.3.3. Что такое детерминированное профилирование?](https://python-all.ru/3.2/library/profile.html#what-is-deterministic-profiling)2002      - [26.3.4. Справочное руководство – `profile` и `cProfile`](https://python-all.ru/3.2/library/profile.html#module-cProfile)20032004        - [26.3.4.1. Класс `Stats`](https://python-all.ru/3.2/library/profile.html#the-stats-class)2005      - [26.3.5. Ограничения](https://python-all.ru/3.2/library/profile.html#limitations)2006      - [26.3.6. Калибровка](https://python-all.ru/3.2/library/profile.html#calibration)2007      - [26.3.7. Расширения – создание более совершенных профилировщиков](https://python-all.ru/3.2/library/profile.html#extensions-deriving-better-profilers)2008    - [26.4. `timeit` – Измерение времени выполнения небольших фрагментов кода](https://python-all.ru/3.2/library/timeit.html)20092010      - [26.4.1. Базовые примеры](https://python-all.ru/3.2/library/timeit.html#basic-examples)2011      - [26.4.2. Интерфейс Python](https://python-all.ru/3.2/library/timeit.html#python-interface)2012      - [26.4.3. Интерфейс командной строки](https://python-all.ru/3.2/library/timeit.html#command-line-interface)2013      - [26.4.4. Примеры](https://python-all.ru/3.2/library/timeit.html#examples)2014    - [26.5. `trace` – Трассировка или отслеживание выполнения инструкций Python](https://python-all.ru/3.2/library/trace.html)20152016      - [26.5.1. Использование командной строки](https://python-all.ru/3.2/library/trace.html#command-line-usage)20172018        - [26.5.1.1. Основные параметры](https://python-all.ru/3.2/library/trace.html#main-options)2019        - [26.5.1.2. Модификаторы](https://python-all.ru/3.2/library/trace.html#modifiers)2020        - [26.5.1.3. Фильтры](https://python-all.ru/3.2/library/trace.html#filters)2021      - [26.5.2. Программный интерфейс](https://python-all.ru/3.2/library/trace.html#programmatic-interface)2022  - [27. Службы времени выполнения Python](https://python-all.ru/3.2/library/python.html)20232024    - [27.1. `sys` – Системно-зависимые параметры и функции](https://python-all.ru/3.2/library/sys.html)2025    - [27.2. `sysconfig` – Предоставление доступа к конфигурационной информации Python](https://python-all.ru/3.2/library/sysconfig.html)20262027      - [27.2.1. Переменные конфигурации](https://python-all.ru/3.2/library/sysconfig.html#configuration-variables)2028      - [27.2.2. Пути установки](https://python-all.ru/3.2/library/sysconfig.html#installation-paths)2029      - [27.2.3. Другие функции](https://python-all.ru/3.2/library/sysconfig.html#other-functions)2030      - [27.2.4. Использование `sysconfig` в качестве скрипта](https://python-all.ru/3.2/library/sysconfig.html#using-sysconfig-as-a-script)2031    - [27.3. `builtins` – Встроенные объекты](https://python-all.ru/3.2/library/builtins.html)2032    - [27.4. `__main__` – Среда сценария верхнего уровня](https://python-all.ru/3.2/library/__main__.html)2033    - [27.5. `warnings` – Управление предупреждениями](https://python-all.ru/3.2/library/warnings.html)20342035      - [27.5.1. Категории предупреждений](https://python-all.ru/3.2/library/warnings.html#warning-categories)2036      - [27.5.2. Фильтр предупреждений](https://python-all.ru/3.2/library/warnings.html#the-warnings-filter)20372038        - [27.5.2.1. Фильтры предупреждений по умолчанию](https://python-all.ru/3.2/library/warnings.html#default-warning-filters)2039      - [27.5.3. Временное подавление предупреждений](https://python-all.ru/3.2/library/warnings.html#temporarily-suppressing-warnings)2040      - [27.5.4. Тестирование предупреждений](https://python-all.ru/3.2/library/warnings.html#testing-warnings)2041      - [27.5.5. Обновление кода для новых версий Python](https://python-all.ru/3.2/library/warnings.html#updating-code-for-new-versions-of-python)2042      - [27.5.6. Доступные функции](https://python-all.ru/3.2/library/warnings.html#available-functions)2043      - [27.5.7. Доступные контекстные менеджеры](https://python-all.ru/3.2/library/warnings.html#available-context-managers)2044    - [27.6. `contextlib` – Утилиты для контекстов оператора `with`](https://python-all.ru/3.2/library/contextlib.html)2045    - [27.7. `abc` – Абстрактные базовые классы](https://python-all.ru/3.2/library/abc.html)2046    - [27.8. `atexit` – Обработчики завершения](https://python-all.ru/3.2/library/atexit.html)20472048      - [27.8.1. Пример `atexit`](https://python-all.ru/3.2/library/atexit.html#atexit-example)2049    - [27.9. `traceback` – Печать или получение трассировки стека](https://python-all.ru/3.2/library/traceback.html)20502051      - [27.9.1. Примеры трассировки](https://python-all.ru/3.2/library/traceback.html#traceback-examples)2052    - [27.10. `__future__` – Определения оператора future](https://python-all.ru/3.2/library/__future__.html)2053    - [27.11. `gc` – Интерфейс сборщика мусора](https://python-all.ru/3.2/library/gc.html)2054    - [27.12. `inspect` – Инспекция живых объектов](https://python-all.ru/3.2/library/inspect.html)20552056      - [27.12.1. Типы и члены](https://python-all.ru/3.2/library/inspect.html#types-and-members)2057      - [27.12.2. Получение исходного кода](https://python-all.ru/3.2/library/inspect.html#retrieving-source-code)2058      - [27.12.3. Классы и функции](https://python-all.ru/3.2/library/inspect.html#classes-and-functions)2059      - [27.12.4. Стек интерпретатора](https://python-all.ru/3.2/library/inspect.html#the-interpreter-stack)2060      - [27.12.5. Статическое получение атрибутов](https://python-all.ru/3.2/library/inspect.html#fetching-attributes-statically)2061      - [27.12.6. Текущее состояние генератора](https://python-all.ru/3.2/library/inspect.html#current-state-of-a-generator)2062    - [27.13. `site` – Хук конфигурации для конкретного сайта](https://python-all.ru/3.2/library/site.html)2063    - [27.14. `fpectl` – Управление исключениями с плавающей запятой](https://python-all.ru/3.2/library/fpectl.html)20642065      - [27.14.1. Пример](https://python-all.ru/3.2/library/fpectl.html#example)2066      - [27.14.2. Ограничения и прочие соображения](https://python-all.ru/3.2/library/fpectl.html#limitations-and-other-considerations)2067    - [27.15. `distutils` – Сборка и установка модулей Python](https://python-all.ru/3.2/library/distutils.html)2068  - [28. Пользовательские интерпретаторы Python](https://python-all.ru/3.2/library/custominterp.html)20692070    - [28.1. `code` – Базовые классы интерпретатора](https://python-all.ru/3.2/library/code.html)20712072      - [28.1.1. Объекты интерактивного интерпретатора](https://python-all.ru/3.2/library/code.html#interactive-interpreter-objects)2073      - [28.1.2. Объекты интерактивной консоли](https://python-all.ru/3.2/library/code.html#interactive-console-objects)2074    - [28.2. `codeop` – Компиляция кода Python](https://python-all.ru/3.2/library/codeop.html)2075  - [29. Импорт модулей](https://python-all.ru/3.2/library/modules.html)20762077    - [29.1. `imp` – Доступ к внутренним механизмам `import`](https://python-all.ru/3.2/library/imp.html)20782079      - [29.1.1. Примеры](https://python-all.ru/3.2/library/imp.html#examples)2080    - [29.2. `zipimport` – Импорт модулей из Zip-архивов](https://python-all.ru/3.2/library/zipimport.html)20812082      - [29.2.1. Объекты zipimporter](https://python-all.ru/3.2/library/zipimport.html#zipimporter-objects)2083      - [29.2.2. Примеры](https://python-all.ru/3.2/library/zipimport.html#examples)2084    - [29.3. `pkgutil` – Утилита расширения пакетов](https://python-all.ru/3.2/library/pkgutil.html)2085    - [29.4. `modulefinder` – Поиск модулей, используемых сценарием](https://python-all.ru/3.2/library/modulefinder.html)20862087      - [29.4.1. Пример использования `ModuleFinder`](https://python-all.ru/3.2/library/modulefinder.html#example-usage-of-modulefinder)2088    - [29.5. `runpy` – Поиск и выполнение модулей Python](https://python-all.ru/3.2/library/runpy.html)2089    - [29.6. `importlib` – Реализация `import`](https://python-all.ru/3.2/library/importlib.html)20902091      - [29.6.1. Введение](https://python-all.ru/3.2/library/importlib.html#introduction)2092      - [29.6.2. Функции](https://python-all.ru/3.2/library/importlib.html#functions)2093      - [29.6.3. `importlib.abc` – Абстрактные базовые классы, связанные с импортом](https://python-all.ru/3.2/library/importlib.html#module-importlib.abc)2094      - [29.6.4. `importlib.machinery` – Импортеры и перехватчики путей](https://python-all.ru/3.2/library/importlib.html#module-importlib.machinery)2095      - [29.6.5. `importlib.util` – Вспомогательный код для импортеров](https://python-all.ru/3.2/library/importlib.html#module-importlib.util)2096  - [30. Службы языка Python](https://python-all.ru/3.2/library/language.html)20972098    - [30.1. `parser` – Доступ к деревьям разбора Python](https://python-all.ru/3.2/library/parser.html)20992100      - [30.1.1. Создание ST-объектов](https://python-all.ru/3.2/library/parser.html#creating-st-objects)2101      - [30.1.2. Преобразование ST-объектов](https://python-all.ru/3.2/library/parser.html#converting-st-objects)2102      - [30.1.3. Запросы к ST-объектам](https://python-all.ru/3.2/library/parser.html#queries-on-st-objects)2103      - [30.1.4. Исключения и обработка ошибок](https://python-all.ru/3.2/library/parser.html#exceptions-and-error-handling)2104      - [30.1.5. ST-объекты](https://python-all.ru/3.2/library/parser.html#st-objects)2105      - [30.1.6. Пример: Эмуляция `compile()`](https://python-all.ru/3.2/library/parser.html#example-emulation-of-compile)2106    - [30.2. `ast` – Абстрактные синтаксические деревья](https://python-all.ru/3.2/library/ast.html)21072108      - [30.2.1. Классы узлов](https://python-all.ru/3.2/library/ast.html#node-classes)2109      - [30.2.2. Абстрактная грамматика](https://python-all.ru/3.2/library/ast.html#abstract-grammar)2110      - [30.2.3. Вспомогательные функции `ast`](https://python-all.ru/3.2/library/ast.html#ast-helpers)2111    - [30.3. `symtable` – Доступ к таблицам символов компилятора](https://python-all.ru/3.2/library/symtable.html)21122113      - [30.3.1. Генерация таблиц символов](https://python-all.ru/3.2/library/symtable.html#generating-symbol-tables)2114      - [30.3.2. Изучение таблиц символов](https://python-all.ru/3.2/library/symtable.html#examining-symbol-tables)2115    - [30.4. `symbol` – Константы, используемые с деревьями разбора Python](https://python-all.ru/3.2/library/symbol.html)2116    - [30.5. `token` – Константы, используемые с деревьями разбора Python](https://python-all.ru/3.2/library/token.html)2117    - [30.6. `keyword` – Проверка ключевых слов Python](https://python-all.ru/3.2/library/keyword.html)2118    - [30.7. `tokenize` – Токенизатор исходного кода Python](https://python-all.ru/3.2/library/tokenize.html)2119    - [30.8. `tabnanny` – Выявление неоднозначных отступов](https://python-all.ru/3.2/library/tabnanny.html)2120    - [30.9. `pyclbr` – Поддержка обозревателя классов Python](https://python-all.ru/3.2/library/pyclbr.html)21212122      - [30.9.1. Объекты классов](https://python-all.ru/3.2/library/pyclbr.html#class-objects)2123      - [30.9.2. Объекты функций](https://python-all.ru/3.2/library/pyclbr.html#function-objects)2124    - [30.10. `py_compile` – Компиляция исходных файлов Python](https://python-all.ru/3.2/library/py_compile.html)2125    - [30.11. `compileall` – Байт-компиляция библиотек Python](https://python-all.ru/3.2/library/compileall.html)21262127      - [30.11.1. Использование из командной строки](https://python-all.ru/3.2/library/compileall.html#command-line-use)2128      - [30.11.2. Публичные функции](https://python-all.ru/3.2/library/compileall.html#public-functions)2129    - [30.12. `dis` – Дизассемблер байт-кода Python](https://python-all.ru/3.2/library/dis.html)21302131      - [30.12.1. Инструкции байт-кода Python](https://python-all.ru/3.2/library/dis.html#python-bytecode-instructions)2132    - [30.13. `pickletools` – Инструменты для разработчиков pickle](https://python-all.ru/3.2/library/pickletools.html)21332134      - [30.13.1. Использование из командной строки](https://python-all.ru/3.2/library/pickletools.html#command-line-usage)21352136        - [30.13.1.1. Параметры командной строки](https://python-all.ru/3.2/library/pickletools.html#command-line-options)2137      - [30.13.2. Программный интерфейс](https://python-all.ru/3.2/library/pickletools.html#programmatic-interface)2138  - [31. Разные служебные модули](https://python-all.ru/3.2/library/misc.html)21392140    - [31.1. `formatter` – Универсальное форматирование вывода](https://python-all.ru/3.2/library/formatter.html)21412142      - [31.1.1. The Formatter Interface](https://python-all.ru/3.2/library/formatter.html#the-formatter-interface)2143      - [31.1.2. Formatter Implementations](https://python-all.ru/3.2/library/formatter.html#formatter-implementations)2144      - [31.1.3. The Writer Interface](https://python-all.ru/3.2/library/formatter.html#the-writer-interface)2145      - [31.1.4. Writer Implementations](https://python-all.ru/3.2/library/formatter.html#writer-implementations)2146  - [32. Службы, специфичные для MS Windows](https://python-all.ru/3.2/library/windows.html)21472148    - [32.1. `msilib` – Чтение и запись файлов Microsoft Installer](https://python-all.ru/3.2/library/msilib.html)21492150      - [32.1.1. Объекты баз данных](https://python-all.ru/3.2/library/msilib.html#database-objects)2151      - [32.1.2. Объекты представлений](https://python-all.ru/3.2/library/msilib.html#view-objects)2152      - [32.1.3. Объекты сводной информации](https://python-all.ru/3.2/library/msilib.html#summary-information-objects)2153      - [32.1.4. Объекты записей](https://python-all.ru/3.2/library/msilib.html#record-objects)2154      - [32.1.5. Ошибки](https://python-all.ru/3.2/library/msilib.html#errors)2155      - [32.1.6. Объекты CAB](https://python-all.ru/3.2/library/msilib.html#cab-objects)2156      - [32.1.7. Объекты каталогов](https://python-all.ru/3.2/library/msilib.html#directory-objects)2157      - [32.1.8. Возможности](https://python-all.ru/3.2/library/msilib.html#features)2158      - [32.1.9. Классы GUI](https://python-all.ru/3.2/library/msilib.html#gui-classes)2159      - [32.1.10. Предвычисленные таблицы](https://python-all.ru/3.2/library/msilib.html#precomputed-tables)2160    - [32.2. `msvcrt` – Полезные процедуры из среды выполнения MS VC++](https://python-all.ru/3.2/library/msvcrt.html)21612162      - [32.2.1. Операции с файлами](https://python-all.ru/3.2/library/msvcrt.html#file-operations)2163      - [32.2.2. Ввод-вывод консоли](https://python-all.ru/3.2/library/msvcrt.html#console-i-o)2164      - [32.2.3. Другие функции](https://python-all.ru/3.2/library/msvcrt.html#other-functions)2165    - [32.3. `winreg` – Доступ к реестру Windows](https://python-all.ru/3.2/library/winreg.html)21662167      - [32.3.1. Константы](https://python-all.ru/3.2/library/winreg.html#constants)21682169        - [32.3.1.1. Константы HKEY\_\*](https://python-all.ru/3.2/library/winreg.html#hkey-constants)2170        - [32.3.1.2. Права доступа](https://python-all.ru/3.2/library/winreg.html#access-rights)21712172          - [32.3.1.2.1. Специфичное для 64-бит](https://python-all.ru/3.2/library/winreg.html#bit-specific)2173        - [32.3.1.3. Типы значений](https://python-all.ru/3.2/library/winreg.html#value-types)2174      - [32.3.2. Объекты дескрипторов реестра](https://python-all.ru/3.2/library/winreg.html#registry-handle-objects)2175    - [32.4. `winsound` – Интерфейс воспроизведения звука для Windows](https://python-all.ru/3.2/library/winsound.html)2176  - [33. Специфичные для Unix службы](https://python-all.ru/3.2/library/unix.html)21772178    - [33.1. `posix` – Наиболее распространённые системные вызовы POSIX](https://python-all.ru/3.2/library/posix.html)21792180      - [33.1.1. Поддержка больших файлов](https://python-all.ru/3.2/library/posix.html#large-file-support)2181      - [33.1.2. Примечательное содержимое модуля](https://python-all.ru/3.2/library/posix.html#notable-module-contents)2182    - [33.2. `pwd` – База данных паролей](https://python-all.ru/3.2/library/pwd.html)2183    - [33.3. `spwd` – База данных теневых паролей](https://python-all.ru/3.2/library/spwd.html)2184    - [33.4. `grp` – База данных групп](https://python-all.ru/3.2/library/grp.html)2185    - [33.5. `crypt` – Функция проверки паролей Unix](https://python-all.ru/3.2/library/crypt.html)2186    - [33.6. `termios` – Управление tty в стиле POSIX](https://python-all.ru/3.2/library/termios.html)21872188      - [33.6.1. Пример](https://python-all.ru/3.2/library/termios.html#example)2189    - [33.7. `tty` – Функции управления терминалом](https://python-all.ru/3.2/library/tty.html)2190    - [33.8. `pty` – Утилиты псевдотерминала](https://python-all.ru/3.2/library/pty.html)21912192      - [33.8.1. Пример](https://python-all.ru/3.2/library/pty.html#example)2193    - [33.9. `fcntl` – Системные вызовы `fcntl()` и `ioctl()`](https://python-all.ru/3.2/library/fcntl.html)2194    - [33.10. `pipes` – Интерфейс для конвейеров оболочки](https://python-all.ru/3.2/library/pipes.html)21952196      - [33.10.1. Шаблонные объекты](https://python-all.ru/3.2/library/pipes.html#template-objects)2197    - [33.11. `resource` – Информация об использовании ресурсов](https://python-all.ru/3.2/library/resource.html)21982199      - [33.11.1. Лимиты ресурсов](https://python-all.ru/3.2/library/resource.html#resource-limits)2200      - [33.11.2. Использование ресурсов](https://python-all.ru/3.2/library/resource.html#resource-usage)2201    - [33.12. `nis` – Интерфейс к NIS (Yellow Pages) Sun](https://python-all.ru/3.2/library/nis.html)2202    - [33.13. `syslog` – Библиотечные функции syslog в Unix](https://python-all.ru/3.2/library/syslog.html)22032204      - [33.13.1. Примеры](https://python-all.ru/3.2/library/syslog.html#examples)22052206        - [33.13.1.1. Простой пример](https://python-all.ru/3.2/library/syslog.html#simple-example)2207  - [34. Незадокументированные модули](https://python-all.ru/3.2/library/undoc.html)22082209    - [34.1. Платформозависимые модули](https://python-all.ru/3.2/library/undoc.html#platform-specific-modules)2210- [Расширение и встраивание интерпретатора Python](https://python-all.ru/3.2/extending/index.html)22112212  - [1. Расширение Python с помощью C или C++](https://python-all.ru/3.2/extending/extending.html)22132214    - [1.1. Простой пример](https://python-all.ru/3.2/extending/extending.html#a-simple-example)2215    - [1.2. Интермеццо: ошибки и исключения](https://python-all.ru/3.2/extending/extending.html#intermezzo-errors-and-exceptions)2216    - [1.3. Возвращение к примеру](https://python-all.ru/3.2/extending/extending.html#back-to-the-example)2217    - [1.4. Таблица методов модуля и функция инициализации](https://python-all.ru/3.2/extending/extending.html#the-module-s-method-table-and-initialization-function)2218    - [1.5. Компиляция и компоновка](https://python-all.ru/3.2/extending/extending.html#compilation-and-linkage)2219    - [1.6. Вызов функций Python из C](https://python-all.ru/3.2/extending/extending.html#calling-python-functions-from-c)2220    - [1.7. Извлечение параметров в функциях расширения](https://python-all.ru/3.2/extending/extending.html#extracting-parameters-in-extension-functions)2221    - [1.8. Именованные параметры для функций расширения](https://python-all.ru/3.2/extending/extending.html#keyword-parameters-for-extension-functions)2222    - [1.9. Построение произвольных значений](https://python-all.ru/3.2/extending/extending.html#building-arbitrary-values)2223    - [1.10. Счетчики ссылок](https://python-all.ru/3.2/extending/extending.html#reference-counts)22242225      - [1.10.1. Подсчёт ссылок в Python](https://python-all.ru/3.2/extending/extending.html#reference-counting-in-python)2226      - [1.10.2. Правила владения](https://python-all.ru/3.2/extending/extending.html#ownership-rules)2227      - [1.10.3. Тонкий лёд](https://python-all.ru/3.2/extending/extending.html#thin-ice)2228      - [1.10.4. Указатели NULL](https://python-all.ru/3.2/extending/extending.html#null-pointers)2229    - [1.11. Написание расширений на C++](https://python-all.ru/3.2/extending/extending.html#writing-extensions-in-c)2230    - [1.12. Предоставление C API для модуля расширения](https://python-all.ru/3.2/extending/extending.html#providing-a-c-api-for-an-extension-module)2231  - [2. Определение новых типов](https://python-all.ru/3.2/extending/newtypes.html)22322233    - [2.1. Основы](https://python-all.ru/3.2/extending/newtypes.html#the-basics)22342235      - [2.1.1. Добавление данных и методов в базовый пример](https://python-all.ru/3.2/extending/newtypes.html#adding-data-and-methods-to-the-basic-example)2236      - [2.1.2. Обеспечение более тонкого контроля над атрибутами данных](https://python-all.ru/3.2/extending/newtypes.html#providing-finer-control-over-data-attributes)2237      - [2.1.3. Поддержка циклической сборки мусора](https://python-all.ru/3.2/extending/newtypes.html#supporting-cyclic-garbage-collection)2238      - [2.1.4. Наследование от других типов](https://python-all.ru/3.2/extending/newtypes.html#subclassing-other-types)2239    - [2.2. Методы типов](https://python-all.ru/3.2/extending/newtypes.html#type-methods)22402241      - [2.2.1. Финализация и освобождение памяти](https://python-all.ru/3.2/extending/newtypes.html#finalization-and-de-allocation)2242      - [2.2.2. Представление объекта](https://python-all.ru/3.2/extending/newtypes.html#object-presentation)2243      - [2.2.3. Управление атрибутами](https://python-all.ru/3.2/extending/newtypes.html#attribute-management)22442245        - [2.2.3.1. Общее управление атрибутами](https://python-all.ru/3.2/extending/newtypes.html#generic-attribute-management)2246        - [2.2.3.2. Управление атрибутами, специфичными для типа](https://python-all.ru/3.2/extending/newtypes.html#type-specific-attribute-management)2247      - [2.2.4. Сравнение объектов](https://python-all.ru/3.2/extending/newtypes.html#object-comparison)2248      - [2.2.5. Поддержка абстрактных протоколов](https://python-all.ru/3.2/extending/newtypes.html#abstract-protocol-support)2249      - [2.2.6. Поддержка слабых ссылок](https://python-all.ru/3.2/extending/newtypes.html#weak-reference-support)2250      - [2.2.7. Дополнительные рекомендации](https://python-all.ru/3.2/extending/newtypes.html#more-suggestions)2251  - [3. Сборка расширений на C и C++ с помощью distutils](https://python-all.ru/3.2/extending/building.html)22522253    - [3.1. Распространение модулей расширения](https://python-all.ru/3.2/extending/building.html#distributing-your-extension-modules)2254  - [4. Сборка расширений C и C++ в Windows](https://python-all.ru/3.2/extending/windows.html)22552256    - [4.1. Подход «Кулинарная книга»](https://python-all.ru/3.2/extending/windows.html#a-cookbook-approach)2257    - [4.2. Различия между Unix и Windows](https://python-all.ru/3.2/extending/windows.html#differences-between-unix-and-windows)2258    - [4.3. Использование DLL на практике](https://python-all.ru/3.2/extending/windows.html#using-dlls-in-practice)2259  - [5. Встраивание Python в другое приложение](https://python-all.ru/3.2/extending/embedding.html)22602261    - [5.1. Встраивание на очень высоком уровне](https://python-all.ru/3.2/extending/embedding.html#very-high-level-embedding)2262    - [5.2. За пределами встраивания на очень высоком уровне: обзор](https://python-all.ru/3.2/extending/embedding.html#beyond-very-high-level-embedding-an-overview)2263    - [5.3. Чистое встраивание](https://python-all.ru/3.2/extending/embedding.html#pure-embedding)2264    - [5.4. Расширение встроенного Python](https://python-all.ru/3.2/extending/embedding.html#extending-embedded-python)2265    - [5.5. Встраивание Python в C++](https://python-all.ru/3.2/extending/embedding.html#embedding-python-in-c)2266    - [5.6. Компиляция и компоновка в системах семейства Unix](https://python-all.ru/3.2/extending/embedding.html#compiling-and-linking-under-unix-like-systems)2267- [Справочное руководство по Python/C API](https://python-all.ru/3.2/c-api/index.html)22682269  - [Введение](https://python-all.ru/3.2/c-api/intro.html)22702271    - [Заголовочные файлы](https://python-all.ru/3.2/c-api/intro.html#include-files)2272    - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.2/c-api/intro.html#objects-types-and-reference-counts)22732274      - [Счётчики ссылок](https://python-all.ru/3.2/c-api/intro.html#reference-counts)22752276        - [Подробности подсчёта ссылок](https://python-all.ru/3.2/c-api/intro.html#reference-count-details)2277      - [Типы](https://python-all.ru/3.2/c-api/intro.html#types)2278    - [Исключения](https://python-all.ru/3.2/c-api/intro.html#exceptions)2279    - [Встраивание Python](https://python-all.ru/3.2/c-api/intro.html#embedding-python)2280    - [Отладочные сборки](https://python-all.ru/3.2/c-api/intro.html#debugging-builds)2281  - [Очень высокоуровневый слой](https://python-all.ru/3.2/c-api/veryhigh.html)2282  - [Подсчёт ссылок](https://python-all.ru/3.2/c-api/refcounting.html)2283  - [Обработка исключений](https://python-all.ru/3.2/c-api/exceptions.html)22842285    - [Объекты исключений](https://python-all.ru/3.2/c-api/exceptions.html#exception-objects)2286    - [Объекты исключений Unicode](https://python-all.ru/3.2/c-api/exceptions.html#unicode-exception-objects)2287    - [Управление рекурсией](https://python-all.ru/3.2/c-api/exceptions.html#recursion-control)2288    - [Стандартные исключения](https://python-all.ru/3.2/c-api/exceptions.html#standard-exceptions)2289  - [Утилиты](https://python-all.ru/3.2/c-api/utilities.html)22902291    - [Утилиты операционной системы](https://python-all.ru/3.2/c-api/sys.html)2292    - [Системные функции](https://python-all.ru/3.2/c-api/sys.html#system-functions)2293    - [Управление процессами](https://python-all.ru/3.2/c-api/sys.html#process-control)2294    - [Импорт модулей](https://python-all.ru/3.2/c-api/import.html)2295    - [Поддержка маршалинга данных](https://python-all.ru/3.2/c-api/marshal.html)2296    - [Разбор аргументов и сборка значений](https://python-all.ru/3.2/c-api/arg.html)22972298      - [Разбор аргументов](https://python-all.ru/3.2/c-api/arg.html#parsing-arguments)22992300        - [Строки и буферы](https://python-all.ru/3.2/c-api/arg.html#strings-and-buffers)2301        - [Числа](https://python-all.ru/3.2/c-api/arg.html#numbers)2302        - [Другие объекты](https://python-all.ru/3.2/c-api/arg.html#other-objects)2303        - [Функции API](https://python-all.ru/3.2/c-api/arg.html#api-functions)2304      - [Сборка значений](https://python-all.ru/3.2/c-api/arg.html#building-values)2305    - [Преобразование и форматирование строк](https://python-all.ru/3.2/c-api/conversion.html)2306    - [Рефлексия](https://python-all.ru/3.2/c-api/reflection.html)2307    - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.2/c-api/codec.html)23082309      - [API поиска кодировок](https://python-all.ru/3.2/c-api/codec.html#codec-lookup-api)2310      - [API реестра обработчиков ошибок кодирования Unicode](https://python-all.ru/3.2/c-api/codec.html#registry-api-for-unicode-encoding-error-handlers)2311  - [Слой абстрактных объектов](https://python-all.ru/3.2/c-api/abstract.html)23122313    - [Протокол объекта](https://python-all.ru/3.2/c-api/object.html)2314    - [Протокол чисел](https://python-all.ru/3.2/c-api/number.html)2315    - [Протокол последовательностей](https://python-all.ru/3.2/c-api/sequence.html)2316    - [Протокол отображений](https://python-all.ru/3.2/c-api/mapping.html)2317    - [Протокол итератора](https://python-all.ru/3.2/c-api/iter.html)2318    - [Протокол буфера](https://python-all.ru/3.2/c-api/buffer.html)23192320      - [Структура буфера](https://python-all.ru/3.2/c-api/buffer.html#the-buffer-structure)2321      - [Функции, связанные с буферами](https://python-all.ru/3.2/c-api/buffer.html#buffer-related-functions)2322    - [Старый буферный протокол](https://python-all.ru/3.2/c-api/objbuffer.html)2323  - [Слой конкретных объектов](https://python-all.ru/3.2/c-api/concrete.html)23242325    - [Базовые объекты](https://python-all.ru/3.2/c-api/concrete.html#fundamental-objects)23262327      - [Объекты типов](https://python-all.ru/3.2/c-api/type.html)2328      - [Объект None](https://python-all.ru/3.2/c-api/none.html)2329    - [Числовые объекты](https://python-all.ru/3.2/c-api/concrete.html#numeric-objects)23302331      - [Объекты целых чисел](https://python-all.ru/3.2/c-api/long.html)2332      - [Объекты логических значений](https://python-all.ru/3.2/c-api/bool.html)2333      - [Объекты чисел с плавающей запятой](https://python-all.ru/3.2/c-api/float.html)2334      - [Объекты комплексных чисел](https://python-all.ru/3.2/c-api/complex.html)23352336        - [Комплексные числа как структуры C](https://python-all.ru/3.2/c-api/complex.html#complex-numbers-as-c-structures)2337        - [Комплексные числа как объекты Python](https://python-all.ru/3.2/c-api/complex.html#complex-numbers-as-python-objects)2338    - [Объекты последовательностей](https://python-all.ru/3.2/c-api/concrete.html#sequence-objects)23392340      - [Объекты bytes](https://python-all.ru/3.2/c-api/bytes.html)2341      - [Объекты массива байтов](https://python-all.ru/3.2/c-api/bytearray.html)23422343        - [Макросы проверки типа](https://python-all.ru/3.2/c-api/bytearray.html#type-check-macros)2344        - [Функции прямого API](https://python-all.ru/3.2/c-api/bytearray.html#direct-api-functions)2345        - [Макросы](https://python-all.ru/3.2/c-api/bytearray.html#macros)2346      - [Объекты Unicode и кодеки](https://python-all.ru/3.2/c-api/unicode.html)23472348        - [Объекты Unicode](https://python-all.ru/3.2/c-api/unicode.html#unicode-objects)23492350          - [Тип Юникода](https://python-all.ru/3.2/c-api/unicode.html#unicode-type)2351          - [Свойства символов Юникода](https://python-all.ru/3.2/c-api/unicode.html#unicode-character-properties)2352          - [Простой Py\_UNICODE](https://python-all.ru/3.2/c-api/unicode.html#plain-py-unicode)2353          - [Кодировка файловой системы](https://python-all.ru/3.2/c-api/unicode.html#file-system-encoding)2354          - [Поддержка wchar\_t](https://python-all.ru/3.2/c-api/unicode.html#wchar-t-support)2355        - [Встроенные кодеки](https://python-all.ru/3.2/c-api/unicode.html#built-in-codecs)23562357          - [Общие кодеки](https://python-all.ru/3.2/c-api/unicode.html#generic-codecs)2358          - [Кодеки UTF-8](https://python-all.ru/3.2/c-api/unicode.html#utf-8-codecs)2359          - [Кодеки UTF-32](https://python-all.ru/3.2/c-api/unicode.html#utf-32-codecs)2360          - [Кодеки UTF-16](https://python-all.ru/3.2/c-api/unicode.html#utf-16-codecs)2361          - [Кодеки UTF-7](https://python-all.ru/3.2/c-api/unicode.html#utf-7-codecs)2362          - [Кодеки Unicode-Escape](https://python-all.ru/3.2/c-api/unicode.html#unicode-escape-codecs)2363          - [Кодеки Raw-Unicode-Escape](https://python-all.ru/3.2/c-api/unicode.html#raw-unicode-escape-codecs)2364          - [Кодеки Latin-1](https://python-all.ru/3.2/c-api/unicode.html#latin-1-codecs)2365          - [Кодеки ASCII](https://python-all.ru/3.2/c-api/unicode.html#ascii-codecs)2366          - [Кодеки символьной карты](https://python-all.ru/3.2/c-api/unicode.html#character-map-codecs)2367          - [Кодеки MBCS для Windows](https://python-all.ru/3.2/c-api/unicode.html#mbcs-codecs-for-windows)2368          - [Методы и слоты](https://python-all.ru/3.2/c-api/unicode.html#methods-slots)2369        - [Методы и слот-функции](https://python-all.ru/3.2/c-api/unicode.html#methods-and-slot-functions)2370      - [Кортежи](https://python-all.ru/3.2/c-api/tuple.html)2371      - [Списки](https://python-all.ru/3.2/c-api/list.html)2372    - [Объекты-отображения](https://python-all.ru/3.2/c-api/concrete.html#mapping-objects)23732374      - [Объекты словарей](https://python-all.ru/3.2/c-api/dict.html)2375    - [Прочие объекты](https://python-all.ru/3.2/c-api/concrete.html#other-objects)23762377      - [Множества](https://python-all.ru/3.2/c-api/set.html)2378      - [Объекты функций](https://python-all.ru/3.2/c-api/function.html)2379      - [Объекты методов экземпляра](https://python-all.ru/3.2/c-api/method.html)2380      - [Объекты методов](https://python-all.ru/3.2/c-api/method.html#method-objects)2381      - [Объекты файлов](https://python-all.ru/3.2/c-api/file.html)2382      - [Объекты модулей](https://python-all.ru/3.2/c-api/module.html)23832384        - [Инициализация C-модулей](https://python-all.ru/3.2/c-api/module.html#initializing-c-modules)2385      - [Объекты итераторов](https://python-all.ru/3.2/c-api/iterator.html)2386      - [Объекты дескрипторов](https://python-all.ru/3.2/c-api/descriptor.html)2387      - [Объекты срезов](https://python-all.ru/3.2/c-api/slice.html)2388      - [Объекты memoryview](https://python-all.ru/3.2/c-api/memoryview.html)2389      - [Объекты слабых ссылок](https://python-all.ru/3.2/c-api/weakref.html)2390      - [Капсулы](https://python-all.ru/3.2/c-api/capsule.html)2391      - [Объекты ячеек](https://python-all.ru/3.2/c-api/cell.html)2392      - [Объекты-генераторы](https://python-all.ru/3.2/c-api/gen.html)2393      - [Объекты datetime](https://python-all.ru/3.2/c-api/datetime.html)2394      - [Объекты кода](https://python-all.ru/3.2/c-api/code.html)2395  - [Инициализация, финализация и потоки](https://python-all.ru/3.2/c-api/init.html)23962397    - [Инициализация и финализация интерпретатора](https://python-all.ru/3.2/c-api/init.html#initializing-and-finalizing-the-interpreter)2398    - [Параметры уровня процесса](https://python-all.ru/3.2/c-api/init.html#process-wide-parameters)2399    - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.2/c-api/init.html#thread-state-and-the-global-interpreter-lock)24002401      - [Освобождение GIL из кода расширения](https://python-all.ru/3.2/c-api/init.html#releasing-the-gil-from-extension-code)2402      - [Потоки, созданные не в Python](https://python-all.ru/3.2/c-api/init.html#non-python-created-threads)2403      - [Высокоуровневый API](https://python-all.ru/3.2/c-api/init.html#high-level-api)2404      - [Низкоуровневый API](https://python-all.ru/3.2/c-api/init.html#low-level-api)2405    - [Поддержка под-интерпретаторов](https://python-all.ru/3.2/c-api/init.html#sub-interpreter-support)24062407      - [Ошибки и предостережения](https://python-all.ru/3.2/c-api/init.html#bugs-and-caveats)2408    - [Асинхронные уведомления](https://python-all.ru/3.2/c-api/init.html#asynchronous-notifications)2409    - [Профилирование и трассировка](https://python-all.ru/3.2/c-api/init.html#profiling-and-tracing)2410    - [Расширенная поддержка отладчика](https://python-all.ru/3.2/c-api/init.html#advanced-debugger-support)2411  - [Управление памятью](https://python-all.ru/3.2/c-api/memory.html)24122413    - [Обзор](https://python-all.ru/3.2/c-api/memory.html#overview)2414    - [Интерфейс памяти](https://python-all.ru/3.2/c-api/memory.html#memory-interface)2415    - [Примеры](https://python-all.ru/3.2/c-api/memory.html#examples)2416  - [Поддержка реализации объектов](https://python-all.ru/3.2/c-api/objimpl.html)24172418    - [Выделение объектов в куче](https://python-all.ru/3.2/c-api/allocation.html)2419    - [Общие структуры объектов](https://python-all.ru/3.2/c-api/structures.html)2420    - [Объекты типов](https://python-all.ru/3.2/c-api/typeobj.html)2421    - [Структуры числовых объектов](https://python-all.ru/3.2/c-api/typeobj.html#number-object-structures)2422    - [Структуры объектов отображений](https://python-all.ru/3.2/c-api/typeobj.html#mapping-object-structures)2423    - [Структуры объектов последовательностей](https://python-all.ru/3.2/c-api/typeobj.html#sequence-object-structures)2424    - [Структуры буферных объектов](https://python-all.ru/3.2/c-api/typeobj.html#buffer-object-structures)2425    - [Поддержка циклической сборки мусора](https://python-all.ru/3.2/c-api/gcsupport.html)2426- [Распространение модулей Python](https://python-all.ru/3.2/distutils/index.html)24272428  - [1. Введение в Distutils](https://python-all.ru/3.2/distutils/introduction.html)24292430    - [1.1. Понятия и терминология](https://python-all.ru/3.2/distutils/introduction.html#concepts-terminology)2431    - [1.2. Простой пример](https://python-all.ru/3.2/distutils/introduction.html#a-simple-example)2432    - [1.3. Общая терминология Python](https://python-all.ru/3.2/distutils/introduction.html#general-python-terminology)2433    - [1.4. Терминология Distutils](https://python-all.ru/3.2/distutils/introduction.html#distutils-specific-terminology)2434  - [2. Написание скрипта установки](https://python-all.ru/3.2/distutils/setupscript.html)24352436    - [2.1. Перечисление целых пакетов](https://python-all.ru/3.2/distutils/setupscript.html#listing-whole-packages)2437    - [2.2. Перечисление отдельных модулей](https://python-all.ru/3.2/distutils/setupscript.html#listing-individual-modules)2438    - [2.3. Описание модулей расширения](https://python-all.ru/3.2/distutils/setupscript.html#describing-extension-modules)24392440      - [2.3.1. Имена расширений и пакеты](https://python-all.ru/3.2/distutils/setupscript.html#extension-names-and-packages)2441      - [2.3.2. Исходные файлы расширений](https://python-all.ru/3.2/distutils/setupscript.html#extension-source-files)2442      - [2.3.3. Опции препроцессора](https://python-all.ru/3.2/distutils/setupscript.html#preprocessor-options)2443      - [2.3.4. Опции библиотек](https://python-all.ru/3.2/distutils/setupscript.html#library-options)2444      - [2.3.5. Другие опции](https://python-all.ru/3.2/distutils/setupscript.html#other-options)2445    - [2.4. Связи между дистрибутивами и пакетами](https://python-all.ru/3.2/distutils/setupscript.html#relationships-between-distributions-and-packages)2446    - [2.5. Установка скриптов](https://python-all.ru/3.2/distutils/setupscript.html#installing-scripts)2447    - [2.6. Установка данных пакета](https://python-all.ru/3.2/distutils/setupscript.html#installing-package-data)2448    - [2.7. Установка дополнительных файлов](https://python-all.ru/3.2/distutils/setupscript.html#installing-additional-files)2449    - [2.8. Дополнительные метаданные](https://python-all.ru/3.2/distutils/setupscript.html#additional-meta-data)2450    - [2.9. Отладка скрипта установки](https://python-all.ru/3.2/distutils/setupscript.html#debugging-the-setup-script)2451  - [3. Написание файла конфигурации установки](https://python-all.ru/3.2/distutils/configfile.html)2452  - [4. Создание исходного дистрибутива](https://python-all.ru/3.2/distutils/sourcedist.html)24532454    - [4.1. Указание файлов для распространения](https://python-all.ru/3.2/distutils/sourcedist.html#specifying-the-files-to-distribute)2455    - [4.2. Опции, связанные с манифестом](https://python-all.ru/3.2/distutils/sourcedist.html#manifest-related-options)2456  - [5. Создание готовых дистрибутивов](https://python-all.ru/3.2/distutils/builtdist.html)24572458    - [5.1. Создание RPM-пакетов](https://python-all.ru/3.2/distutils/builtdist.html#creating-rpm-packages)2459    - [5.2. Создание установщиков для Windows](https://python-all.ru/3.2/distutils/builtdist.html#creating-windows-installers)2460    - [5.3. Кросс-компиляция на Windows](https://python-all.ru/3.2/distutils/builtdist.html#cross-compiling-on-windows)24612462      - [5.3.1. Постустановочный скрипт](https://python-all.ru/3.2/distutils/builtdist.html#the-postinstallation-script)2463    - [5.4. Контроль учётных записей (UAC) в Vista](https://python-all.ru/3.2/distutils/builtdist.html#vista-user-access-control-uac)2464  - [6. Индекс пакетов Python (PyPI)](https://python-all.ru/3.2/distutils/packageindex.html)24652466    - [6.1. Регистрация пакетов](https://python-all.ru/3.2/distutils/packageindex.html#registering-packages)2467    - [6.2. Загрузка пакетов](https://python-all.ru/3.2/distutils/packageindex.html#uploading-packages)2468    - [6.3. Файл .pypirc](https://python-all.ru/3.2/distutils/packageindex.html#the-pypirc-file)2469    - [6.4. Отображение пакетов PyPI](https://python-all.ru/3.2/distutils/packageindex.html#pypi-package-display)2470  - [7. Примеры](https://python-all.ru/3.2/distutils/examples.html)24712472    - [7.1. Дистрибутив на чистом Python (по модулям)](https://python-all.ru/3.2/distutils/examples.html#pure-python-distribution-by-module)2473    - [7.2. Дистрибутив на чистом Python (по пакетам)](https://python-all.ru/3.2/distutils/examples.html#pure-python-distribution-by-package)2474    - [7.3. Один модуль расширения](https://python-all.ru/3.2/distutils/examples.html#single-extension-module)2475    - [7.4. Проверка пакета](https://python-all.ru/3.2/distutils/examples.html#checking-a-package)2476  - [8. Расширение Distutils](https://python-all.ru/3.2/distutils/extending.html)24772478    - [8.1. Интеграция новых команд](https://python-all.ru/3.2/distutils/extending.html#integrating-new-commands)2479    - [8.2. Добавление новых типов дистрибутивов](https://python-all.ru/3.2/distutils/extending.html#adding-new-distribution-types)2480  - [9. Справочник команд](https://python-all.ru/3.2/distutils/commandref.html)24812482    - [9.1. Установка модулей: семейство команд **install**](https://python-all.ru/3.2/distutils/commandref.html#installing-modules-the-install-command-family)24832484      - [9.1.1. **install\_data**](https://python-all.ru/3.2/distutils/commandref.html#install-data)2485      - [9.1.2. **install\_scripts**](https://python-all.ru/3.2/distutils/commandref.html#install-scripts)2486    - [9.2. Создание дистрибутива исходного кода: команда **sdist**](https://python-all.ru/3.2/distutils/commandref.html#creating-a-source-distribution-the-sdist-command)2487  - [10. Справочник API](https://python-all.ru/3.2/distutils/apiref.html)24882489    - [10.1. `distutils.core` – Основные функции Distutils](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.core)2490    - [10.2. `distutils.ccompiler` – Базовый класс CCompiler](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.ccompiler)2491    - [10.3. `distutils.unixccompiler` – Компилятор C для Unix](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.unixccompiler)2492    - [10.4. `distutils.msvccompiler` – Компилятор Microsoft](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.msvccompiler)2493    - [10.5. `distutils.bcppcompiler` – Компилятор Borland](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.bcppcompiler)2494    - [10.6. `distutils.cygwincompiler` – Компилятор Cygwin](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.cygwinccompiler)2495    - [10.7. `distutils.emxccompiler` – Компилятор OS/2 EMX](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.emxccompiler)2496    - [10.8. `distutils.archive_util` – Утилиты архивации](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.archive_util)2497    - [10.9. `distutils.dep_util` – Проверка зависимостей](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.dep_util)2498    - [10.10. `distutils.dir_util` – Операции с деревом каталогов](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.dir_util)2499    - [10.11. `distutils.file_util` – Операции с отдельными файлами](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.file_util)2500    - [10.12. `distutils.util` – Прочие вспомогательные функции](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.util)2501    - [10.13. `distutils.dist` – Класс Distribution](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.dist)2502    - [10.14. `distutils.extension` – Класс Extension](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.extension)2503    - [10.15. `distutils.debug` – Режим отладки Distutils](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.debug)2504    - [10.16. `distutils.errors` – Исключения Distutils](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.errors)2505    - [10.17. `distutils.fancy_getopt` – Обёртка над стандартным модулем getopt](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.fancy_getopt)2506    - [10.18. `distutils.filelist` – Класс FileList](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.filelist)2507    - [10.19. `distutils.log` – Простое логирование в стиле PEP 282](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.log)2508    - [10.20. `distutils.spawn` – Запуск подпроцесса](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.spawn)2509    - [10.21. `distutils.sysconfig` – Информация о системной конфигурации](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.sysconfig)2510    - [10.22. `distutils.text_file` – Класс TextFile](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.text_file)2511    - [10.23. `distutils.version` – Классы номеров версий](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.version)2512    - [10.24. `distutils.cmd` – Абстрактный базовый класс для команд Distutils](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.cmd)2513    - [10.25. Создание новой команды Distutils](https://python-all.ru/3.2/distutils/apiref.html#creating-a-new-distutils-command)2514    - [10.26. `distutils.command` – Отдельные команды Distutils](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command)2515    - [10.27. `distutils.command.bdist` – Сборка двоичного установщика](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist)2516    - [10.28. `distutils.command.bdist_packager` – Абстрактный базовый класс для упаковщиков](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist_packager)2517    - [10.29. `distutils.command.bdist_dumb` – Сборка «немого» установщика](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist_dumb)2518    - [10.30. `distutils.command.bdist_msi` – Сборка двоичного пакета Microsoft Installer](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist_msi)2519    - [10.31. `distutils.command.bdist_rpm` – Сборка двоичного дистрибутива в формате Redhat RPM и SRPM](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist_rpm)2520    - [10.32. `distutils.command.bdist_wininst` – Сборка установщика для Windows](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.bdist_wininst)2521    - [10.33. `distutils.command.sdist` – Сборка дистрибутива исходного кода](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.sdist)2522    - [10.34. `distutils.command.build` – Сборка всех файлов пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.build)2523    - [10.35. `distutils.command.build_clib` – Сборка библиотек C в пакете](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.build_clib)2524    - [10.36. `distutils.command.build_ext` – Сборка расширений в пакете](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.build_ext)2525    - [10.37. `distutils.command.build_py` – Сборка .py/.pyc файлов пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.build_py)2526    - [10.38. `distutils.command.build_scripts` – Сборка скриптов пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.build_scripts)2527    - [10.39. `distutils.command.clean` – Очистка каталога сборки пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.clean)2528    - [10.40. `distutils.command.config` – Выполнение конфигурации пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.config)2529    - [10.41. `distutils.command.install` – Установка пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.install)2530    - [10.42. `distutils.command.install_data` – Установка файлов данных из пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.install_data)2531    - [10.43. `distutils.command.install_headers` – Установка заголовочных файлов C/C++ из пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.install_headers)2532    - [10.44. `distutils.command.install_lib` – Установка файлов библиотеки из пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.install_lib)2533    - [10.45. `distutils.command.install_scripts` – Установка файлов скриптов из пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.install_scripts)2534    - [10.46. `distutils.command.register` – Регистрация модуля в индексе пакетов Python](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.register)2535    - [10.47. `distutils.command.check` – Проверка метаданных пакета](https://python-all.ru/3.2/distutils/apiref.html#module-distutils.command.check)2536- [Установка модулей Python](https://python-all.ru/3.2/install/index.html)25372538  - [Введение](https://python-all.ru/3.2/install/index.html#introduction)25392540    - [Идеальный случай: простая установка](https://python-all.ru/3.2/install/index.html#best-case-trivial-installation)2541    - [Новый стандарт: Distutils](https://python-all.ru/3.2/install/index.html#the-new-standard-distutils)2542  - [Стандартная сборка и установка](https://python-all.ru/3.2/install/index.html#standard-build-and-install)25432544    - [Различия платформ](https://python-all.ru/3.2/install/index.html#platform-variations)2545    - [Разделение задачи на части](https://python-all.ru/3.2/install/index.html#splitting-the-job-up)2546    - [Как работает сборка](https://python-all.ru/3.2/install/index.html#how-building-works)2547    - [Как работает установка](https://python-all.ru/3.2/install/index.html#how-installation-works)2548  - [Альтернативная установка](https://python-all.ru/3.2/install/index.html#alternate-installation)25492550    - [Альтернативная установка: схема пользователя](https://python-all.ru/3.2/install/index.html#alternate-installation-the-user-scheme)2551    - [Альтернативная установка: домашняя схема](https://python-all.ru/3.2/install/index.html#alternate-installation-the-home-scheme)2552    - [Альтернативная установка: Unix (схема префикса)](https://python-all.ru/3.2/install/index.html#alternate-installation-unix-the-prefix-scheme)2553    - [Альтернативная установка: Windows (схема префикса)](https://python-all.ru/3.2/install/index.html#alternate-installation-windows-the-prefix-scheme)2554  - [Пользовательская установка](https://python-all.ru/3.2/install/index.html#custom-installation)25552556    - [Изменение пути поиска Python](https://python-all.ru/3.2/install/index.html#modifying-python-s-search-path)2557  - [Файлы конфигурации Distutils](https://python-all.ru/3.2/install/index.html#distutils-configuration-files)25582559    - [Расположение и имена файлов конфигурации](https://python-all.ru/3.2/install/index.html#location-and-names-of-config-files)2560    - [Синтаксис файлов конфигурации](https://python-all.ru/3.2/install/index.html#syntax-of-config-files)2561  - [Сборка расширений: советы и рекомендации](https://python-all.ru/3.2/install/index.html#building-extensions-tips-and-tricks)25622563    - [Настройка флагов компилятора/компоновщика](https://python-all.ru/3.2/install/index.html#tweaking-compiler-linker-flags)2564    - [Использование компиляторов, отличных от Microsoft, в Windows](https://python-all.ru/3.2/install/index.html#using-non-microsoft-compilers-on-windows)25652566      - [Borland/CodeGear C++](https://python-all.ru/3.2/install/index.html#borland-codegear-c)2567      - [GNU C / Cygwin / MinGW](https://python-all.ru/3.2/install/index.html#gnu-c-cygwin-mingw)25682569        - [Старые версии Python и MinGW](https://python-all.ru/3.2/install/index.html#older-versions-of-python-and-mingw)2570- [Руководства Python HOWTO](https://python-all.ru/3.2/howto/index.html)25712572  - [HOWTO по продвижению Python](https://python-all.ru/3.2/howto/advocacy.html)25732574    - [Причины использовать Python](https://python-all.ru/3.2/howto/advocacy.html#reasons-to-use-python)25752576      - [Программируемость](https://python-all.ru/3.2/howto/advocacy.html#programmability)2577      - [Прототипирование](https://python-all.ru/3.2/howto/advocacy.html#prototyping)2578      - [Простота и лёгкость понимания](https://python-all.ru/3.2/howto/advocacy.html#simplicity-and-ease-of-understanding)2579      - [Интеграция с Java](https://python-all.ru/3.2/howto/advocacy.html#java-integration)2580    - [Аргументы и контраргументы](https://python-all.ru/3.2/howto/advocacy.html#arguments-and-rebuttals)2581    - [Полезные ресурсы](https://python-all.ru/3.2/howto/advocacy.html#useful-resources)2582  - [Перенос кода с Python 2 на Python 3](https://python-all.ru/3.2/howto/pyporting.html)25832584    - [Выбор стратегии](https://python-all.ru/3.2/howto/pyporting.html#choosing-a-strategy)25852586      - [Общие советы](https://python-all.ru/3.2/howto/pyporting.html#universal-bits-of-advice)2587    - [Python 3 и 3to2](https://python-all.ru/3.2/howto/pyporting.html#python-3-and-3to2)2588    - [Python 2 и 2to3](https://python-all.ru/3.2/howto/pyporting.html#python-2-and-2to3)25892590      - [Поддержка Python 2.7](https://python-all.ru/3.2/howto/pyporting.html#support-python-2-7)2591      - [Попробуйте поддерживать только Python 2.6 и новее](https://python-all.ru/3.2/howto/pyporting.html#try-to-support-python-2-6-and-newer-only)25922593        - [`from __future__ import print_function`](https://python-all.ru/3.2/howto/pyporting.html#from-future-import-print-function)2594        - [`from __future__ import unicode_literals`](https://python-all.ru/3.2/howto/pyporting.html#from-future-import-unicode-literals)2595        - [Байтовые литералы](https://python-all.ru/3.2/howto/pyporting.html#bytes-literals)2596      - [Поддержка только Python 2.5 и новее](https://python-all.ru/3.2/howto/pyporting.html#supporting-python-2-5-and-newer-only)25972598        - [`from __future__ import absolute_import`](https://python-all.ru/3.2/howto/pyporting.html#from-future-import-absolute-import)2599      - [Обработка распространённых «подводных камней»](https://python-all.ru/3.2/howto/pyporting.html#handle-common-gotchas)26002601        - [`from __future__ import division`](https://python-all.ru/3.2/howto/pyporting.html#from-future-import-division)2602        - [Указывать при открытии файла как двоичный](https://python-all.ru/3.2/howto/pyporting.html#specify-when-opening-a-file-as-binary)2603        - [Текстовые файлы](https://python-all.ru/3.2/howto/pyporting.html#text-files)2604        - [Наследовать от `object`](https://python-all.ru/3.2/howto/pyporting.html#subclass-object)2605        - [Работа с дихотомией байты/строки](https://python-all.ru/3.2/howto/pyporting.html#deal-with-the-bytes-string-dichotomy)26062607          - [Размечать строковые литералы Python 2](https://python-all.ru/3.2/howto/pyporting.html#mark-up-python-2-string-literals)2608          - [Решить, что будут принимать API](https://python-all.ru/3.2/howto/pyporting.html#decide-what-apis-will-accept)2609          - [Сравнение байтов и Unicode](https://python-all.ru/3.2/howto/pyporting.html#bytes-unicode-comparison)2610        - [Индексация объектов bytes](https://python-all.ru/3.2/howto/pyporting.html#indexing-bytes-objects)2611        - [`__str__()`/`__unicode__()`](https://python-all.ru/3.2/howto/pyporting.html#str-unicode)2612        - [Не индексировать по исключениям](https://python-all.ru/3.2/howto/pyporting.html#don-t-index-on-exceptions)2613        - [Не используйте `__getslice__` и его аналоги](https://python-all.ru/3.2/howto/pyporting.html#don-t-use-getslice-friends)2614        - [Обновление доктестов](https://python-all.ru/3.2/howto/pyporting.html#updating-doctests)2615        - [Обновление *map* для несбалансированных входных последовательностей](https://python-all.ru/3.2/howto/pyporting.html#update-map-for-imbalanced-input-sequences)2616      - [Устранить предупреждения `-3`](https://python-all.ru/3.2/howto/pyporting.html#eliminate-3-warnings)2617      - [Запуск 2to3](https://python-all.ru/3.2/howto/pyporting.html#run-2to3)26182619        - [Вручную](https://python-all.ru/3.2/howto/pyporting.html#manually)2620        - [Во время установки](https://python-all.ru/3.2/howto/pyporting.html#during-installation)2621      - [Проверка и тестирование](https://python-all.ru/3.2/howto/pyporting.html#verify-test)2622    - [Совместимый с Python 2/3 исходный код](https://python-all.ru/3.2/howto/pyporting.html#python-2-3-compatible-source)26232624      - [Использование 2to3](https://python-all.ru/3.2/howto/pyporting.html#follow-the-steps-for-using-2to3)2625      - [Использование six](https://python-all.ru/3.2/howto/pyporting.html#use-six)2626      - [Захват текущего поднятого исключения](https://python-all.ru/3.2/howto/pyporting.html#capturing-the-currently-raised-exception)2627    - [Другие ресурсы](https://python-all.ru/3.2/howto/pyporting.html#other-resources)2628  - [Перенос модулей расширения на Python 3](https://python-all.ru/3.2/howto/cporting.html)26292630    - [Условная компиляция](https://python-all.ru/3.2/howto/cporting.html#conditional-compilation)2631    - [Изменения в объектных API](https://python-all.ru/3.2/howto/cporting.html#changes-to-object-apis)26322633      - [Объединение str/unicode](https://python-all.ru/3.2/howto/cporting.html#str-unicode-unification)2634      - [Объединение long/int](https://python-all.ru/3.2/howto/cporting.html#long-int-unification)2635    - [Инициализация и состояние модулей](https://python-all.ru/3.2/howto/cporting.html#module-initialization-and-state)2636    - [CObject заменён на Capsule](https://python-all.ru/3.2/howto/cporting.html#cobject-replaced-with-capsule)2637    - [Другие опции](https://python-all.ru/3.2/howto/cporting.html#other-options)2638  - [Программирование с curses на Python](https://python-all.ru/3.2/howto/curses.html)26392640    - [Что такое curses?](https://python-all.ru/3.2/howto/curses.html#what-is-curses)26412642      - [Модуль curses в Python](https://python-all.ru/3.2/howto/curses.html#the-python-curses-module)2643    - [Запуск и завершение приложения curses](https://python-all.ru/3.2/howto/curses.html#starting-and-ending-a-curses-application)2644    - [Окна и пады](https://python-all.ru/3.2/howto/curses.html#windows-and-pads)2645    - [Отображение текста](https://python-all.ru/3.2/howto/curses.html#displaying-text)26462647      - [Атрибуты и цвет](https://python-all.ru/3.2/howto/curses.html#attributes-and-color)2648    - [Ввод пользователя](https://python-all.ru/3.2/howto/curses.html#user-input)2649    - [Для получения дополнительных сведений](https://python-all.ru/3.2/howto/curses.html#for-more-information)2650  - [Руководство по дескрипторам](https://python-all.ru/3.2/howto/descriptor.html)26512652    - [Аннотация](https://python-all.ru/3.2/howto/descriptor.html#abstract)2653    - [Определение и введение](https://python-all.ru/3.2/howto/descriptor.html#definition-and-introduction)2654    - [Протокол дескрипторов](https://python-all.ru/3.2/howto/descriptor.html#descriptor-protocol)2655    - [Вызов дескрипторов](https://python-all.ru/3.2/howto/descriptor.html#invoking-descriptors)2656    - [Пример дескриптора](https://python-all.ru/3.2/howto/descriptor.html#descriptor-example)2657    - [Свойства](https://python-all.ru/3.2/howto/descriptor.html#properties)2658    - [Функции и методы](https://python-all.ru/3.2/howto/descriptor.html#functions-and-methods)2659    - [Статические методы и методы класса](https://python-all.ru/3.2/howto/descriptor.html#static-methods-and-class-methods)2660  - [HOWTO по функциональному программированию](https://python-all.ru/3.2/howto/functional.html)26612662    - [Введение](https://python-all.ru/3.2/howto/functional.html#introduction)26632664      - [Формальная доказуемость](https://python-all.ru/3.2/howto/functional.html#formal-provability)2665      - [Модульность](https://python-all.ru/3.2/howto/functional.html#modularity)2666      - [Простота отладки и тестирования](https://python-all.ru/3.2/howto/functional.html#ease-of-debugging-and-testing)2667      - [Композируемость](https://python-all.ru/3.2/howto/functional.html#composability)2668    - [Итераторы](https://python-all.ru/3.2/howto/functional.html#iterators)26692670      - [Типы данных, поддерживающие итераторы](https://python-all.ru/3.2/howto/functional.html#data-types-that-support-iterators)2671    - [Генераторные выражения и списковые включения](https://python-all.ru/3.2/howto/functional.html#generator-expressions-and-list-comprehensions)2672    - [Генераторы](https://python-all.ru/3.2/howto/functional.html#generators)26732674      - [Передача значений в генератор](https://python-all.ru/3.2/howto/functional.html#passing-values-into-a-generator)2675    - [Встроенные функции](https://python-all.ru/3.2/howto/functional.html#built-in-functions)2676    - [Модуль itertools](https://python-all.ru/3.2/howto/functional.html#the-itertools-module)26772678      - [Создание новых итераторов](https://python-all.ru/3.2/howto/functional.html#creating-new-iterators)2679      - [Вызов функций для элементов](https://python-all.ru/3.2/howto/functional.html#calling-functions-on-elements)2680      - [Выбор элементов](https://python-all.ru/3.2/howto/functional.html#selecting-elements)2681      - [Группировка элементов](https://python-all.ru/3.2/howto/functional.html#grouping-elements)2682    - [Модуль functools](https://python-all.ru/3.2/howto/functional.html#the-functools-module)26832684      - [Модуль operator](https://python-all.ru/3.2/howto/functional.html#the-operator-module)2685    - [Небольшие функции и лямбда-выражение](https://python-all.ru/3.2/howto/functional.html#small-functions-and-the-lambda-expression)2686    - [История изменений и благодарности](https://python-all.ru/3.2/howto/functional.html#revision-history-and-acknowledgements)2687    - [Ссылки](https://python-all.ru/3.2/howto/functional.html#references)26882689      - [Общие](https://python-all.ru/3.2/howto/functional.html#general)2690      - [Специфичное для Python](https://python-all.ru/3.2/howto/functional.html#python-specific)2691      - [Документация Python](https://python-all.ru/3.2/howto/functional.html#python-documentation)2692  - [Руководство по логированию](https://python-all.ru/3.2/howto/logging.html)26932694    - [Базовое руководство по логированию](https://python-all.ru/3.2/howto/logging.html#basic-logging-tutorial)26952696      - [Когда использовать логирование](https://python-all.ru/3.2/howto/logging.html#when-to-use-logging)2697      - [Простой пример](https://python-all.ru/3.2/howto/logging.html#a-simple-example)2698      - [Логирование в файл](https://python-all.ru/3.2/howto/logging.html#logging-to-a-file)2699      - [Логирование из нескольких модулей](https://python-all.ru/3.2/howto/logging.html#logging-from-multiple-modules)2700      - [Логирование переменных данных](https://python-all.ru/3.2/howto/logging.html#logging-variable-data)2701      - [Изменение формата отображаемых сообщений](https://python-all.ru/3.2/howto/logging.html#changing-the-format-of-displayed-messages)2702      - [Отображение даты/времени в сообщениях](https://python-all.ru/3.2/howto/logging.html#displaying-the-date-time-in-messages)2703      - [Дальнейшие шаги](https://python-all.ru/3.2/howto/logging.html#next-steps)2704    - [Расширенное руководство по логированию](https://python-all.ru/3.2/howto/logging.html#advanced-logging-tutorial)27052706      - [Поток логирования](https://python-all.ru/3.2/howto/logging.html#logging-flow)2707      - [Логгеры](https://python-all.ru/3.2/howto/logging.html#loggers)2708      - [Обработчики](https://python-all.ru/3.2/howto/logging.html#handlers)2709      - [Форматировщики](https://python-all.ru/3.2/howto/logging.html#formatters)2710      - [Настройка логирования](https://python-all.ru/3.2/howto/logging.html#configuring-logging)2711      - [Что происходит, если конфигурация не предоставлена](https://python-all.ru/3.2/howto/logging.html#what-happens-if-no-configuration-is-provided)2712      - [Настройка логирования для библиотеки](https://python-all.ru/3.2/howto/logging.html#configuring-logging-for-a-library)2713    - [Уровни журналирования](https://python-all.ru/3.2/howto/logging.html#logging-levels)27142715      - [Пользовательские уровни](https://python-all.ru/3.2/howto/logging.html#custom-levels)2716    - [Полезные обработчики](https://python-all.ru/3.2/howto/logging.html#useful-handlers)2717    - [Исключения, возникающие при логировании](https://python-all.ru/3.2/howto/logging.html#exceptions-raised-during-logging)2718    - [Использование произвольных объектов в качестве сообщений](https://python-all.ru/3.2/howto/logging.html#using-arbitrary-objects-as-messages)2719    - [Оптимизация](https://python-all.ru/3.2/howto/logging.html#optimization)2720  - [Рецепты по логированию](https://python-all.ru/3.2/howto/logging-cookbook.html)27212722    - [Использование логирования в нескольких модулях](https://python-all.ru/3.2/howto/logging-cookbook.html#using-logging-in-multiple-modules)2723    - [Несколько обработчиков и форматировщиков](https://python-all.ru/3.2/howto/logging-cookbook.html#multiple-handlers-and-formatters)2724    - [Логирование в несколько мест назначения](https://python-all.ru/3.2/howto/logging-cookbook.html#logging-to-multiple-destinations)2725    - [Пример сервера конфигурации](https://python-all.ru/3.2/howto/logging-cookbook.html#configuration-server-example)2726    - [Работа с блокирующими обработчиками](https://python-all.ru/3.2/howto/logging-cookbook.html#dealing-with-handlers-that-block)2727    - [Отправка и получение событий логирования по сети](https://python-all.ru/3.2/howto/logging-cookbook.html#sending-and-receiving-logging-events-across-a-network)2728    - [Добавление контекстной информации в вывод логирования](https://python-all.ru/3.2/howto/logging-cookbook.html#adding-contextual-information-to-your-logging-output)27292730      - [Использование LoggerAdapters для передачи контекстной информации](https://python-all.ru/3.2/howto/logging-cookbook.html#using-loggeradapters-to-impart-contextual-information)2731      - [Использование фильтров для передачи контекстной информации](https://python-all.ru/3.2/howto/logging-cookbook.html#using-filters-to-impart-contextual-information)2732    - [Логирование в один файл из нескольких процессов](https://python-all.ru/3.2/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes)2733    - [Использование ротации файлов](https://python-all.ru/3.2/howto/logging-cookbook.html#using-file-rotation)2734    - [Использование альтернативных стилей форматирования](https://python-all.ru/3.2/howto/logging-cookbook.html#use-of-alternative-formatting-styles)2735    - [Настройка `LogRecord`](https://python-all.ru/3.2/howto/logging-cookbook.html#customising-logrecord)2736    - [Наследование от QueueHandler – пример с ZeroMQ](https://python-all.ru/3.2/howto/logging-cookbook.html#subclassing-queuehandler-a-zeromq-example)2737    - [Наследование от QueueListener – пример с ZeroMQ](https://python-all.ru/3.2/howto/logging-cookbook.html#subclassing-queuelistener-a-zeromq-example)2738    - [Пример конфигурации на основе словаря](https://python-all.ru/3.2/howto/logging-cookbook.html#an-example-dictionary-based-configuration)2739    - [Более сложный пример многопроцессорной обработки](https://python-all.ru/3.2/howto/logging-cookbook.html#a-more-elaborate-multiprocessing-example)2740    - [Вставка BOM в сообщения, отправляемые в SysLogHandler](https://python-all.ru/3.2/howto/logging-cookbook.html#inserting-a-bom-into-messages-sent-to-a-sysloghandler)2741    - [Реализация структурированного логирования](https://python-all.ru/3.2/howto/logging-cookbook.html#implementing-structured-logging)2742  - [HOWTO по регулярным выражениям](https://python-all.ru/3.2/howto/regex.html)27432744    - [Введение](https://python-all.ru/3.2/howto/regex.html#introduction)2745    - [Простые шаблоны](https://python-all.ru/3.2/howto/regex.html#simple-patterns)27462747      - [Сопоставление символов](https://python-all.ru/3.2/howto/regex.html#matching-characters)2748      - [Повторение](https://python-all.ru/3.2/howto/regex.html#repeating-things)2749    - [Использование регулярных выражений](https://python-all.ru/3.2/howto/regex.html#using-regular-expressions)27502751      - [Компиляция регулярных выражений](https://python-all.ru/3.2/howto/regex.html#compiling-regular-expressions)2752      - [Проблема обратной косой черты](https://python-all.ru/3.2/howto/regex.html#the-backslash-plague)2753      - [Выполнение сопоставлений](https://python-all.ru/3.2/howto/regex.html#performing-matches)2754      - [Функции уровня модуля](https://python-all.ru/3.2/howto/regex.html#module-level-functions)2755      - [Флаги компиляции](https://python-all.ru/3.2/howto/regex.html#compilation-flags)2756    - [Дополнительные возможности шаблонов](https://python-all.ru/3.2/howto/regex.html#more-pattern-power)27572758      - [Дополнительные метасимволы](https://python-all.ru/3.2/howto/regex.html#more-metacharacters)2759      - [Группировка](https://python-all.ru/3.2/howto/regex.html#grouping)2760      - [Незахватывающие и именованные группы](https://python-all.ru/3.2/howto/regex.html#non-capturing-and-named-groups)2761      - [Опережающие проверки](https://python-all.ru/3.2/howto/regex.html#lookahead-assertions)2762    - [Изменение строк](https://python-all.ru/3.2/howto/regex.html#modifying-strings)27632764      - [Разделение строк](https://python-all.ru/3.2/howto/regex.html#splitting-strings)2765      - [Поиск и замена](https://python-all.ru/3.2/howto/regex.html#search-and-replace)2766    - [Распространённые проблемы](https://python-all.ru/3.2/howto/regex.html#common-problems)27672768      - [Использование строковых методов](https://python-all.ru/3.2/howto/regex.html#use-string-methods)2769      - [match() и search()](https://python-all.ru/3.2/howto/regex.html#match-versus-search)2770      - [Жадные и нежадные квантификаторы](https://python-all.ru/3.2/howto/regex.html#greedy-versus-non-greedy)2771      - [Использование re.VERBOSE](https://python-all.ru/3.2/howto/regex.html#using-re-verbose)2772    - [Обратная связь](https://python-all.ru/3.2/howto/regex.html#feedback)2773  - [Руководство по программированию сокетов](https://python-all.ru/3.2/howto/sockets.html)27742775    - [Сокеты](https://python-all.ru/3.2/howto/sockets.html#sockets)27762777      - [История](https://python-all.ru/3.2/howto/sockets.html#history)2778    - [Создание сокета](https://python-all.ru/3.2/howto/sockets.html#creating-a-socket)27792780      - [Межпроцессное взаимодействие](https://python-all.ru/3.2/howto/sockets.html#ipc)2781    - [Использование сокета](https://python-all.ru/3.2/howto/sockets.html#using-a-socket)27822783      - [Двоичные данные](https://python-all.ru/3.2/howto/sockets.html#binary-data)2784    - [Отключение](https://python-all.ru/3.2/howto/sockets.html#disconnecting)27852786      - [Когда сокеты завершают работу](https://python-all.ru/3.2/howto/sockets.html#when-sockets-die)2787    - [Неблокирующие сокеты](https://python-all.ru/3.2/howto/sockets.html#non-blocking-sockets)27882789      - [Производительность](https://python-all.ru/3.2/howto/sockets.html#performance)2790  - [Руководство по сортировке](https://python-all.ru/3.2/howto/sorting.html)27912792    - [Основы сортировки](https://python-all.ru/3.2/howto/sorting.html#sorting-basics)2793    - [Ключевые функции](https://python-all.ru/3.2/howto/sorting.html#key-functions)2794    - [Функции модуля operator](https://python-all.ru/3.2/howto/sorting.html#operator-module-functions)2795    - [По возрастанию и по убыванию](https://python-all.ru/3.2/howto/sorting.html#ascending-and-descending)2796    - [Стабильность сортировки и сложные сортировки](https://python-all.ru/3.2/howto/sorting.html#sort-stability-and-complex-sorts)2797    - [Старый способ: Decorate-Sort-Undecorate](https://python-all.ru/3.2/howto/sorting.html#the-old-way-using-decorate-sort-undecorate)2798    - [Старый способ: использование параметра *cmp*](https://python-all.ru/3.2/howto/sorting.html#the-old-way-using-the-cmp-parameter)2799    - [Разное](https://python-all.ru/3.2/howto/sorting.html#odd-and-ends)2800  - [Руководство по Unicode](https://python-all.ru/3.2/howto/unicode.html)28012802    - [Введение в Unicode](https://python-all.ru/3.2/howto/unicode.html#introduction-to-unicode)28032804      - [История кодов символов](https://python-all.ru/3.2/howto/unicode.html#history-of-character-codes)2805      - [Определения](https://python-all.ru/3.2/howto/unicode.html#definitions)2806      - [Кодировки](https://python-all.ru/3.2/howto/unicode.html#encodings)2807      - [Ссылки](https://python-all.ru/3.2/howto/unicode.html#references)2808    - [Поддержка Unicode в Python](https://python-all.ru/3.2/howto/unicode.html#python-s-unicode-support)28092810      - [Тип str](https://python-all.ru/3.2/howto/unicode.html#the-string-type)2811      - [Преобразование в байты](https://python-all.ru/3.2/howto/unicode.html#converting-to-bytes)2812      - [Unicode-литералы в исходном коде Python](https://python-all.ru/3.2/howto/unicode.html#unicode-literals-in-python-source-code)2813      - [Свойства Unicode](https://python-all.ru/3.2/howto/unicode.html#unicode-properties)2814      - [Ссылки](https://python-all.ru/3.2/howto/unicode.html#id2)2815    - [Чтение и запись данных Unicode](https://python-all.ru/3.2/howto/unicode.html#reading-and-writing-unicode-data)28162817      - [Имена файлов в Unicode](https://python-all.ru/3.2/howto/unicode.html#unicode-filenames)2818      - [Советы по написанию программ с поддержкой Unicode](https://python-all.ru/3.2/howto/unicode.html#tips-for-writing-unicode-aware-programs)2819      - [Ссылки](https://python-all.ru/3.2/howto/unicode.html#id3)2820    - [Благодарности](https://python-all.ru/3.2/howto/unicode.html#acknowledgements)2821  - [HOWTO: получение интернет-ресурсов с помощью пакета urllib](https://python-all.ru/3.2/howto/urllib2.html)28222823    - [Введение](https://python-all.ru/3.2/howto/urllib2.html#introduction)2824    - [Получение URL-адресов](https://python-all.ru/3.2/howto/urllib2.html#fetching-urls)28252826      - [Данные](https://python-all.ru/3.2/howto/urllib2.html#data)2827      - [Заголовки](https://python-all.ru/3.2/howto/urllib2.html#headers)2828    - [Обработка исключений](https://python-all.ru/3.2/howto/urllib2.html#handling-exceptions)28292830      - \<[URLError](https://python-all.ru/3.2/howto/urllib2.html#urlerror)\>2831      - [HTTPError](https://python-all.ru/3.2/howto/urllib2.html#httperror)28322833        - [Коды ошибок](https://python-all.ru/3.2/howto/urllib2.html#error-codes)2834      - [Заключение](https://python-all.ru/3.2/howto/urllib2.html#wrapping-it-up)28352836        - [Номер 1](https://python-all.ru/3.2/howto/urllib2.html#number-1)2837        - [Номер 2](https://python-all.ru/3.2/howto/urllib2.html#number-2)2838    - [info и geturl](https://python-all.ru/3.2/howto/urllib2.html#info-and-geturl)2839    - [Открыватели и обработчики](https://python-all.ru/3.2/howto/urllib2.html#openers-and-handlers)2840    - [Базовая аутентификация](https://python-all.ru/3.2/howto/urllib2.html#id6)2841    - [Прокси](https://python-all.ru/3.2/howto/urllib2.html#proxies)2842    - [Сокеты и слои](https://python-all.ru/3.2/howto/urllib2.html#sockets-and-layers)2843    - [Сноски](https://python-all.ru/3.2/howto/urllib2.html#footnotes)2844  - [HOWTO: использование Python в вебе](https://python-all.ru/3.2/howto/webservers.html)28452846    - [Низкоуровневое представление](https://python-all.ru/3.2/howto/webservers.html#the-low-level-view)28472848      - [Общий шлюзовый интерфейс](https://python-all.ru/3.2/howto/webservers.html#common-gateway-interface)28492850        - [Простой скрипт для тестирования CGI](https://python-all.ru/3.2/howto/webservers.html#simple-script-for-testing-cgi)2851        - [Настройка CGI на собственном сервере](https://python-all.ru/3.2/howto/webservers.html#setting-up-cgi-on-your-own-server)2852        - [Типичные проблемы CGI-скриптов](https://python-all.ru/3.2/howto/webservers.html#common-problems-with-cgi-scripts)2853      - [mod\_python](https://python-all.ru/3.2/howto/webservers.html#mod-python)2854      - [FastCGI и SCGI](https://python-all.ru/3.2/howto/webservers.html#fastcgi-and-scgi)28552856        - [Настройка FastCGI](https://python-all.ru/3.2/howto/webservers.html#setting-up-fastcgi)2857      - [mod\_wsgi](https://python-all.ru/3.2/howto/webservers.html#mod-wsgi)2858    - [Отступление: WSGI](https://python-all.ru/3.2/howto/webservers.html#step-back-wsgi)28592860      - [WSGI-серверы](https://python-all.ru/3.2/howto/webservers.html#wsgi-servers)2861      - [Пример: MoinMoin](https://python-all.ru/3.2/howto/webservers.html#case-study-moinmoin)2862    - [Модель-Представление-Контроллер](https://python-all.ru/3.2/howto/webservers.html#model-view-controller)2863    - [Составляющие веб-сайтов](https://python-all.ru/3.2/howto/webservers.html#ingredients-for-websites)28642865      - [Шаблоны](https://python-all.ru/3.2/howto/webservers.html#templates)2866      - [Постоянное хранение данных](https://python-all.ru/3.2/howto/webservers.html#data-persistence)2867    - [Фреймворки](https://python-all.ru/3.2/howto/webservers.html#frameworks)28682869      - [Некоторые известные фреймворки](https://python-all.ru/3.2/howto/webservers.html#some-notable-frameworks)28702871        - [Django](https://python-all.ru/3.2/howto/webservers.html#django)2872        - [TurboGears](https://python-all.ru/3.2/howto/webservers.html#turbogears)2873        - [Zope](https://python-all.ru/3.2/howto/webservers.html#zope)2874        - [Другие известные фреймворки](https://python-all.ru/3.2/howto/webservers.html#other-notable-frameworks)2875  - [Учебное пособие по argparse](https://python-all.ru/3.2/howto/argparse.html)28762877    - [Основные понятия](https://python-all.ru/3.2/howto/argparse.html#concepts)2878    - [Основы](https://python-all.ru/3.2/howto/argparse.html#the-basics)2879    - [Знакомство с позиционными аргументами](https://python-all.ru/3.2/howto/argparse.html#introducing-positional-arguments)2880    - [Знакомство с необязательными аргументами](https://python-all.ru/3.2/howto/argparse.html#introducing-optional-arguments)28812882      - [Короткие опции](https://python-all.ru/3.2/howto/argparse.html#short-options)2883    - [Сочетание позиционных и необязательных аргументов](https://python-all.ru/3.2/howto/argparse.html#combining-positional-and-optional-arguments)2884    - [Переходим к более сложным темам](https://python-all.ru/3.2/howto/argparse.html#getting-a-little-more-advanced)28852886      - [Конфликтующие опции](https://python-all.ru/3.2/howto/argparse.html#conflicting-options)2887    - [Заключение](https://python-all.ru/3.2/howto/argparse.html#conclusion)2888- [Часто задаваемые вопросы по Python](https://python-all.ru/3.2/faq/index.html)28892890  - [Общие вопросы по Python](https://python-all.ru/3.2/faq/general.html)28912892    - [Общая информация](https://python-all.ru/3.2/faq/general.html#general-information)2893    - [Python в реальном мире](https://python-all.ru/3.2/faq/general.html#python-in-the-real-world)2894  - [Вопросы по программированию](https://python-all.ru/3.2/faq/programming.html)28952896    - [Общие вопросы](https://python-all.ru/3.2/faq/programming.html#general-questions)2897    - [Ядро языка](https://python-all.ru/3.2/faq/programming.html#core-language)2898    - [Числа и строки](https://python-all.ru/3.2/faq/programming.html#numbers-and-strings)2899    - [Производительность](https://python-all.ru/3.2/faq/programming.html#performance)2900    - [Последовательности (кортежи/списки)](https://python-all.ru/3.2/faq/programming.html#sequences-tuples-lists)2901    - [Словари](https://python-all.ru/3.2/faq/programming.html#dictionaries)2902    - [Объекты](https://python-all.ru/3.2/faq/programming.html#objects)2903    - [Модули](https://python-all.ru/3.2/faq/programming.html#modules)2904  - [Вопросы по дизайну и истории](https://python-all.ru/3.2/faq/design.html)29052906    - [Почему в Python для группировки инструкций используются отступы?](https://python-all.ru/3.2/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements)2907    - [Почему при простых арифметических операциях получаются странные результаты?](https://python-all.ru/3.2/faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations)2908    - [Почему вычисления с плавающей запятой такие неточные?](https://python-all.ru/3.2/faq/design.html#why-are-floating-point-calculations-so-inaccurate)2909    - [Почему строки в Python неизменяемы?](https://python-all.ru/3.2/faq/design.html#why-are-python-strings-immutable)2910    - [Почему self нужно явно указывать в определениях и вызовах методов?](https://python-all.ru/3.2/faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls)2911    - [Почему в выражении нельзя использовать присваивание?](https://python-all.ru/3.2/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression)2912    - [Почему в Python для одних возможностей используются методы (например, list.index()), а для других – функции (например, len(list))?](https://python-all.ru/3.2/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list)2913    - [Почему join() – метод строки, а не списка или кортежа?](https://python-all.ru/3.2/faq/design.html#why-is-join-a-string-method-instead-of-a-list-or-tuple-method)2914    - [Насколько быстры исключения?](https://python-all.ru/3.2/faq/design.html#how-fast-are-exceptions)2915    - [Почему в Python нет оператора switch или case?](https://python-all.ru/3.2/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python)2916    - [Разве нельзя эмулировать потоки в интерпретаторе, вместо того чтобы полагаться на реализацию потоков, зависящую от ОС?](https://python-all.ru/3.2/faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation)2917    - [Почему лямбда-формы не могут содержать инструкции?](https://python-all.ru/3.2/faq/design.html#why-can-t-lambda-forms-contain-statements)2918    - [Можно ли скомпилировать Python в машинный код, C или другой язык?](https://python-all.ru/3.2/faq/design.html#can-python-be-compiled-to-machine-code-c-or-some-other-language)2919    - [Как Python управляет памятью?](https://python-all.ru/3.2/faq/design.html#how-does-python-manage-memory)2920    - [Почему CPython не использует более традиционную схему сборки мусора?](https://python-all.ru/3.2/faq/design.html#why-doesn-t-cpython-use-a-more-traditional-garbage-collection-scheme)2921    - [Почему при завершении CPython освобождается не вся память?](https://python-all.ru/3.2/faq/design.html#why-isn-t-all-memory-freed-when-cpython-exits)2922    - [Почему существуют отдельные типы данных кортеж и список?](https://python-all.ru/3.2/faq/design.html#why-are-there-separate-tuple-and-list-data-types)2923    - [Как реализованы списки?](https://python-all.ru/3.2/faq/design.html#how-are-lists-implemented)2924    - [Как реализованы словари?](https://python-all.ru/3.2/faq/design.html#how-are-dictionaries-implemented)2925    - [Почему ключи словаря должны быть неизменяемыми?](https://python-all.ru/3.2/faq/design.html#why-must-dictionary-keys-be-immutable)2926    - [Почему list.sort() не возвращает отсортированный список?](https://python-all.ru/3.2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list)2927    - [Как задать и обеспечить соблюдение спецификации интерфейса в Python?](https://python-all.ru/3.2/faq/design.html#how-do-you-specify-and-enforce-an-interface-spec-in-python)2928    - [Почему значения по умолчанию разделяются между объектами?](https://python-all.ru/3.2/faq/design.html#why-are-default-values-shared-between-objects)2929    - [Почему нет goto?](https://python-all.ru/3.2/faq/design.html#why-is-there-no-goto)2930    - [Почему сырые строки (r-строки) не могут заканчиваться обратной косой чертой?](https://python-all.ru/3.2/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash)2931    - [Почему в Python нет оператора with для присваивания атрибутов?](https://python-all.ru/3.2/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments)2932    - [Почему в операторах if/while/def/class требуется двоеточие?](https://python-all.ru/3.2/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements)2933    - [Почему Python разрешает запятые в конце списков и кортежей?](https://python-all.ru/3.2/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples)2934  - [FAQ по библиотекам и расширениям](https://python-all.ru/3.2/faq/library.html)29352936    - [Общие вопросы по библиотекам](https://python-all.ru/3.2/faq/library.html#general-library-questions)2937    - [Типовые задачи](https://python-all.ru/3.2/faq/library.html#common-tasks)2938    - [Потоки](https://python-all.ru/3.2/faq/library.html#threads)2939    - [Ввод и вывод](https://python-all.ru/3.2/faq/library.html#input-and-output)2940    - [Сетевое и интернет-программирование](https://python-all.ru/3.2/faq/library.html#network-internet-programming)2941    - [Базы данных](https://python-all.ru/3.2/faq/library.html#databases)2942    - [Математика и численные методы](https://python-all.ru/3.2/faq/library.html#mathematics-and-numerics)2943  - [FAQ по расширению и встраиванию](https://python-all.ru/3.2/faq/extending.html)29442945    - [Можно ли создавать собственные функции на C?](https://python-all.ru/3.2/faq/extending.html#can-i-create-my-own-functions-in-c)2946    - [Можно ли создавать собственные функции на C++?](https://python-all.ru/3.2/faq/extending.html#id1)2947    - [Писать на C сложно; есть ли альтернативы?](https://python-all.ru/3.2/faq/extending.html#writing-c-is-hard-are-there-any-alternatives)2948    - [Как выполнить произвольные инструкции Python из C?](https://python-all.ru/3.2/faq/extending.html#how-can-i-execute-arbitrary-python-statements-from-c)2949    - [Как вычислить произвольное выражение Python из C?](https://python-all.ru/3.2/faq/extending.html#how-can-i-evaluate-an-arbitrary-python-expression-from-c)2950    - [Как извлечь значения C из объекта Python?](https://python-all.ru/3.2/faq/extending.html#how-do-i-extract-c-values-from-a-python-object)2951    - [Как использовать Py\_BuildValue() для создания кортежа произвольной длины?](https://python-all.ru/3.2/faq/extending.html#how-do-i-use-py-buildvalue-to-create-a-tuple-of-arbitrary-length)2952    - [Как вызвать метод объекта из C?](https://python-all.ru/3.2/faq/extending.html#how-do-i-call-an-object-s-method-from-c)2953    - [Как перехватить вывод PyErr\_Print() (или любого другого вывода в stdout/stderr)?](https://python-all.ru/3.2/faq/extending.html#how-do-i-catch-the-output-from-pyerr-print-or-anything-that-prints-to-stdout-stderr)2954    - [Как получить доступ к модулю, написанному на Python, из C?](https://python-all.ru/3.2/faq/extending.html#how-do-i-access-a-module-written-in-python-from-c)2955    - [Как организовать взаимодействие с объектами C++ из Python?](https://python-all.ru/3.2/faq/extending.html#how-do-i-interface-to-c-objects-from-python)2956    - [Почему make завершается ошибкой после добавления модуля через файл Setup?](https://python-all.ru/3.2/faq/extending.html#i-added-a-module-using-the-setup-file-and-the-make-fails-why)2957    - [Как отлаживать расширение?](https://python-all.ru/3.2/faq/extending.html#how-do-i-debug-an-extension)2958    - [Почему при компиляции модуля Python в Linux отсутствуют некоторые файлы?](https://python-all.ru/3.2/faq/extending.html#i-want-to-compile-a-python-module-on-my-linux-system-but-some-files-are-missing-why)2959    - [Что означает «SystemError: \_PyImport\_FixupExtension: module yourmodule not loaded»?](https://python-all.ru/3.2/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean)2960    - [Как отличить «неполный ввод» от «неверного ввода»?](https://python-all.ru/3.2/faq/extending.html#how-do-i-tell-incomplete-input-from-invalid-input)2961    - [Как найти неопределённые символы g++ \_\_builtin\_new или \_\_pure\_virtual?](https://python-all.ru/3.2/faq/extending.html#how-do-i-find-undefined-g-symbols-builtin-new-or-pure-virtual)2962    - [Можно ли создать класс объекта, в котором часть методов реализована на C, а часть – на Python (например, через наследование)?](https://python-all.ru/3.2/faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance)2963    - [Почему при импорте модуля X возникает ошибка «undefined symbol: PyUnicodeUCS2\*»?](https://python-all.ru/3.2/faq/extending.html#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2)2964  - [FAQ по Python в Windows](https://python-all.ru/3.2/faq/windows.html)29652966    - [Как запустить программу Python в Windows?](https://python-all.ru/3.2/faq/windows.html#how-do-i-run-a-python-program-under-windows)2967    - [Как сделать скрипты Python исполняемыми?](https://python-all.ru/3.2/faq/windows.html#how-do-i-make-python-scripts-executable)2968    - [Почему Python иногда так долго запускается?](https://python-all.ru/3.2/faq/windows.html#why-does-python-sometimes-take-so-long-to-start)2969    - [Как создать исполняемый файл из скрипта Python?](https://python-all.ru/3.2/faq/windows.html#how-do-i-make-an-executable-from-a-python-script)2970    - [Является ли файл `*.pyd` тем же самым, что и DLL?](https://python-all.ru/3.2/faq/windows.html#is-a-pyd-file-the-same-as-a-dll)2971    - [Как встроить Python в приложение Windows?](https://python-all.ru/3.2/faq/windows.html#how-can-i-embed-python-into-a-windows-application)2972    - [Как запретить редакторам вставлять табуляцию в исходный код Python?](https://python-all.ru/3.2/faq/windows.html#how-do-i-keep-editors-from-inserting-tabs-into-my-python-source)2973    - [Как проверить нажатие клавиши без блокировки?](https://python-all.ru/3.2/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking)2974    - [Как эмулировать os.kill() в Windows?](https://python-all.ru/3.2/faq/windows.html#how-do-i-emulate-os-kill-in-windows)2975    - [Как извлечь загруженную документацию в Windows?](https://python-all.ru/3.2/faq/windows.html#how-do-i-extract-the-downloaded-documentation-on-windows)2976  - [Часто задаваемые вопросы о графическом интерфейсе пользователя](https://python-all.ru/3.2/faq/gui.html)29772978    - [Общие вопросы по GUI](https://python-all.ru/3.2/faq/gui.html#general-gui-questions)2979    - [Какие существуют кроссплатформенные GUI-инструментарии для Python?](https://python-all.ru/3.2/faq/gui.html#what-platform-independent-gui-toolkits-exist-for-python)2980    - [Какие существуют платформозависимые GUI-инструментарии для Python?](https://python-all.ru/3.2/faq/gui.html#what-platform-specific-gui-toolkits-exist-for-python)2981    - [Вопросы по Tkinter](https://python-all.ru/3.2/faq/gui.html#tkinter-questions)2982  - [FAQ «Почему Python установлен на моём компьютере?»](https://python-all.ru/3.2/faq/installed.html)29832984    - [Что такое Python?](https://python-all.ru/3.2/faq/installed.html#what-is-python)2985    - [Почему Python установлен на моём компьютере?](https://python-all.ru/3.2/faq/installed.html#why-is-python-installed-on-my-machine)2986    - [Можно ли удалить Python?](https://python-all.ru/3.2/faq/installed.html#can-i-delete-python)2987- [Глоссарий](https://python-all.ru/3.2/glossary.html)2988- [Об этих документах](https://python-all.ru/3.2/about.html)29892990  - [Участники документации Python](https://python-all.ru/3.2/about.html#contributors-to-the-python-documentation)2991- [Сообщение об ошибках](https://python-all.ru/3.2/bugs.html)29922993  - [Ошибки в документации](https://python-all.ru/3.2/bugs.html#documentation-bugs)2994  - [Использование трекера задач Python](https://python-all.ru/3.2/bugs.html#using-the-python-issue-tracker)2995- [Авторские права](https://python-all.ru/3.2/copyright.html)2996- [История и лицензия](https://python-all.ru/3.2/license.html)29972998  - [История программного обеспечения](https://python-all.ru/3.2/license.html#history-of-the-software)2999  - [Условия доступа и использования Python](https://python-all.ru/3.2/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python)3000  - [Лицензии и благодарности для включённого программного обеспечения](https://python-all.ru/3.2/license.html#licenses-and-acknowledgements-for-incorporated-software)30013002    - [Вихрь Мерсенна](https://python-all.ru/3.2/license.html#mersenne-twister)3003    - [Сокеты](https://python-all.ru/3.2/license.html#sockets)3004    - [Управление исключениями с плавающей точкой](https://python-all.ru/3.2/license.html#floating-point-exception-control)3005    - [Асинхронные службы сокетов](https://python-all.ru/3.2/license.html#asynchronous-socket-services)3006    - [Управление cookie](https://python-all.ru/3.2/license.html#cookie-management)3007    - [Трассировка выполнения](https://python-all.ru/3.2/license.html#execution-tracing)3008    - [Функции UUencode и UUdecode](https://python-all.ru/3.2/license.html#uuencode-and-uudecode-functions)3009    - [XML-вызовы удалённых процедур](https://python-all.ru/3.2/license.html#xml-remote-procedure-calls)3010    - [test\_epoll](https://python-all.ru/3.2/license.html#test-epoll)3011    - [Select kqueue](https://python-all.ru/3.2/license.html#select-kqueue)3012    - [strtod and dtoa](https://python-all.ru/3.2/license.html#strtod-and-dtoa)3013    - [OpenSSL](https://python-all.ru/3.2/license.html#openssl)3014    - [expat](https://python-all.ru/3.2/license.html#expat)3015    - [libffi](https://python-all.ru/3.2/license.html#libffi)3016    - [zlib](https://python-all.ru/3.2/license.html#zlib)3017