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

contents.md

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

1> **Источник:** https://python-all.ru/3.1/contents.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Содержание документации Python89- [Что нового в Python](https://python-all.ru/3.1/whatsnew/index.html)1011  - [Что нового в Python 3.1](https://python-all.ru/3.1/whatsnew/3.1.html)1213    - [PEP 372: Упорядоченные словари](https://python-all.ru/3.1/whatsnew/3.1.html#pep-372-ordered-dictionaries)14    - [PEP 378: Спецификатор формата для разделителя тысяч](https://python-all.ru/3.1/whatsnew/3.1.html#pep-378-format-specifier-for-thousands-separator)15    - [Прочие изменения языка](https://python-all.ru/3.1/whatsnew/3.1.html#other-language-changes)16    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.1/whatsnew/3.1.html#new-improved-and-deprecated-modules)17    - [Оптимизации](https://python-all.ru/3.1/whatsnew/3.1.html#optimizations)18    - [IDLE](https://python-all.ru/3.1/whatsnew/3.1.html#idle)19    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/3.1.html#build-and-c-api-changes)20    - [Переход на Python 3.1](https://python-all.ru/3.1/whatsnew/3.1.html#porting-to-python-3-1)21  - [Что нового в Python 3.0](https://python-all.ru/3.1/whatsnew/3.0.html)2223    - [Типичные трудности](https://python-all.ru/3.1/whatsnew/3.0.html#common-stumbling-blocks)2425      - [Print – это функция](https://python-all.ru/3.1/whatsnew/3.0.html#print-is-a-function)26      - [Представления и итераторы вместо списков](https://python-all.ru/3.1/whatsnew/3.0.html#views-and-iterators-instead-of-lists)27      - [Сравнение на упорядочивание](https://python-all.ru/3.1/whatsnew/3.0.html#ordering-comparisons)28      - [Целые числа](https://python-all.ru/3.1/whatsnew/3.0.html#integers)29      - [Текст против данных: вместо Unicode и 8-битных строк](https://python-all.ru/3.1/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit)30    - [Обзор изменений синтаксиса](https://python-all.ru/3.1/whatsnew/3.0.html#overview-of-syntax-changes)3132      - [Новый синтаксис](https://python-all.ru/3.1/whatsnew/3.0.html#new-syntax)33      - [Изменённый синтаксис](https://python-all.ru/3.1/whatsnew/3.0.html#changed-syntax)34      - [Удалённый синтаксис](https://python-all.ru/3.1/whatsnew/3.0.html#removed-syntax)35    - [Изменения, уже присутствовавшие в Python 2.6](https://python-all.ru/3.1/whatsnew/3.0.html#changes-already-present-in-python-2-6)36    - [Изменения в библиотеке](https://python-all.ru/3.1/whatsnew/3.0.html#library-changes)37    - [**PEP 3101**: Новый подход к форматированию строк](https://python-all.ru/3.1/whatsnew/3.0.html#pep-3101-a-new-approach-to-string-formatting)38    - [Изменения в исключениях](https://python-all.ru/3.1/whatsnew/3.0.html#changes-to-exceptions)39    - [Прочие изменения](https://python-all.ru/3.1/whatsnew/3.0.html#miscellaneous-other-changes)4041      - [Операторы и специальные методы](https://python-all.ru/3.1/whatsnew/3.0.html#operators-and-special-methods)42      - [Встроенные функции](https://python-all.ru/3.1/whatsnew/3.0.html#builtins)43    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/3.0.html#build-and-c-api-changes)44    - [Производительность](https://python-all.ru/3.1/whatsnew/3.0.html#performance)45    - [Переход на Python 3.0](https://python-all.ru/3.1/whatsnew/3.0.html#porting-to-python-3-0)46  - [Что нового в Python 2.6](https://python-all.ru/3.1/whatsnew/2.6.html)4748    - [Python 3.0](https://python-all.ru/3.1/whatsnew/2.6.html#python-3-0)49    - [Изменения в процессе разработки](https://python-all.ru/3.1/whatsnew/2.6.html#changes-to-the-development-process)5051      - [Новый трекер ошибок: Roundup](https://python-all.ru/3.1/whatsnew/2.6.html#new-issue-tracker-roundup)52      - [Новый формат документации: reStructuredText с использованием Sphinx](https://python-all.ru/3.1/whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx)53    - [PEP 343: Оператор 'with'](https://python-all.ru/3.1/whatsnew/2.6.html#pep-343-the-with-statement)5455      - [Написание контекстных менеджеров](https://python-all.ru/3.1/whatsnew/2.6.html#writing-context-managers)56      - [Модуль contextlib](https://python-all.ru/3.1/whatsnew/2.6.html#the-contextlib-module)57    - [PEP 366: Явные относительные импорты из главного модуля](https://python-all.ru/3.1/whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module)58    - [PEP 370: Пользовательская `site-packages` директория](https://python-all.ru/3.1/whatsnew/2.6.html#pep-370-per-user-site-packages-directory)59    - [PEP 371: Пакет `multiprocessing`](https://python-all.ru/3.1/whatsnew/2.6.html#pep-371-the-multiprocessing-package)60    - [PEP 3101: Расширенное форматирование строк](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3101-advanced-string-formatting)61    - [PEP 3105: `print` как функция](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3105-print-as-a-function)62    - [PEP 3110: Изменения в обработке исключений](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3110-exception-handling-changes)63    - [PEP 3112: Байтовые литералы](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3112-byte-literals)64    - [PEP 3116: Новая библиотека ввода-вывода](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3116-new-i-o-library)65    - [PEP 3118: Пересмотренный протокол буферов](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3118-revised-buffer-protocol)66    - [PEP 3119: Абстрактные базовые классы](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3119-abstract-base-classes)67    - [PEP 3127: Поддержка и синтаксис целочисленных литералов](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax)68    - [PEP 3129: Декораторы классов](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3129-class-decorators)69    - [PEP 3141: Иерархия типов для чисел](https://python-all.ru/3.1/whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers)7071      - [Модуль `fractions`](https://python-all.ru/3.1/whatsnew/2.6.html#the-fractions-module)72    - [Прочие изменения языка](https://python-all.ru/3.1/whatsnew/2.6.html#other-language-changes)7374      - [Оптимизации](https://python-all.ru/3.1/whatsnew/2.6.html#optimizations)75      - [Изменения в интерпретаторе](https://python-all.ru/3.1/whatsnew/2.6.html#interpreter-changes)76    - [Новые и улучшенные модули](https://python-all.ru/3.1/whatsnew/2.6.html#new-and-improved-modules)7778      - [Модуль `ast`](https://python-all.ru/3.1/whatsnew/2.6.html#the-ast-module)79      - [Модуль `future_builtins`](https://python-all.ru/3.1/whatsnew/2.6.html#the-future-builtins-module)80      - [Модуль `json`: JavaScript Object Notation](https://python-all.ru/3.1/whatsnew/2.6.html#the-json-module-javascript-object-notation)81      - [Модуль `plistlib`: парсер списков свойств](https://python-all.ru/3.1/whatsnew/2.6.html#the-plistlib-module-a-property-list-parser)82      - [Улучшения ctypes](https://python-all.ru/3.1/whatsnew/2.6.html#ctypes-enhancements)83      - [Улучшенная поддержка SSL](https://python-all.ru/3.1/whatsnew/2.6.html#improved-ssl-support)84    - [Устаревания и удаления](https://python-all.ru/3.1/whatsnew/2.6.html#deprecations-and-removals)85    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/2.6.html#build-and-c-api-changes)8687      - [Изменения для конкретных платформ: Windows](https://python-all.ru/3.1/whatsnew/2.6.html#port-specific-changes-windows)88      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/3.1/whatsnew/2.6.html#port-specific-changes-mac-os-x)89      - [Изменения для конкретных платформ: IRIX](https://python-all.ru/3.1/whatsnew/2.6.html#port-specific-changes-irix)90    - [Переход на Python 2.6](https://python-all.ru/3.1/whatsnew/2.6.html#porting-to-python-2-6)91    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.6.html#acknowledgements)92  - [Что нового в Python 2.5](https://python-all.ru/3.1/whatsnew/2.5.html)9394    - [PEP 308: Условные выражения](https://python-all.ru/3.1/whatsnew/2.5.html#pep-308-conditional-expressions)95    - [PEP 309: Частичное применение функций](https://python-all.ru/3.1/whatsnew/2.5.html#pep-309-partial-function-application)96    - [PEP 314: Метаданные для пакетов Python v1.1](https://python-all.ru/3.1/whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1)97    - [PEP 328: Абсолютные и относительные импорты](https://python-all.ru/3.1/whatsnew/2.5.html#pep-328-absolute-and-relative-imports)98    - [PEP 338: Выполнение модулей как сценариев](https://python-all.ru/3.1/whatsnew/2.5.html#pep-338-executing-modules-as-scripts)99    - [PEP 341: Единый try/except/finally](https://python-all.ru/3.1/whatsnew/2.5.html#pep-341-unified-try-except-finally)100    - [PEP 342: Новые возможности генераторов](https://python-all.ru/3.1/whatsnew/2.5.html#pep-342-new-generator-features)101    - [PEP 343: Оператор 'with'](https://python-all.ru/3.1/whatsnew/2.5.html#pep-343-the-with-statement)102103      - [Написание контекстных менеджеров](https://python-all.ru/3.1/whatsnew/2.5.html#writing-context-managers)104      - [Модуль contextlib](https://python-all.ru/3.1/whatsnew/2.5.html#the-contextlib-module)105    - [PEP 352: Исключения как классы нового стиля](https://python-all.ru/3.1/whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes)106    - [PEP 353: Использование ssize\_t в качестве типа индекса](https://python-all.ru/3.1/whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type)107    - [PEP 357: Метод '\_\_index\_\_'](https://python-all.ru/3.1/whatsnew/2.5.html#pep-357-the-index-method)108    - [Прочие изменения языка](https://python-all.ru/3.1/whatsnew/2.5.html#other-language-changes)109110      - [Изменения в интерактивном интерпретаторе](https://python-all.ru/3.1/whatsnew/2.5.html#interactive-interpreter-changes)111      - [Оптимизации](https://python-all.ru/3.1/whatsnew/2.5.html#optimizations)112    - [Новые, улучшенные и удалённые модули](https://python-all.ru/3.1/whatsnew/2.5.html#new-improved-and-removed-modules)113114      - [Пакет ctypes](https://python-all.ru/3.1/whatsnew/2.5.html#the-ctypes-package)115      - [Пакет ElementTree](https://python-all.ru/3.1/whatsnew/2.5.html#the-elementtree-package)116      - [Пакет hashlib](https://python-all.ru/3.1/whatsnew/2.5.html#the-hashlib-package)117      - [Пакет sqlite3](https://python-all.ru/3.1/whatsnew/2.5.html#the-sqlite3-package)118      - [Пакет wsgiref](https://python-all.ru/3.1/whatsnew/2.5.html#the-wsgiref-package)119    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/2.5.html#build-and-c-api-changes)120121      - [Изменения для конкретных платформ](https://python-all.ru/3.1/whatsnew/2.5.html#port-specific-changes)122    - [Перенос на Python 2.5](https://python-all.ru/3.1/whatsnew/2.5.html#porting-to-python-2-5)123    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.5.html#acknowledgements)124  - [Что нового в Python 2.4](https://python-all.ru/3.1/whatsnew/2.4.html)125126    - [PEP 218: Встроенные объекты множеств](https://python-all.ru/3.1/whatsnew/2.4.html#pep-218-built-in-set-objects)127    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/3.1/whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers)128    - [PEP 289: Генераторные выражения](https://python-all.ru/3.1/whatsnew/2.4.html#pep-289-generator-expressions)129    - [PEP 292: Упрощённая подстановка строк](https://python-all.ru/3.1/whatsnew/2.4.html#pep-292-simpler-string-substitutions)130    - [PEP 318: Декораторы для функций и методов](https://python-all.ru/3.1/whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods)131    - [PEP 322: Обратная итерация](https://python-all.ru/3.1/whatsnew/2.4.html#pep-322-reverse-iteration)132    - [PEP 324: Новый модуль подпроцесса](https://python-all.ru/3.1/whatsnew/2.4.html#pep-324-new-subprocess-module)133    - [PEP 327: Тип данных Decimal](https://python-all.ru/3.1/whatsnew/2.4.html#pep-327-decimal-data-type)134135      - [Зачем нужен Decimal?](https://python-all.ru/3.1/whatsnew/2.4.html#why-is-decimal-needed)136      - [Тип `Decimal`](https://python-all.ru/3.1/whatsnew/2.4.html#the-decimal-type)137      - [Тип `Context`](https://python-all.ru/3.1/whatsnew/2.4.html#the-context-type)138    - [PEP 328: Многострочные импорты](https://python-all.ru/3.1/whatsnew/2.4.html#pep-328-multi-line-imports)139    - [PEP 331: Независящие от локали преобразования float/строк](https://python-all.ru/3.1/whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions)140    - [Прочие изменения языка](https://python-all.ru/3.1/whatsnew/2.4.html#other-language-changes)141142      - [Оптимизации](https://python-all.ru/3.1/whatsnew/2.4.html#optimizations)143    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.1/whatsnew/2.4.html#new-improved-and-deprecated-modules)144145      - [cookielib](https://python-all.ru/3.1/whatsnew/2.4.html#cookielib)146      - [doctest](https://python-all.ru/3.1/whatsnew/2.4.html#doctest)147    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/2.4.html#build-and-c-api-changes)148149      - [Изменения для конкретных платформ](https://python-all.ru/3.1/whatsnew/2.4.html#port-specific-changes)150    - [Перенос на Python 2.4](https://python-all.ru/3.1/whatsnew/2.4.html#porting-to-python-2-4)151    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.4.html#acknowledgements)152  - [Что нового в Python 2.3](https://python-all.ru/3.1/whatsnew/2.3.html)153154    - [PEP 218: Стандартный тип set](https://python-all.ru/3.1/whatsnew/2.3.html#pep-218-a-standard-set-datatype)155    - [PEP 255: простые генераторы](https://python-all.ru/3.1/whatsnew/2.3.html#pep-255-simple-generators)156    - [PEP 263: Кодировки исходного кода](https://python-all.ru/3.1/whatsnew/2.3.html#pep-263-source-code-encodings)157    - [PEP 273: Импорт модулей из ZIP-архивов](https://python-all.ru/3.1/whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives)158    - [PEP 277: Поддержка имён файлов в Unicode для Windows NT](https://python-all.ru/3.1/whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt)159    - [PEP 278: Универсальная поддержка символов новой строки](https://python-all.ru/3.1/whatsnew/2.3.html#pep-278-universal-newline-support)160    - [PEP 279: enumerate()](https://python-all.ru/3.1/whatsnew/2.3.html#pep-279-enumerate)161    - [PEP 282: Пакет logging](https://python-all.ru/3.1/whatsnew/2.3.html#pep-282-the-logging-package)162    - [PEP 285: Булев тип](https://python-all.ru/3.1/whatsnew/2.3.html#pep-285-a-boolean-type)163    - [PEP 293: Колбэки обработки ошибок кодеков](https://python-all.ru/3.1/whatsnew/2.3.html#pep-293-codec-error-handling-callbacks)164    - [PEP 301: Индекс пакетов и метаданные для Distutils](https://python-all.ru/3.1/whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils)165    - [PEP 302: Новые хуки импорта](https://python-all.ru/3.1/whatsnew/2.3.html#pep-302-new-import-hooks)166    - [PEP 305: Файлы с разделителями-запятыми](https://python-all.ru/3.1/whatsnew/2.3.html#pep-305-comma-separated-files)167    - [PEP 307: Улучшения pickle](https://python-all.ru/3.1/whatsnew/2.3.html#pep-307-pickle-enhancements)168    - [Расширенные срезы](https://python-all.ru/3.1/whatsnew/2.3.html#extended-slices)169    - [Прочие изменения языка](https://python-all.ru/3.1/whatsnew/2.3.html#other-language-changes)170171      - [Изменения в строках](https://python-all.ru/3.1/whatsnew/2.3.html#string-changes)172      - [Оптимизации](https://python-all.ru/3.1/whatsnew/2.3.html#optimizations)173    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/3.1/whatsnew/2.3.html#new-improved-and-deprecated-modules)174175      - [Тип даты/времени](https://python-all.ru/3.1/whatsnew/2.3.html#date-time-type)176      - [Модуль optparse](https://python-all.ru/3.1/whatsnew/2.3.html#the-optparse-module)177    - [Pymalloc: Специализированный аллокатор объектов](https://python-all.ru/3.1/whatsnew/2.3.html#pymalloc-a-specialized-object-allocator)178    - [Изменения в сборке и C API](https://python-all.ru/3.1/whatsnew/2.3.html#build-and-c-api-changes)179180      - [Изменения для конкретных платформ](https://python-all.ru/3.1/whatsnew/2.3.html#port-specific-changes)181    - [Прочие изменения и исправления](https://python-all.ru/3.1/whatsnew/2.3.html#other-changes-and-fixes)182    - [Перенос на Python 2.3](https://python-all.ru/3.1/whatsnew/2.3.html#porting-to-python-2-3)183    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.3.html#acknowledgements)184  - [Что нового в Python 2.2](https://python-all.ru/3.1/whatsnew/2.2.html)185186    - [Введение](https://python-all.ru/3.1/whatsnew/2.2.html#introduction)187    - [PEP 252 и 253: изменения типов и классов](https://python-all.ru/3.1/whatsnew/2.2.html#peps-252-and-253-type-and-class-changes)188189      - [Старые и новые классы](https://python-all.ru/3.1/whatsnew/2.2.html#old-and-new-classes)190      - [Дескрипторы](https://python-all.ru/3.1/whatsnew/2.2.html#descriptors)191      - [Множественное наследование: правило ромба](https://python-all.ru/3.1/whatsnew/2.2.html#multiple-inheritance-the-diamond-rule)192      - [Доступ к атрибутам](https://python-all.ru/3.1/whatsnew/2.2.html#attribute-access)193      - [Связанные ссылки](https://python-all.ru/3.1/whatsnew/2.2.html#related-links)194    - [PEP 234: итераторы](https://python-all.ru/3.1/whatsnew/2.2.html#pep-234-iterators)195    - [PEP 255: простые генераторы](https://python-all.ru/3.1/whatsnew/2.2.html#pep-255-simple-generators)196    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/3.1/whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers)197    - [PEP 238: изменение оператора деления](https://python-all.ru/3.1/whatsnew/2.2.html#pep-238-changing-the-division-operator)198    - [Изменения в Unicode](https://python-all.ru/3.1/whatsnew/2.2.html#unicode-changes)199    - [PEP 227: вложенные области видимости](https://python-all.ru/3.1/whatsnew/2.2.html#pep-227-nested-scopes)200    - [Новые и улучшенные модули](https://python-all.ru/3.1/whatsnew/2.2.html#new-and-improved-modules)201    - [Изменения и исправления интерпретатора](https://python-all.ru/3.1/whatsnew/2.2.html#interpreter-changes-and-fixes)202    - [Прочие изменения и исправления](https://python-all.ru/3.1/whatsnew/2.2.html#other-changes-and-fixes)203    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.2.html#acknowledgements)204  - [Что нового в Python 2.1](https://python-all.ru/3.1/whatsnew/2.1.html)205206    - [Введение](https://python-all.ru/3.1/whatsnew/2.1.html#introduction)207    - [PEP 227: вложенные области видимости](https://python-all.ru/3.1/whatsnew/2.1.html#pep-227-nested-scopes)208    - [PEP 236: директивы \_\_future\_\_](https://python-all.ru/3.1/whatsnew/2.1.html#pep-236-future-directives)209    - [PEP 207: расширенные сравнения](https://python-all.ru/3.1/whatsnew/2.1.html#pep-207-rich-comparisons)210    - [PEP 230: инфраструктура предупреждений](https://python-all.ru/3.1/whatsnew/2.1.html#pep-230-warning-framework)211    - [PEP 229: новая система сборки](https://python-all.ru/3.1/whatsnew/2.1.html#pep-229-new-build-system)212    - [PEP 205: слабые ссылки](https://python-all.ru/3.1/whatsnew/2.1.html#pep-205-weak-references)213    - [PEP 232: атрибуты функций](https://python-all.ru/3.1/whatsnew/2.1.html#pep-232-function-attributes)214    - [PEP 235: импорт модулей на платформах, нечувствительных к регистру](https://python-all.ru/3.1/whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms)215    - [PEP 217: интерактивный перехватчик вывода](https://python-all.ru/3.1/whatsnew/2.1.html#pep-217-interactive-display-hook)216    - [PEP 208: новая модель приведения типов](https://python-all.ru/3.1/whatsnew/2.1.html#pep-208-new-coercion-model)217    - [PEP 241: метаданные в пакетах Python](https://python-all.ru/3.1/whatsnew/2.1.html#pep-241-metadata-in-python-packages)218    - [Новые и улучшенные модули](https://python-all.ru/3.1/whatsnew/2.1.html#new-and-improved-modules)219    - [Прочие изменения и исправления](https://python-all.ru/3.1/whatsnew/2.1.html#other-changes-and-fixes)220    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.1.html#acknowledgements)221  - [Что нового в Python 2.0](https://python-all.ru/3.1/whatsnew/2.0.html)222223    - [Введение](https://python-all.ru/3.1/whatsnew/2.0.html#introduction)224    - [А что насчёт Python 1.6?](https://python-all.ru/3.1/whatsnew/2.0.html#what-about-python-1-6)225    - [Новый процесс разработки](https://python-all.ru/3.1/whatsnew/2.0.html#new-development-process)226    - [Юникод](https://python-all.ru/3.1/whatsnew/2.0.html#unicode)227    - [Списковые включения](https://python-all.ru/3.1/whatsnew/2.0.html#list-comprehensions)228    - [Расширенное присваивание](https://python-all.ru/3.1/whatsnew/2.0.html#augmented-assignment)229    - [Методы строк](https://python-all.ru/3.1/whatsnew/2.0.html#string-methods)230    - [Сборка мусора циклических ссылок](https://python-all.ru/3.1/whatsnew/2.0.html#garbage-collection-of-cycles)231    - [Другие изменения ядра](https://python-all.ru/3.1/whatsnew/2.0.html#other-core-changes)232233      - [Мелкие изменения языка](https://python-all.ru/3.1/whatsnew/2.0.html#minor-language-changes)234      - [Изменения встроенных функций](https://python-all.ru/3.1/whatsnew/2.0.html#changes-to-built-in-functions)235    - [Перенос на 2.0](https://python-all.ru/3.1/whatsnew/2.0.html#porting-to-2-0)236    - [Изменения в расширении/встраивании](https://python-all.ru/3.1/whatsnew/2.0.html#extending-embedding-changes)237    - [Distutils: упрощение установки модулей](https://python-all.ru/3.1/whatsnew/2.0.html#distutils-making-modules-easy-to-install)238    - [Модули XML](https://python-all.ru/3.1/whatsnew/2.0.html#xml-modules)239240      - [Поддержка SAX2](https://python-all.ru/3.1/whatsnew/2.0.html#sax2-support)241      - [Поддержка DOM](https://python-all.ru/3.1/whatsnew/2.0.html#dom-support)242      - [Связь с PyXML](https://python-all.ru/3.1/whatsnew/2.0.html#relationship-to-pyxml)243    - [Изменения модулей](https://python-all.ru/3.1/whatsnew/2.0.html#module-changes)244    - [Новые модули](https://python-all.ru/3.1/whatsnew/2.0.html#new-modules)245    - [Улучшения IDLE](https://python-all.ru/3.1/whatsnew/2.0.html#idle-improvements)246    - [Удалённые и устаревшие модули](https://python-all.ru/3.1/whatsnew/2.0.html#deleted-and-deprecated-modules)247    - [Благодарности](https://python-all.ru/3.1/whatsnew/2.0.html#acknowledgements)248- [Учебник Python](https://python-all.ru/3.1/tutorial/index.html)249250  - [1. Введение](https://python-all.ru/3.1/tutorial/appetite.html)251  - [2. Использование интерпретатора Python](https://python-all.ru/3.1/tutorial/interpreter.html)252253    - [2.1. Запуск интерпретатора](https://python-all.ru/3.1/tutorial/interpreter.html#invoking-the-interpreter)254255      - [2.1.1. Передача аргументов](https://python-all.ru/3.1/tutorial/interpreter.html#argument-passing)256      - [2.1.2. Интерактивный режим](https://python-all.ru/3.1/tutorial/interpreter.html#interactive-mode)257    - [2.2. Интерпретатор и его окружение](https://python-all.ru/3.1/tutorial/interpreter.html#the-interpreter-and-its-environment)258259      - [2.2.1. Обработка ошибок](https://python-all.ru/3.1/tutorial/interpreter.html#error-handling)260      - [2.2.2. Исполняемые скрипты Python](https://python-all.ru/3.1/tutorial/interpreter.html#executable-python-scripts)261      - [2.2.3. Кодировка исходного кода](https://python-all.ru/3.1/tutorial/interpreter.html#source-code-encoding)262      - [2.2.4. Интерактивный файл запуска](https://python-all.ru/3.1/tutorial/interpreter.html#the-interactive-startup-file)263  - [3. Неформальное введение в Python](https://python-all.ru/3.1/tutorial/introduction.html)264265    - [3.1. Использование Python в качестве калькулятора](https://python-all.ru/3.1/tutorial/introduction.html#using-python-as-a-calculator)266267      - [3.1.1. Числа](https://python-all.ru/3.1/tutorial/introduction.html#numbers)268      - [3.1.2. Строки](https://python-all.ru/3.1/tutorial/introduction.html#strings)269      - [3.1.3. О Unicode](https://python-all.ru/3.1/tutorial/introduction.html#about-unicode)270      - [3.1.4. Списки](https://python-all.ru/3.1/tutorial/introduction.html#lists)271    - [3.2. Первые шаги к программированию](https://python-all.ru/3.1/tutorial/introduction.html#first-steps-towards-programming)272  - [4. Дополнительные средства управления потоком](https://python-all.ru/3.1/tutorial/controlflow.html)273274    - [4.1. `if` Инструкции](https://python-all.ru/3.1/tutorial/controlflow.html#if-statements)275    - [4.2. `for` Инструкции](https://python-all.ru/3.1/tutorial/controlflow.html#for-statements)276    - [4.3. Функция `range()`](https://python-all.ru/3.1/tutorial/controlflow.html#the-range-function)277    - [4.4. `break` и `continue` инструкции, а также `else` предложения в циклах](https://python-all.ru/3.1/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops)278    - [4.5. `pass` Инструкции](https://python-all.ru/3.1/tutorial/controlflow.html#pass-statements)279    - [4.6. Определение функций](https://python-all.ru/3.1/tutorial/controlflow.html#defining-functions)280    - [4.7. Подробнее об определении функций](https://python-all.ru/3.1/tutorial/controlflow.html#more-on-defining-functions)281282      - [4.7.1. Значения аргументов по умолчанию](https://python-all.ru/3.1/tutorial/controlflow.html#default-argument-values)283      - [4.7.2. Именованные аргументы](https://python-all.ru/3.1/tutorial/controlflow.html#keyword-arguments)284      - [4.7.3. Произвольные списки аргументов](https://python-all.ru/3.1/tutorial/controlflow.html#arbitrary-argument-lists)285      - [4.7.4. Распаковка списков аргументов](https://python-all.ru/3.1/tutorial/controlflow.html#unpacking-argument-lists)286      - [4.7.5. Лямбда-выражения](https://python-all.ru/3.1/tutorial/controlflow.html#lambda-forms)287      - [4.7.6. Строки документации](https://python-all.ru/3.1/tutorial/controlflow.html#documentation-strings)288    - [4.8. Интермеццо: стиль кодирования](https://python-all.ru/3.1/tutorial/controlflow.html#intermezzo-coding-style)289  - [5. Структуры данных](https://python-all.ru/3.1/tutorial/datastructures.html)290291    - [5.1. Подробнее о списках](https://python-all.ru/3.1/tutorial/datastructures.html#more-on-lists)292293      - [5.1.1. Использование списков как стеков](https://python-all.ru/3.1/tutorial/datastructures.html#using-lists-as-stacks)294      - [5.1.2. Использование списков как очередей](https://python-all.ru/3.1/tutorial/datastructures.html#using-lists-as-queues)295      - [5.1.3. Списковые включения](https://python-all.ru/3.1/tutorial/datastructures.html#list-comprehensions)296      - [5.1.4. Вложенные списковые включения](https://python-all.ru/3.1/tutorial/datastructures.html#nested-list-comprehensions)297    - [5.2. Инструкция `del`](https://python-all.ru/3.1/tutorial/datastructures.html#the-del-statement)298    - [5.3. Кортежи и последовательности](https://python-all.ru/3.1/tutorial/datastructures.html#tuples-and-sequences)299    - [5.4. Множества](https://python-all.ru/3.1/tutorial/datastructures.html#sets)300    - [5.5. Словари](https://python-all.ru/3.1/tutorial/datastructures.html#dictionaries)301    - [5.6. Приёмы работы с циклами](https://python-all.ru/3.1/tutorial/datastructures.html#looping-techniques)302    - [5.7. Подробнее об условиях](https://python-all.ru/3.1/tutorial/datastructures.html#more-on-conditions)303    - [5.8. Сравнение последовательностей и других типов](https://python-all.ru/3.1/tutorial/datastructures.html#comparing-sequences-and-other-types)304  - [6. Модули](https://python-all.ru/3.1/tutorial/modules.html)305306    - [6.1. Подробнее о модулях](https://python-all.ru/3.1/tutorial/modules.html#more-on-modules)307308      - [6.1.1. Запуск модулей как скриптов](https://python-all.ru/3.1/tutorial/modules.html#executing-modules-as-scripts)309      - [6.1.2. Путь поиска модулей](https://python-all.ru/3.1/tutorial/modules.html#the-module-search-path)310      - [6.1.3. «Скомпилированные» файлы Python](https://python-all.ru/3.1/tutorial/modules.html#compiled-python-files)311    - [6.2. Стандартные модули](https://python-all.ru/3.1/tutorial/modules.html#standard-modules)312    - [6.3. Функция `dir()`](https://python-all.ru/3.1/tutorial/modules.html#the-dir-function)313    - [6.4. Пакеты](https://python-all.ru/3.1/tutorial/modules.html#packages)314315      - [6.4.1. Импорт \* из пакета](https://python-all.ru/3.1/tutorial/modules.html#importing-from-a-package)316      - [6.4.2. Ссылки внутри пакета](https://python-all.ru/3.1/tutorial/modules.html#intra-package-references)317      - [6.4.3. Пакеты в нескольких каталогах](https://python-all.ru/3.1/tutorial/modules.html#packages-in-multiple-directories)318  - [7. Ввод и вывод](https://python-all.ru/3.1/tutorial/inputoutput.html)319320    - [7.1. Более сложное форматирование вывода](https://python-all.ru/3.1/tutorial/inputoutput.html#fancier-output-formatting)321322      - [7.1.1. Старое форматирование строк](https://python-all.ru/3.1/tutorial/inputoutput.html#old-string-formatting)323    - [7.2. Чтение и запись файлов](https://python-all.ru/3.1/tutorial/inputoutput.html#reading-and-writing-files)324325      - [7.2.1. Методы файловых объектов](https://python-all.ru/3.1/tutorial/inputoutput.html#methods-of-file-objects)326      - [7.2.2. Модуль `pickle`](https://python-all.ru/3.1/tutorial/inputoutput.html#the-pickle-module)327  - [8. Ошибки и исключения](https://python-all.ru/3.1/tutorial/errors.html)328329    - [8.1. Синтаксические ошибки](https://python-all.ru/3.1/tutorial/errors.html#syntax-errors)330    - [8.2. Исключения](https://python-all.ru/3.1/tutorial/errors.html#exceptions)331    - [8.3. Обработка исключений](https://python-all.ru/3.1/tutorial/errors.html#handling-exceptions)332    - [8.4. Возбуждение исключений](https://python-all.ru/3.1/tutorial/errors.html#raising-exceptions)333    - [8.5. Пользовательские исключения](https://python-all.ru/3.1/tutorial/errors.html#user-defined-exceptions)334    - [8.6. Определение действий по очистке](https://python-all.ru/3.1/tutorial/errors.html#defining-clean-up-actions)335    - [8.7. Предопределённые действия по очистке](https://python-all.ru/3.1/tutorial/errors.html#predefined-clean-up-actions)336  - [9. Классы](https://python-all.ru/3.1/tutorial/classes.html)337338    - [9.1. Несколько слов об именах и объектах](https://python-all.ru/3.1/tutorial/classes.html#a-word-about-names-and-objects)339    - [9.2. Области видимости и пространства имён Python](https://python-all.ru/3.1/tutorial/classes.html#python-scopes-and-namespaces)340341      - [9.2.1. Пример областей видимости и пространств имён](https://python-all.ru/3.1/tutorial/classes.html#scopes-and-namespaces-example)342    - [9.3. Первое знакомство с классами](https://python-all.ru/3.1/tutorial/classes.html#a-first-look-at-classes)343344      - [9.3.1. Синтаксис определения класса](https://python-all.ru/3.1/tutorial/classes.html#class-definition-syntax)345      - [9.3.2. Объекты классов](https://python-all.ru/3.1/tutorial/classes.html#class-objects)346      - [9.3.3. Объекты экземпляров](https://python-all.ru/3.1/tutorial/classes.html#instance-objects)347      - [9.3.4. Объекты методов](https://python-all.ru/3.1/tutorial/classes.html#method-objects)348    - [9.4. Разные замечания](https://python-all.ru/3.1/tutorial/classes.html#random-remarks)349    - [9.5. Наследование](https://python-all.ru/3.1/tutorial/classes.html#inheritance)350351      - [9.5.1. Множественное наследование](https://python-all.ru/3.1/tutorial/classes.html#multiple-inheritance)352    - [9.6. Приватные переменные](https://python-all.ru/3.1/tutorial/classes.html#private-variables)353    - [9.7. Разное](https://python-all.ru/3.1/tutorial/classes.html#odds-and-ends)354    - [9.8. Исключения – тоже классы](https://python-all.ru/3.1/tutorial/classes.html#exceptions-are-classes-too)355    - [9.9. Итераторы](https://python-all.ru/3.1/tutorial/classes.html#iterators)356    - [9.10. Генераторы](https://python-all.ru/3.1/tutorial/classes.html#generators)357    - [9.11. Генераторные выражения](https://python-all.ru/3.1/tutorial/classes.html#generator-expressions)358  - [10. Краткий обзор стандартной библиотеки](https://python-all.ru/3.1/tutorial/stdlib.html)359360    - [10.1. Интерфейс операционной системы](https://python-all.ru/3.1/tutorial/stdlib.html#operating-system-interface)361    - [10.2. Файловые шаблоны](https://python-all.ru/3.1/tutorial/stdlib.html#file-wildcards)362    - [10.3. Аргументы командной строки](https://python-all.ru/3.1/tutorial/stdlib.html#command-line-arguments)363    - [10.4. Перенаправление вывода ошибок и завершение программы](https://python-all.ru/3.1/tutorial/stdlib.html#error-output-redirection-and-program-termination)364    - [10.5. Поиск по шаблону в строках](https://python-all.ru/3.1/tutorial/stdlib.html#string-pattern-matching)365    - [10.6. Математика](https://python-all.ru/3.1/tutorial/stdlib.html#mathematics)366    - [10.7. Доступ в Интернет](https://python-all.ru/3.1/tutorial/stdlib.html#internet-access)367    - [10.8. Даты и время](https://python-all.ru/3.1/tutorial/stdlib.html#dates-and-times)368    - [10.9. Сжатие данных](https://python-all.ru/3.1/tutorial/stdlib.html#data-compression)369    - [10.10. Измерение производительности](https://python-all.ru/3.1/tutorial/stdlib.html#performance-measurement)370    - [10.11. Контроль качества](https://python-all.ru/3.1/tutorial/stdlib.html#quality-control)371    - [10.12. Батарейки в комплекте](https://python-all.ru/3.1/tutorial/stdlib.html#batteries-included)372  - [11. Краткий обзор стандартной библиотеки – Часть II](https://python-all.ru/3.1/tutorial/stdlib2.html)373374    - [11.1. Форматирование вывода](https://python-all.ru/3.1/tutorial/stdlib2.html#output-formatting)375    - [11.2. Шаблоны](https://python-all.ru/3.1/tutorial/stdlib2.html#templating)376    - [11.3. Работа с двоичными данными и структурами записей](https://python-all.ru/3.1/tutorial/stdlib2.html#working-with-binary-data-record-layouts)377    - [11.4. Многопоточность](https://python-all.ru/3.1/tutorial/stdlib2.html#multi-threading)378    - [11.5. Логирование](https://python-all.ru/3.1/tutorial/stdlib2.html#logging)379    - [11.6. Слабые ссылки](https://python-all.ru/3.1/tutorial/stdlib2.html#weak-references)380    - [11.7. Инструменты для работы со списками](https://python-all.ru/3.1/tutorial/stdlib2.html#tools-for-working-with-lists)381    - [11.8. Десятичная арифметика с плавающей запятой](https://python-all.ru/3.1/tutorial/stdlib2.html#decimal-floating-point-arithmetic)382  - [12. Что дальше?](https://python-all.ru/3.1/tutorial/whatnow.html)383  - [13. Интерактивное редактирование ввода и подстановка истории](https://python-all.ru/3.1/tutorial/interactive.html)384385    - [13.1. Редактирование строк](https://python-all.ru/3.1/tutorial/interactive.html#line-editing)386    - [13.2. Подстановка истории](https://python-all.ru/3.1/tutorial/interactive.html#history-substitution)387    - [13.3. Привязки клавиш](https://python-all.ru/3.1/tutorial/interactive.html#key-bindings)388    - [13.4. Альтернативы интерактивному интерпретатору](https://python-all.ru/3.1/tutorial/interactive.html#alternatives-to-the-interactive-interpreter)389  - [14. Арифметика с плавающей запятой: проблемы и ограничения](https://python-all.ru/3.1/tutorial/floatingpoint.html)390391    - [14.1. Ошибка представления](https://python-all.ru/3.1/tutorial/floatingpoint.html#representation-error)392- [Настройка и использование Python](https://python-all.ru/3.1/using/index.html)393394  - [1. Командная строка и окружение](https://python-all.ru/3.1/using/cmdline.html)395396    - [1.1. Командная строка](https://python-all.ru/3.1/using/cmdline.html#command-line)397398      - [1.1.1. Параметры интерфейса](https://python-all.ru/3.1/using/cmdline.html#interface-options)399      - [1.1.2. Общие параметры](https://python-all.ru/3.1/using/cmdline.html#generic-options)400      - [1.1.3. Прочие параметры](https://python-all.ru/3.1/using/cmdline.html#miscellaneous-options)401      - [1.1.4. Опции, которые не следует использовать](https://python-all.ru/3.1/using/cmdline.html#options-you-shouldn-t-use)402    - [1.2. Переменные окружения](https://python-all.ru/3.1/using/cmdline.html#environment-variables)403404      - [1.2.1. Переменные режима отладки](https://python-all.ru/3.1/using/cmdline.html#debug-mode-variables)405  - [2. Использование Python на платформах Unix](https://python-all.ru/3.1/using/unix.html)406407    - [2.1. Получение и установка последней версии Python](https://python-all.ru/3.1/using/unix.html#getting-and-installing-the-latest-version-of-python)408409      - [2.1.1. В Linux](https://python-all.ru/3.1/using/unix.html#on-linux)410      - [2.1.2. В FreeBSD и OpenBSD](https://python-all.ru/3.1/using/unix.html#on-freebsd-and-openbsd)411      - [2.1.3. В OpenSolaris](https://python-all.ru/3.1/using/unix.html#on-opensolaris)412    - [2.2. Сборка Python](https://python-all.ru/3.1/using/unix.html#building-python)413    - [2.3. Пути и файлы, связанные с Python](https://python-all.ru/3.1/using/unix.html#python-related-paths-and-files)414    - [2.4. Прочее](https://python-all.ru/3.1/using/unix.html#miscellaneous)415    - [2.5. Редакторы](https://python-all.ru/3.1/using/unix.html#editors)416  - [3. Использование Python в Windows](https://python-all.ru/3.1/using/windows.html)417418    - [3.1. Установка Python](https://python-all.ru/3.1/using/windows.html#installing-python)419    - [3.2. Альтернативные сборки](https://python-all.ru/3.1/using/windows.html#alternative-bundles)420    - [3.3. Настройка Python](https://python-all.ru/3.1/using/windows.html#configuring-python)421422      - [3.3.1. Экскурс: Установка переменных окружения](https://python-all.ru/3.1/using/windows.html#excursus-setting-environment-variables)423      - [3.3.2. Поиск исполняемого файла Python](https://python-all.ru/3.1/using/windows.html#finding-the-python-executable)424      - [3.3.3. Поиск модулей](https://python-all.ru/3.1/using/windows.html#finding-modules)425      - [3.3.4. Выполнение скриптов](https://python-all.ru/3.1/using/windows.html#executing-scripts)426    - [3.4. Дополнительные модули](https://python-all.ru/3.1/using/windows.html#additional-modules)427428      - [3.4.1. PyWin32](https://python-all.ru/3.1/using/windows.html#pywin32)429      - [3.4.2. Py2exe](https://python-all.ru/3.1/using/windows.html#py2exe)430      - [3.4.3. WConio](https://python-all.ru/3.1/using/windows.html#wconio)431    - [3.5. Компиляция Python в Windows](https://python-all.ru/3.1/using/windows.html#compiling-python-on-windows)432    - [3.6. Другие ресурсы](https://python-all.ru/3.1/using/windows.html#other-resources)433  - [4. Использование Python на Macintosh](https://python-all.ru/3.1/using/mac.html)434435    - [4.1. Получение и установка MacPython](https://python-all.ru/3.1/using/mac.html#getting-and-installing-macpython)436437      - [4.1.1. Как запустить скрипт Python](https://python-all.ru/3.1/using/mac.html#how-to-run-a-python-script)438      - [4.1.2. Запуск скриптов с графическим интерфейсом](https://python-all.ru/3.1/using/mac.html#running-scripts-with-a-gui)439      - [4.1.3. Конфигурация](https://python-all.ru/3.1/using/mac.html#configuration)440    - [4.2. IDE](https://python-all.ru/3.1/using/mac.html#the-ide)441    - [4.3. Установка дополнительных пакетов Python](https://python-all.ru/3.1/using/mac.html#installing-additional-python-packages)442    - [4.4. Программирование графического интерфейса на Mac](https://python-all.ru/3.1/using/mac.html#gui-programming-on-the-mac)443    - [4.5. Распространение приложений Python на Mac](https://python-all.ru/3.1/using/mac.html#distributing-python-applications-on-the-mac)444    - [4.6. Сценарное программирование приложений](https://python-all.ru/3.1/using/mac.html#application-scripting)445    - [4.7. Другие ресурсы](https://python-all.ru/3.1/using/mac.html#other-resources)446- [Справочник по языку Python](https://python-all.ru/3.1/reference/index.html)447448  - [1. Введение](https://python-all.ru/3.1/reference/introduction.html)449450    - [1.1. Альтернативные реализации](https://python-all.ru/3.1/reference/introduction.html#alternate-implementations)451    - [1.2. Обозначения](https://python-all.ru/3.1/reference/introduction.html#notation)452  - [2. Лексический анализ](https://python-all.ru/3.1/reference/lexical_analysis.html)453454    - [2.1. Структура строк](https://python-all.ru/3.1/reference/lexical_analysis.html#line-structure)455456      - [2.1.1. Логические строки](https://python-all.ru/3.1/reference/lexical_analysis.html#logical-lines)457      - [2.1.2. Физические строки](https://python-all.ru/3.1/reference/lexical_analysis.html#physical-lines)458      - [2.1.3. Комментарии](https://python-all.ru/3.1/reference/lexical_analysis.html#comments)459      - [2.1.4. Объявление кодировки](https://python-all.ru/3.1/reference/lexical_analysis.html#encoding-declarations)460      - [2.1.5. Явное объединение строк](https://python-all.ru/3.1/reference/lexical_analysis.html#explicit-line-joining)461      - [2.1.6. Неявное объединение строк](https://python-all.ru/3.1/reference/lexical_analysis.html#implicit-line-joining)462      - [2.1.7. Пустые строки](https://python-all.ru/3.1/reference/lexical_analysis.html#blank-lines)463      - [2.1.8. Отступы](https://python-all.ru/3.1/reference/lexical_analysis.html#indentation)464      - [2.1.9. Пробелы между токенами](https://python-all.ru/3.1/reference/lexical_analysis.html#whitespace-between-tokens)465    - [2.2. Другие токены](https://python-all.ru/3.1/reference/lexical_analysis.html#other-tokens)466    - [2.3. Идентификаторы и ключевые слова](https://python-all.ru/3.1/reference/lexical_analysis.html#identifiers)467468      - [2.3.1. Ключевые слова](https://python-all.ru/3.1/reference/lexical_analysis.html#keywords)469      - [2.3.2. Зарезервированные классы идентификаторов](https://python-all.ru/3.1/reference/lexical_analysis.html#reserved-classes-of-identifiers)470    - [2.4. Литералы](https://python-all.ru/3.1/reference/lexical_analysis.html#literals)471472      - [2.4.1. Строковые и байтовые литералы](https://python-all.ru/3.1/reference/lexical_analysis.html#string-and-bytes-literals)473      - [2.4.2. Конкатенация строковых литералов](https://python-all.ru/3.1/reference/lexical_analysis.html#string-literal-concatenation)474      - [2.4.3. Числовые литералы](https://python-all.ru/3.1/reference/lexical_analysis.html#numeric-literals)475      - [2.4.4. Целочисленные литералы](https://python-all.ru/3.1/reference/lexical_analysis.html#integer-literals)476      - [2.4.5. Литералы с плавающей точкой](https://python-all.ru/3.1/reference/lexical_analysis.html#floating-point-literals)477      - [2.4.6. Литералы мнимых чисел](https://python-all.ru/3.1/reference/lexical_analysis.html#imaginary-literals)478    - [2.5. Операторы](https://python-all.ru/3.1/reference/lexical_analysis.html#operators)479    - [2.6. Разделители](https://python-all.ru/3.1/reference/lexical_analysis.html#delimiters)480  - [3. Модель данных](https://python-all.ru/3.1/reference/datamodel.html)481482    - [3.1. Объекты, значения и типы](https://python-all.ru/3.1/reference/datamodel.html#objects-values-and-types)483    - [3.2. Стандартная иерархия типов](https://python-all.ru/3.1/reference/datamodel.html#the-standard-type-hierarchy)484    - [3.3. Имена специальных методов](https://python-all.ru/3.1/reference/datamodel.html#special-method-names)485486      - [3.3.1. Базовая настройка](https://python-all.ru/3.1/reference/datamodel.html#basic-customization)487      - [3.3.2. Настройка доступа к атрибутам](https://python-all.ru/3.1/reference/datamodel.html#customizing-attribute-access)488489        - [3.3.2.1. Реализация дескрипторов](https://python-all.ru/3.1/reference/datamodel.html#implementing-descriptors)490        - [3.3.2.2. Вызов дескрипторов](https://python-all.ru/3.1/reference/datamodel.html#invoking-descriptors)491        - [3.3.2.3. \_\_slots\_\_](https://python-all.ru/3.1/reference/datamodel.html#slots)492493          - [3.3.2.3.1. Примечания по использованию *\_\_slots\_\_*](https://python-all.ru/3.1/reference/datamodel.html#notes-on-using-slots)494      - [3.3.3. Настройка создания классов](https://python-all.ru/3.1/reference/datamodel.html#customizing-class-creation)495      - [3.3.4. Настройка проверок принадлежности экземплярам и подклассам](https://python-all.ru/3.1/reference/datamodel.html#customizing-instance-and-subclass-checks)496      - [3.3.5. Эмуляция вызываемых объектов](https://python-all.ru/3.1/reference/datamodel.html#emulating-callable-objects)497      - [3.3.6. Эмуляция контейнерных типов](https://python-all.ru/3.1/reference/datamodel.html#emulating-container-types)498      - [3.3.7. Эмуляция числовых типов](https://python-all.ru/3.1/reference/datamodel.html#emulating-numeric-types)499      - [3.3.8. Контекстные менеджеры with](https://python-all.ru/3.1/reference/datamodel.html#with-statement-context-managers)500      - [3.3.9. Поиск специальных методов](https://python-all.ru/3.1/reference/datamodel.html#special-method-lookup)501  - [4. Модель выполнения](https://python-all.ru/3.1/reference/executionmodel.html)502503    - [4.1. Именование и связывание](https://python-all.ru/3.1/reference/executionmodel.html#naming-and-binding)504505      - [4.1.1. Взаимодействие с динамическими возможностями](https://python-all.ru/3.1/reference/executionmodel.html#interaction-with-dynamic-features)506    - [4.2. Исключения](https://python-all.ru/3.1/reference/executionmodel.html#exceptions)507  - [5. Выражения](https://python-all.ru/3.1/reference/expressions.html)508509    - [5.1. Арифметические преобразования](https://python-all.ru/3.1/reference/expressions.html#arithmetic-conversions)510    - [5.2. Атомы](https://python-all.ru/3.1/reference/expressions.html#atoms)511512      - [5.2.1. Идентификаторы (имена)](https://python-all.ru/3.1/reference/expressions.html#atom-identifiers)513      - [5.2.2. Литералы](https://python-all.ru/3.1/reference/expressions.html#literals)514      - [5.2.3. Формы в скобках](https://python-all.ru/3.1/reference/expressions.html#parenthesized-forms)515      - [5.2.4. Отображения списков, множеств и словарей](https://python-all.ru/3.1/reference/expressions.html#displays-for-lists-sets-and-dictionaries)516      - [5.2.5. Отображения списков](https://python-all.ru/3.1/reference/expressions.html#list-displays)517      - [5.2.6. Отображения множеств](https://python-all.ru/3.1/reference/expressions.html#set-displays)518      - [5.2.7. Отображения словарей](https://python-all.ru/3.1/reference/expressions.html#dictionary-displays)519      - [5.2.8. Генераторные выражения](https://python-all.ru/3.1/reference/expressions.html#generator-expressions)520      - [5.2.9. Выражения yield](https://python-all.ru/3.1/reference/expressions.html#yield-expressions)521    - [5.3. Первичные элементы](https://python-all.ru/3.1/reference/expressions.html#primaries)522523      - [5.3.1. Ссылки на атрибуты](https://python-all.ru/3.1/reference/expressions.html#attribute-references)524      - [5.3.2. Индексация](https://python-all.ru/3.1/reference/expressions.html#subscriptions)525      - [5.3.3. Срезы](https://python-all.ru/3.1/reference/expressions.html#slicings)526      - [5.3.4. Вызовы](https://python-all.ru/3.1/reference/expressions.html#calls)527    - [5.4. Оператор возведения в степень](https://python-all.ru/3.1/reference/expressions.html#the-power-operator)528    - [5.5. Унарные арифметические и побитовые операции](https://python-all.ru/3.1/reference/expressions.html#unary-arithmetic-and-bitwise-operations)529    - [5.6. Бинарные арифметические операции](https://python-all.ru/3.1/reference/expressions.html#binary-arithmetic-operations)530    - [5.7. Операции сдвига](https://python-all.ru/3.1/reference/expressions.html#shifting-operations)531    - [5.8. Бинарные побитовые операции](https://python-all.ru/3.1/reference/expressions.html#binary-bitwise-operations)532    - [5.9. Сравнения](https://python-all.ru/3.1/reference/expressions.html#notin)533    - [5.10. Булевы операции](https://python-all.ru/3.1/reference/expressions.html#boolean-operations)534    - [5.11. Условные выражения](https://python-all.ru/3.1/reference/expressions.html#conditional-expressions)535    - [5.12. Лямбда-выражения](https://python-all.ru/3.1/reference/expressions.html#lambda)536    - [5.13. Списки выражений](https://python-all.ru/3.1/reference/expressions.html#expression-lists)537    - [5.14. Порядок вычисления](https://python-all.ru/3.1/reference/expressions.html#evaluation-order)538    - [5.15. Итоги](https://python-all.ru/3.1/reference/expressions.html#summary)539  - [6. Простые инструкции](https://python-all.ru/3.1/reference/simple_stmts.html)540541    - [6.1. Инструкции-выражения](https://python-all.ru/3.1/reference/simple_stmts.html#expression-statements)542    - [6.2. Инструкции присваивания](https://python-all.ru/3.1/reference/simple_stmts.html#assignment-statements)543544      - [6.2.1. Инструкции присваивания с операцией](https://python-all.ru/3.1/reference/simple_stmts.html#augmented-assignment-statements)545    - [6.3. Инструкция `assert`](https://python-all.ru/3.1/reference/simple_stmts.html#the-assert-statement)546    - [6.4. Инструкция `pass`](https://python-all.ru/3.1/reference/simple_stmts.html#the-pass-statement)547    - [6.5. Инструкция `del`](https://python-all.ru/3.1/reference/simple_stmts.html#the-del-statement)548    - [6.6. Оператор `return`](https://python-all.ru/3.1/reference/simple_stmts.html#the-return-statement)549    - [6.7. Оператор `yield`](https://python-all.ru/3.1/reference/simple_stmts.html#the-yield-statement)550    - [6.8. Оператор `raise`](https://python-all.ru/3.1/reference/simple_stmts.html#the-raise-statement)551    - [6.9. Оператор `break`](https://python-all.ru/3.1/reference/simple_stmts.html#the-break-statement)552    - [6.10. Оператор `continue`](https://python-all.ru/3.1/reference/simple_stmts.html#the-continue-statement)553    - [6.11. Оператор `import`](https://python-all.ru/3.1/reference/simple_stmts.html#the-import-statement)554555      - [6.11.1. Инструкции future](https://python-all.ru/3.1/reference/simple_stmts.html#future-statements)556    - [6.12. Оператор `global`](https://python-all.ru/3.1/reference/simple_stmts.html#the-global-statement)557    - [6.13. Оператор `nonlocal`](https://python-all.ru/3.1/reference/simple_stmts.html#the-nonlocal-statement)558  - [7. Составные инструкции](https://python-all.ru/3.1/reference/compound_stmts.html)559560    - [7.1. Инструкция `if`](https://python-all.ru/3.1/reference/compound_stmts.html#the-if-statement)561    - [7.2. Инструкция `while`](https://python-all.ru/3.1/reference/compound_stmts.html#the-while-statement)562    - [7.3. Инструкция `for`](https://python-all.ru/3.1/reference/compound_stmts.html#the-for-statement)563    - [7.4. Инструкция `try`](https://python-all.ru/3.1/reference/compound_stmts.html#the-try-statement)564    - [7.5. Инструкция `with`](https://python-all.ru/3.1/reference/compound_stmts.html#the-with-statement)565    - [7.6. Определения функций](https://python-all.ru/3.1/reference/compound_stmts.html#function-definitions)566    - [7.7. Определения классов](https://python-all.ru/3.1/reference/compound_stmts.html#class-definitions)567  - [8. Компоненты верхнего уровня](https://python-all.ru/3.1/reference/toplevel_components.html)568569    - [8.1. Полные программы Python](https://python-all.ru/3.1/reference/toplevel_components.html#complete-python-programs)570    - [8.2. Ввод из файла](https://python-all.ru/3.1/reference/toplevel_components.html#file-input)571    - [8.3. Интерактивный ввод](https://python-all.ru/3.1/reference/toplevel_components.html#interactive-input)572    - [8.4. Ввод выражений](https://python-all.ru/3.1/reference/toplevel_components.html#expression-input)573  - [9. Полная спецификация грамматики](https://python-all.ru/3.1/reference/grammar.html)574- [Стандартная библиотека Python](https://python-all.ru/3.1/library/index.html)575576  - [1. Введение](https://python-all.ru/3.1/library/intro.html)577  - [2. Встроенные функции](https://python-all.ru/3.1/library/functions.html)578  - [3. Встроенные константы](https://python-all.ru/3.1/library/constants.html)579580    - [3.1. Константы, добавленные модулем `site`](https://python-all.ru/3.1/library/constants.html#constants-added-by-the-site-module)581  - [4. Встроенные объекты](https://python-all.ru/3.1/library/objects.html)582  - [5. Встроенные типы](https://python-all.ru/3.1/library/stdtypes.html)583584    - [5.1. Проверка истинности](https://python-all.ru/3.1/library/stdtypes.html#truth-value-testing)585    - [5.2. Логические операции – `and`, `or`, `not`](https://python-all.ru/3.1/library/stdtypes.html#boolean-operations-and-or-not)586    - [5.3. Сравнения](https://python-all.ru/3.1/library/stdtypes.html#comparisons)587    - [5.4. Числовые типы – `int`, `float`, `complex`](https://python-all.ru/3.1/library/stdtypes.html#numeric-types-int-float-complex)588589      - [5.4.1. Битовые операции над целочисленными типами](https://python-all.ru/3.1/library/stdtypes.html#bit-string-operations-on-integer-types)590      - [5.4.2. Дополнительные методы целочисленных типов](https://python-all.ru/3.1/library/stdtypes.html#additional-methods-on-integer-types)591      - [5.4.3. Дополнительные методы Float](https://python-all.ru/3.1/library/stdtypes.html#additional-methods-on-float)592    - [5.5. Типы итераторов](https://python-all.ru/3.1/library/stdtypes.html#iterator-types)593594      - [5.5.1. Типы генераторов](https://python-all.ru/3.1/library/stdtypes.html#generator-types)595    - [5.6. Типы последовательностей – `str`, `bytes`, `bytearray`, `list`, `tuple`, `range`](https://python-all.ru/3.1/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range)596597      - [5.6.1. Методы строк](https://python-all.ru/3.1/library/stdtypes.html#string-methods)598      - [5.6.2. Устаревшие операции форматирования строк](https://python-all.ru/3.1/library/stdtypes.html#old-string-formatting-operations)599      - [5.6.3. Тип range](https://python-all.ru/3.1/library/stdtypes.html#range-type)600      - [5.6.4. Изменяемые типы последовательностей](https://python-all.ru/3.1/library/stdtypes.html#mutable-sequence-types)601      - [5.6.5. Методы байтовых строк и байтовых массивов](https://python-all.ru/3.1/library/stdtypes.html#bytes-and-byte-array-methods)602    - [5.7. Типы множеств – `set`, `frozenset`](https://python-all.ru/3.1/library/stdtypes.html#set-types-set-frozenset)603    - [5.8. Типы отображений – `dict`](https://python-all.ru/3.1/library/stdtypes.html#mapping-types-dict)604605      - [5.8.1. Объекты представления словаря](https://python-all.ru/3.1/library/stdtypes.html#dictionary-view-objects)606    - [5.9. Типы memoryview](https://python-all.ru/3.1/library/stdtypes.html#memoryview-types)607    - [5.10. Типы контекстных менеджеров](https://python-all.ru/3.1/library/stdtypes.html#context-manager-types)608    - [5.11. Прочие встроенные типы](https://python-all.ru/3.1/library/stdtypes.html#other-built-in-types)609610      - [5.11.1. Модули](https://python-all.ru/3.1/library/stdtypes.html#modules)611      - [5.11.2. Классы и экземпляры классов](https://python-all.ru/3.1/library/stdtypes.html#classes-and-class-instances)612      - [5.11.3. Функции](https://python-all.ru/3.1/library/stdtypes.html#functions)613      - [5.11.4. Методы](https://python-all.ru/3.1/library/stdtypes.html#methods)614      - [5.11.5. Объекты кода](https://python-all.ru/3.1/library/stdtypes.html#code-objects)615      - [5.11.6. Объекты типов](https://python-all.ru/3.1/library/stdtypes.html#type-objects)616      - [5.11.7. Объект Null](https://python-all.ru/3.1/library/stdtypes.html#the-null-object)617      - [5.11.8. Объект Ellipsis](https://python-all.ru/3.1/library/stdtypes.html#the-ellipsis-object)618      - [5.11.9. Логические значения](https://python-all.ru/3.1/library/stdtypes.html#boolean-values)619      - [5.11.10. Внутренние объекты](https://python-all.ru/3.1/library/stdtypes.html#internal-objects)620    - [5.12. Специальные атрибуты](https://python-all.ru/3.1/library/stdtypes.html#special-attributes)621  - [6. Встроенные исключения](https://python-all.ru/3.1/library/exceptions.html)622623    - [6.1. Иерархия исключений](https://python-all.ru/3.1/library/exceptions.html#exception-hierarchy)624  - [7. Сервисы строк](https://python-all.ru/3.1/library/strings.html)625626    - [7.1. `string` – Основные операции со строками](https://python-all.ru/3.1/library/string.html)627628      - [7.1.1. Константы строк](https://python-all.ru/3.1/library/string.html#string-constants)629      - [7.1.2. Форматирование строк](https://python-all.ru/3.1/library/string.html#string-formatting)630      - [7.1.3. Синтаксис строк форматирования](https://python-all.ru/3.1/library/string.html#format-string-syntax)631632        - [7.1.3.1. Мини-язык спецификации форматирования](https://python-all.ru/3.1/library/string.html#format-specification-mini-language)633        - [7.1.3.2. Примеры форматирования](https://python-all.ru/3.1/library/string.html#format-examples)634      - [7.1.4. Шаблонные строки](https://python-all.ru/3.1/library/string.html#template-strings)635      - [7.1.5. Вспомогательные функции](https://python-all.ru/3.1/library/string.html#helper-functions)636    - [7.2. `re` – Регулярные выражения](https://python-all.ru/3.1/library/re.html)637638      - [7.2.1. Синтаксис регулярных выражений](https://python-all.ru/3.1/library/re.html#regular-expression-syntax)639      - [7.2.2. Сопоставление и поиск](https://python-all.ru/3.1/library/re.html#matching-vs-searching)640      - [7.2.3. Содержимое модуля](https://python-all.ru/3.1/library/re.html#module-contents)641      - [7.2.4. Объекты регулярных выражений](https://python-all.ru/3.1/library/re.html#regular-expression-objects)642      - [7.2.5. Объекты совпадений](https://python-all.ru/3.1/library/re.html#match-objects)643      - [7.2.6. Примеры](https://python-all.ru/3.1/library/re.html#examples)644645        - [7.2.6.1. Проверка на пару](https://python-all.ru/3.1/library/re.html#checking-for-a-pair)646        - [7.2.6.2. Имитация scanf()](https://python-all.ru/3.1/library/re.html#simulating-scanf)647        - [7.2.6.3. Избегание рекурсии](https://python-all.ru/3.1/library/re.html#avoiding-recursion)648        - [7.2.6.4. search() против match()](https://python-all.ru/3.1/library/re.html#search-vs-match)649        - [7.2.6.5. Создание телефонной книги](https://python-all.ru/3.1/library/re.html#making-a-phonebook)650        - [7.2.6.6. Обработка текста](https://python-all.ru/3.1/library/re.html#text-munging)651        - [7.2.6.7. Поиск всех наречий](https://python-all.ru/3.1/library/re.html#finding-all-adverbs)652        - [7.2.6.8. Поиск всех наречий и их позиций](https://python-all.ru/3.1/library/re.html#finding-all-adverbs-and-their-positions)653        - [7.2.6.9. Сырые строки](https://python-all.ru/3.1/library/re.html#raw-string-notation)654    - [7.3. `struct` – Интерпретация байтов как упакованных двоичных данных](https://python-all.ru/3.1/library/struct.html)655656      - [7.3.1. Функции и исключения](https://python-all.ru/3.1/library/struct.html#functions-and-exceptions)657      - [7.3.2. Строки формата](https://python-all.ru/3.1/library/struct.html#format-strings)658659        - [7.3.2.1. Порядок байтов, размер и выравнивание](https://python-all.ru/3.1/library/struct.html#byte-order-size-and-alignment)660        - [7.3.2.2. Символы формата](https://python-all.ru/3.1/library/struct.html#format-characters)661        - [7.3.2.3. Примеры](https://python-all.ru/3.1/library/struct.html#examples)662      - [7.3.3. Классы](https://python-all.ru/3.1/library/struct.html#classes)663    - [7.4. `difflib` – Вспомогательные функции для вычисления различий](https://python-all.ru/3.1/library/difflib.html)664665      - [7.4.1. Объекты SequenceMatcher](https://python-all.ru/3.1/library/difflib.html#sequencematcher-objects)666      - [7.4.2. Примеры SequenceMatcher](https://python-all.ru/3.1/library/difflib.html#sequencematcher-examples)667      - [7.4.3. Объекты Differ](https://python-all.ru/3.1/library/difflib.html#differ-objects)668      - [7.4.4. Пример Differ](https://python-all.ru/3.1/library/difflib.html#differ-example)669      - [7.4.5. Интерфейс командной строки для difflib](https://python-all.ru/3.1/library/difflib.html#a-command-line-interface-to-difflib)670    - [7.5. `textwrap` – Перенос и заполнение текста](https://python-all.ru/3.1/library/textwrap.html)671    - [7.6. `codecs` – Реестр кодеков и базовые классы](https://python-all.ru/3.1/library/codecs.html)672673      - [7.6.1. Базовые классы кодеков](https://python-all.ru/3.1/library/codecs.html#codec-base-classes)674675        - [7.6.1.1. Объекты Codec](https://python-all.ru/3.1/library/codecs.html#codec-objects)676        - [7.6.1.2. Объекты IncrementalEncoder](https://python-all.ru/3.1/library/codecs.html#incrementalencoder-objects)677        - [7.6.1.3. Объекты IncrementalDecoder](https://python-all.ru/3.1/library/codecs.html#incrementaldecoder-objects)678        - [7.6.1.4. Объекты StreamWriter](https://python-all.ru/3.1/library/codecs.html#streamwriter-objects)679        - [7.6.1.5. Объекты StreamReader](https://python-all.ru/3.1/library/codecs.html#streamreader-objects)680        - [7.6.1.6. Объекты StreamReaderWriter](https://python-all.ru/3.1/library/codecs.html#streamreaderwriter-objects)681        - [7.6.1.7. Объекты StreamRecoder](https://python-all.ru/3.1/library/codecs.html#streamrecoder-objects)682      - [7.6.2. Кодировки и Unicode](https://python-all.ru/3.1/library/codecs.html#encodings-and-unicode)683      - [7.6.3. Стандартные кодировки](https://python-all.ru/3.1/library/codecs.html#standard-encodings)684      - [7.6.4. `encodings.idna` – Интернационализированные доменные имена в приложениях](https://python-all.ru/3.1/library/codecs.html#module-encodings.idna)685      - [7.6.5. `encodings.utf_8_sig` – Кодек UTF-8 с сигнатурой BOM](https://python-all.ru/3.1/library/codecs.html#module-encodings.utf_8_sig)686    - [7.7. `unicodedata` – База данных Unicode](https://python-all.ru/3.1/library/unicodedata.html)687    - [7.8. `stringprep` – Подготовка строк для интернета](https://python-all.ru/3.1/library/stringprep.html)688  - [8. Типы данных](https://python-all.ru/3.1/library/datatypes.html)689690    - [8.1. `datetime` – Базовые типы даты и времени](https://python-all.ru/3.1/library/datetime.html)691692      - [8.1.1. Доступные типы](https://python-all.ru/3.1/library/datetime.html#available-types)693      - [8.1.2. `timedelta` Объекты](https://python-all.ru/3.1/library/datetime.html#timedelta-objects)694      - [8.1.3. `date` Объекты](https://python-all.ru/3.1/library/datetime.html#date-objects)695      - [8.1.4. `datetime` Объекты](https://python-all.ru/3.1/library/datetime.html#datetime-objects)696      - [8.1.5. `time` Объекты](https://python-all.ru/3.1/library/datetime.html#time-objects)697      - [8.1.6. `tzinfo` Объекты](https://python-all.ru/3.1/library/datetime.html#tzinfo-objects)698      - [8.1.7. Поведение `strftime()` и `strptime()`](https://python-all.ru/3.1/library/datetime.html#strftime-and-strptime-behavior)699    - [8.2. `calendar` – Общие функции, связанные с календарём](https://python-all.ru/3.1/library/calendar.html)700    - [8.3. `collections` – Типы данных-контейнеры](https://python-all.ru/3.1/library/collections.html)701702      - [8.3.1. Объекты `Counter`](https://python-all.ru/3.1/library/collections.html#counter-objects)703      - [8.3.2. Объекты `deque`](https://python-all.ru/3.1/library/collections.html#deque-objects)704705        - [8.3.2.1. Рецепты `deque`](https://python-all.ru/3.1/library/collections.html#deque-recipes)706      - [8.3.3. Объекты `defaultdict`](https://python-all.ru/3.1/library/collections.html#defaultdict-objects)707708        - [8.3.3.1. Примеры `defaultdict`](https://python-all.ru/3.1/library/collections.html#defaultdict-examples)709      - [8.3.4. `namedtuple()` Фабричная функция для кортежей с именованными полями](https://python-all.ru/3.1/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields)710      - [8.3.5. Объекты `OrderedDict`](https://python-all.ru/3.1/library/collections.html#ordereddict-objects)711712        - [8.3.5.1. Примеры и рецепты `OrderedDict`](https://python-all.ru/3.1/library/collections.html#ordereddict-examples-and-recipes)713      - [8.3.6. Объекты `UserDict`](https://python-all.ru/3.1/library/collections.html#userdict-objects)714      - [8.3.7. Объекты `UserList`](https://python-all.ru/3.1/library/collections.html#userlist-objects)715      - [8.3.8. Объекты `UserString`](https://python-all.ru/3.1/library/collections.html#userstring-objects)716      - [8.3.9. ABC – абстрактные базовые классы](https://python-all.ru/3.1/library/collections.html#abcs-abstract-base-classes)717    - [8.4. `heapq` – Алгоритм пирамидальной очереди](https://python-all.ru/3.1/library/heapq.html)718719      - [8.4.1. Основные примеры](https://python-all.ru/3.1/library/heapq.html#basic-examples)720      - [8.4.2. Замечания по реализации очереди с приоритетом](https://python-all.ru/3.1/library/heapq.html#priority-queue-implementation-notes)721      - [8.4.3. Теория](https://python-all.ru/3.1/library/heapq.html#theory)722    - [8.5. `bisect` – Алгоритм бисекции массива](https://python-all.ru/3.1/library/bisect.html)723724      - [8.5.1. Поиск в отсортированных списках](https://python-all.ru/3.1/library/bisect.html#searching-sorted-lists)725      - [8.5.2. Другие примеры](https://python-all.ru/3.1/library/bisect.html#other-examples)726    - [8.6. `array` – Эффективные массивы числовых значений](https://python-all.ru/3.1/library/array.html)727    - [8.7. `sched` – Планировщик событий](https://python-all.ru/3.1/library/sched.html)728729      - [8.7.1. Объекты планировщика](https://python-all.ru/3.1/library/sched.html#scheduler-objects)730    - [8.8. `queue` – Синхронизированный класс очереди](https://python-all.ru/3.1/library/queue.html)731732      - [8.8.1. Объекты очереди](https://python-all.ru/3.1/library/queue.html#queue-objects)733    - [8.9. `weakref` – Слабые ссылки](https://python-all.ru/3.1/library/weakref.html)734735      - [8.9.1. Объекты слабых ссылок](https://python-all.ru/3.1/library/weakref.html#weak-reference-objects)736      - [8.9.2. Пример](https://python-all.ru/3.1/library/weakref.html#example)737    - [8.10. `types` – Имена для встроенных типов](https://python-all.ru/3.1/library/types.html)738    - [8.11. `copy` – Операции поверхностного и глубокого копирования](https://python-all.ru/3.1/library/copy.html)739    - [8.12. `pprint` – Красивая печать данных](https://python-all.ru/3.1/library/pprint.html)740741      - [8.12.1. Объекты PrettyPrinter](https://python-all.ru/3.1/library/pprint.html#prettyprinter-objects)742      - [8.12.2. Пример](https://python-all.ru/3.1/library/pprint.html#example)743    - [8.13. `reprlib` – Альтернативная реализация `repr()`](https://python-all.ru/3.1/library/reprlib.html)744745      - [8.13.1. Объекты Repr](https://python-all.ru/3.1/library/reprlib.html#repr-objects)746      - [8.13.2. Создание подклассов Repr](https://python-all.ru/3.1/library/reprlib.html#subclassing-repr-objects)747  - [9. Модули числовых и математических функций](https://python-all.ru/3.1/library/numeric.html)748749    - [9.1. `numbers` – Числовые абстрактные базовые классы](https://python-all.ru/3.1/library/numbers.html)750751      - [9.1.1. Числовая иерархия](https://python-all.ru/3.1/library/numbers.html#the-numeric-tower)752      - [9.1.2. Замечания для разработчиков типов](https://python-all.ru/3.1/library/numbers.html#notes-for-type-implementors)753754        - [9.1.2.1. Добавление других числовых ABC](https://python-all.ru/3.1/library/numbers.html#adding-more-numeric-abcs)755        - [9.1.2.2. Реализация арифметических операций](https://python-all.ru/3.1/library/numbers.html#implementing-the-arithmetic-operations)756    - [9.2. `math` – Математические функции](https://python-all.ru/3.1/library/math.html)757758      - [9.2.1. Теоретико-числовые функции и функции представления](https://python-all.ru/3.1/library/math.html#number-theoretic-and-representation-functions)759      - [9.2.2. Степенные и логарифмические функции](https://python-all.ru/3.1/library/math.html#power-and-logarithmic-functions)760      - [9.2.3. Тригонометрические функции](https://python-all.ru/3.1/library/math.html#trigonometric-functions)761      - [9.2.4. Преобразование углов](https://python-all.ru/3.1/library/math.html#angular-conversion)762      - [9.2.5. Гиперболические функции](https://python-all.ru/3.1/library/math.html#hyperbolic-functions)763      - [9.2.6. Константы](https://python-all.ru/3.1/library/math.html#constants)764    - [9.3. `cmath` – Математические функции для комплексных чисел](https://python-all.ru/3.1/library/cmath.html)765766      - [9.3.1. Преобразование в полярные координаты и обратно](https://python-all.ru/3.1/library/cmath.html#conversions-to-and-from-polar-coordinates)767      - [9.3.2. Степенные и логарифмические функции](https://python-all.ru/3.1/library/cmath.html#power-and-logarithmic-functions)768      - [9.3.3. Тригонометрические функции](https://python-all.ru/3.1/library/cmath.html#trigonometric-functions)769      - [9.3.4. Гиперболические функции](https://python-all.ru/3.1/library/cmath.html#hyperbolic-functions)770      - [9.3.5. Функции классификации](https://python-all.ru/3.1/library/cmath.html#classification-functions)771      - [9.3.6. Константы](https://python-all.ru/3.1/library/cmath.html#constants)772    - [9.4. `decimal` – Десятичная арифметика с фиксированной и плавающей точкой](https://python-all.ru/3.1/library/decimal.html)773774      - [9.4.1. Краткое руководство](https://python-all.ru/3.1/library/decimal.html#quick-start-tutorial)775      - [9.4.2. Объекты Decimal](https://python-all.ru/3.1/library/decimal.html#decimal-objects)776777        - [9.4.2.1. Логические операнды](https://python-all.ru/3.1/library/decimal.html#logical-operands)778      - [9.4.3. Объекты контекста](https://python-all.ru/3.1/library/decimal.html#context-objects)779      - [9.4.4. Сигналы](https://python-all.ru/3.1/library/decimal.html#signals)780      - [9.4.5. Примечания по числам с плавающей запятой](https://python-all.ru/3.1/library/decimal.html#floating-point-notes)781782        - [9.4.5.1. Уменьшение погрешности округления с помощью повышенной точности](https://python-all.ru/3.1/library/decimal.html#mitigating-round-off-error-with-increased-precision)783        - [9.4.5.2. Особые значения](https://python-all.ru/3.1/library/decimal.html#special-values)784      - [9.4.6. Работа с потоками](https://python-all.ru/3.1/library/decimal.html#working-with-threads)785      - [9.4.7. Рецепты](https://python-all.ru/3.1/library/decimal.html#recipes)786      - [9.4.8. Часто задаваемые вопросы по Decimal](https://python-all.ru/3.1/library/decimal.html#decimal-faq)787    - [9.5. `fractions` – Рациональные числа](https://python-all.ru/3.1/library/fractions.html)788    - [9.6. `random` – Генерация псевдослучайных чисел](https://python-all.ru/3.1/library/random.html)789    - [9.7. `itertools` – Функции, создающие итераторы для эффективного циклического обхода](https://python-all.ru/3.1/library/itertools.html)790791      - [9.7.1. Функции модуля itertools](https://python-all.ru/3.1/library/itertools.html#itertool-functions)792      - [9.7.2. Рецепты](https://python-all.ru/3.1/library/itertools.html#recipes)793    - [9.8. `functools` – Функции высшего порядка и операции над вызываемыми объектами](https://python-all.ru/3.1/library/functools.html)794795      - [9.8.1. Объекты `partial`](https://python-all.ru/3.1/library/functools.html#partial-objects)796    - [9.9. `operator` – Стандартные операторы в виде функций](https://python-all.ru/3.1/library/operator.html)797798      - [9.9.1. Сопоставление операторов с функциями](https://python-all.ru/3.1/library/operator.html#mapping-operators-to-functions)799  - [10. Доступ к файлам и каталогам](https://python-all.ru/3.1/library/filesys.html)800801    - [10.1. `os.path` – Общие операции с путями](https://python-all.ru/3.1/library/os.path.html)802    - [10.2. `fileinput` – Итерация по строкам из нескольких входных потоков](https://python-all.ru/3.1/library/fileinput.html)803    - [10.3. `stat` – Интерпретация результатов `stat()`](https://python-all.ru/3.1/library/stat.html)804    - [10.4. `filecmp` – Сравнение файлов и каталогов](https://python-all.ru/3.1/library/filecmp.html)805806      - [10.4.1. Класс `dircmp`](https://python-all.ru/3.1/library/filecmp.html#the-dircmp-class)807    - [10.5. `tempfile` – Создание временных файлов и каталогов](https://python-all.ru/3.1/library/tempfile.html)808    - [10.6. `glob` – Расширение шаблонов путей в стиле Unix](https://python-all.ru/3.1/library/glob.html)809    - [10.7. `fnmatch` – Сопоставление имен файлов по шаблону Unix](https://python-all.ru/3.1/library/fnmatch.html)810    - [10.8. `linecache` – Произвольный доступ к строкам текста](https://python-all.ru/3.1/library/linecache.html)811    - [10.9. `shutil` – Высокоуровневые операции с файлами](https://python-all.ru/3.1/library/shutil.html)812813      - [10.9.1. Пример](https://python-all.ru/3.1/library/shutil.html#example)814    - [10.10. `macpath` – Функции работы с путями Mac OS 9](https://python-all.ru/3.1/library/macpath.html)815  - [11. Устойчивое сохранение данных](https://python-all.ru/3.1/library/persistence.html)816817    - [11.1. `pickle` – Сериализация объектов Python](https://python-all.ru/3.1/library/pickle.html)818819      - [11.1.1. Отношение к другим модулям Python](https://python-all.ru/3.1/library/pickle.html#relationship-to-other-python-modules)820      - [11.1.2. Формат потока данных](https://python-all.ru/3.1/library/pickle.html#data-stream-format)821      - [11.1.3. Интерфейс модуля](https://python-all.ru/3.1/library/pickle.html#module-interface)822      - [11.1.4. Что можно сериализовать и десериализовать?](https://python-all.ru/3.1/library/pickle.html#what-can-be-pickled-and-unpickled)823      - [11.1.5. Сериализация экземпляров классов](https://python-all.ru/3.1/library/pickle.html#pickling-class-instances)824825        - [11.1.5.1. Сохранение внешних объектов](https://python-all.ru/3.1/library/pickle.html#persistence-of-external-objects)826        - [11.1.5.2. Обработка объектов с состоянием](https://python-all.ru/3.1/library/pickle.html#handling-stateful-objects)827      - [11.1.6. Ограничение глобальных объектов](https://python-all.ru/3.1/library/pickle.html#restricting-globals)828      - [11.1.7. Примеры](https://python-all.ru/3.1/library/pickle.html#examples)829    - [11.2. `copyreg` – Регистрация `pickle` вспомогательных функций](https://python-all.ru/3.1/library/copyreg.html)830    - [11.3. `shelve` – Сохранение объектов Python](https://python-all.ru/3.1/library/shelve.html)831832      - [11.3.1. Ограничения](https://python-all.ru/3.1/library/shelve.html#restrictions)833      - [11.3.2. Пример](https://python-all.ru/3.1/library/shelve.html#example)834    - [11.4. `marshal` – Внутренняя сериализация объектов Python](https://python-all.ru/3.1/library/marshal.html)835    - [11.5. `dbm` – Интерфейсы к «базам данных» Unix](https://python-all.ru/3.1/library/dbm.html)836837      - [11.5.1. `dbm.gnu` – Переосмысление dbm от GNU](https://python-all.ru/3.1/library/dbm.html#module-dbm.gnu)838      - [11.5.2. `dbm.ndbm` – Интерфейс на основе ndbm](https://python-all.ru/3.1/library/dbm.html#module-dbm.ndbm)839      - [11.5.3. `dbm.dumb` – Переносимая реализация DBM](https://python-all.ru/3.1/library/dbm.html#module-dbm.dumb)840    - [11.6. `sqlite3` – Интерфейс DB-API 2.0 для баз данных SQLite](https://python-all.ru/3.1/library/sqlite3.html)841842      - [11.6.1. Функции и константы модуля](https://python-all.ru/3.1/library/sqlite3.html#module-functions-and-constants)843      - [11.6.2. Объекты соединения](https://python-all.ru/3.1/library/sqlite3.html#connection-objects)844      - [11.6.3. Объекты курсора](https://python-all.ru/3.1/library/sqlite3.html#cursor-objects)845      - [11.6.4. Объекты строки](https://python-all.ru/3.1/library/sqlite3.html#row-objects)846      - [11.6.5. Типы SQLite и Python](https://python-all.ru/3.1/library/sqlite3.html#sqlite-and-python-types)847848        - [11.6.5.1. Введение](https://python-all.ru/3.1/library/sqlite3.html#introduction)849        - [11.6.5.2. Использование адаптеров для хранения дополнительных типов Python в базах данных SQLite](https://python-all.ru/3.1/library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases)850851          - [11.6.5.2.1. Адаптация объекта самостоятельно](https://python-all.ru/3.1/library/sqlite3.html#letting-your-object-adapt-itself)852          - [11.6.5.2.2. Регистрация вызываемого адаптера](https://python-all.ru/3.1/library/sqlite3.html#registering-an-adapter-callable)853        - [11.6.5.3. Преобразование значений SQLite в пользовательские типы Python](https://python-all.ru/3.1/library/sqlite3.html#converting-sqlite-values-to-custom-python-types)854        - [11.6.5.4. Адаптеры и преобразователи по умолчанию](https://python-all.ru/3.1/library/sqlite3.html#default-adapters-and-converters)855      - [11.6.6. Управление транзакциями](https://python-all.ru/3.1/library/sqlite3.html#controlling-transactions)856      - [11.6.7. Эффективное использование `sqlite3`](https://python-all.ru/3.1/library/sqlite3.html#using-sqlite3-efficiently)857858        - [11.6.7.1. Использование сокращённых методов](https://python-all.ru/3.1/library/sqlite3.html#using-shortcut-methods)859        - [11.6.7.2. Доступ к столбцам по имени вместо индекса](https://python-all.ru/3.1/library/sqlite3.html#accessing-columns-by-name-instead-of-by-index)860        - [11.6.7.3. Использование соединения как менеджера контекста](https://python-all.ru/3.1/library/sqlite3.html#using-the-connection-as-a-context-manager)861      - [11.6.8. Частые проблемы](https://python-all.ru/3.1/library/sqlite3.html#common-issues)862863        - [11.6.8.1. Многопоточность](https://python-all.ru/3.1/library/sqlite3.html#multithreading)864  - [12. Сжатие и архивирование данных](https://python-all.ru/3.1/library/archiving.html)865866    - [12.1. `zlib` – Сжатие, совместимое с **gzip**](https://python-all.ru/3.1/library/zlib.html)867    - [12.2. `gzip` – Поддержка файлов **gzip**](https://python-all.ru/3.1/library/gzip.html)868869      - [12.2.1. Примеры использования](https://python-all.ru/3.1/library/gzip.html#examples-of-usage)870    - [12.3. `bz2` – Сжатие, совместимое с **bzip2**](https://python-all.ru/3.1/library/bz2.html)871872      - [12.3.1. Сжатие и распаковка файлов](https://python-all.ru/3.1/library/bz2.html#de-compression-of-files)873      - [12.3.2. Последовательное сжатие и распаковка](https://python-all.ru/3.1/library/bz2.html#sequential-de-compression)874      - [12.3.3. Одноразовое сжатие и распаковка](https://python-all.ru/3.1/library/bz2.html#one-shot-de-compression)875    - [12.4. `zipfile` – Работа с ZIP-архивами](https://python-all.ru/3.1/library/zipfile.html)876877      - [12.4.1. Объекты ZipFile](https://python-all.ru/3.1/library/zipfile.html#zipfile-objects)878      - [12.4.2. Объекты PyZipFile](https://python-all.ru/3.1/library/zipfile.html#pyzipfile-objects)879      - [12.4.3. Объекты ZipInfo](https://python-all.ru/3.1/library/zipfile.html#zipinfo-objects)880    - [12.5. `tarfile` – Чтение и запись tar-архивов](https://python-all.ru/3.1/library/tarfile.html)881882      - [12.5.1. Объекты TarFile](https://python-all.ru/3.1/library/tarfile.html#tarfile-objects)883      - [12.5.2. Объекты TarInfo](https://python-all.ru/3.1/library/tarfile.html#tarinfo-objects)884      - [12.5.3. Примеры](https://python-all.ru/3.1/library/tarfile.html#examples)885      - [12.5.4. Поддерживаемые форматы tar](https://python-all.ru/3.1/library/tarfile.html#supported-tar-formats)886      - [12.5.5. Проблемы с Unicode](https://python-all.ru/3.1/library/tarfile.html#unicode-issues)887  - [13. Форматы файлов](https://python-all.ru/3.1/library/fileformats.html)888889    - [13.1. `csv` – Чтение и запись CSV-файлов](https://python-all.ru/3.1/library/csv.html)890891      - [13.1.1. Содержимое модуля](https://python-all.ru/3.1/library/csv.html#module-contents)892      - [13.1.2. Диалекты и параметры форматирования](https://python-all.ru/3.1/library/csv.html#dialects-and-formatting-parameters)893      - [13.1.3. Объекты Reader](https://python-all.ru/3.1/library/csv.html#reader-objects)894      - [13.1.4. Объекты Writer](https://python-all.ru/3.1/library/csv.html#writer-objects)895      - [13.1.5. Примеры](https://python-all.ru/3.1/library/csv.html#examples)896    - [13.2. `configparser` – Парсер конфигурационных файлов](https://python-all.ru/3.1/library/configparser.html)897898      - [13.2.1. Объекты RawConfigParser](https://python-all.ru/3.1/library/configparser.html#rawconfigparser-objects)899      - [13.2.2. Объекты ConfigParser](https://python-all.ru/3.1/library/configparser.html#configparser-objects)900      - [13.2.3. Объекты SafeConfigParser](https://python-all.ru/3.1/library/configparser.html#safeconfigparser-objects)901      - [13.2.4. Примеры](https://python-all.ru/3.1/library/configparser.html#examples)902    - [13.3. `netrc` – обработка файлов netrc](https://python-all.ru/3.1/library/netrc.html)903904      - [13.3.1. Объекты netrc](https://python-all.ru/3.1/library/netrc.html#netrc-objects)905    - [13.4. `xdrlib` – кодирование и декодирование данных XDR](https://python-all.ru/3.1/library/xdrlib.html)906907      - [13.4.1. Объекты Packer](https://python-all.ru/3.1/library/xdrlib.html#packer-objects)908      - [13.4.2. Объекты Unpacker](https://python-all.ru/3.1/library/xdrlib.html#unpacker-objects)909      - [13.4.3. Исключения](https://python-all.ru/3.1/library/xdrlib.html#exceptions)910    - [13.5. `plistlib` – создание и разбор файлов `.plist` Mac OS X](https://python-all.ru/3.1/library/plistlib.html)911912      - [13.5.1. Примеры](https://python-all.ru/3.1/library/plistlib.html#examples)913  - [14. Криптографические сервисы](https://python-all.ru/3.1/library/crypto.html)914915    - [14.1. `hashlib` – Безопасные хеши и дайджесты сообщений](https://python-all.ru/3.1/library/hashlib.html)916    - [14.2. `hmac` – Ключевое хеширование для аутентификации сообщений](https://python-all.ru/3.1/library/hmac.html)917  - [15. Общие службы операционной системы](https://python-all.ru/3.1/library/allos.html)918919    - [15.1. `os` – Разные интерфейсы операционной системы](https://python-all.ru/3.1/library/os.html)920921      - [15.1.1. Имена файлов, аргументы командной строки и переменные окружения](https://python-all.ru/3.1/library/os.html#file-names-command-line-arguments-and-environment-variables)922      - [15.1.2. Параметры процесса](https://python-all.ru/3.1/library/os.html#process-parameters)923      - [15.1.3. Создание файловых объектов](https://python-all.ru/3.1/library/os.html#file-object-creation)924      - [15.1.4. Операции с файловыми дескрипторами](https://python-all.ru/3.1/library/os.html#file-descriptor-operations)925926        - [15.1.4.1. Константы флагов `open()`](https://python-all.ru/3.1/library/os.html#open-flag-constants)927      - [15.1.5. Файлы и каталоги](https://python-all.ru/3.1/library/os.html#files-and-directories)928      - [15.1.6. Управление процессами](https://python-all.ru/3.1/library/os.html#process-management)929      - [15.1.7. Разная системная информация](https://python-all.ru/3.1/library/os.html#miscellaneous-system-information)930      - [15.1.8. Разные функции](https://python-all.ru/3.1/library/os.html#miscellaneous-functions)931    - [15.2. `io` – Основные средства для работы с потоками](https://python-all.ru/3.1/library/io.html)932933      - [15.2.1. Обзор](https://python-all.ru/3.1/library/io.html#overview)934935        - [15.2.1.1. Текстовый ввод-вывод](https://python-all.ru/3.1/library/io.html#text-i-o)936        - [15.2.1.2. Двоичный ввод-вывод](https://python-all.ru/3.1/library/io.html#binary-i-o)937        - [15.2.1.3. Сырой I/O](https://python-all.ru/3.1/library/io.html#raw-i-o)938      - [15.2.2. Интерфейс модуля высокого уровня](https://python-all.ru/3.1/library/io.html#high-level-module-interface)939940        - [15.2.2.1. Потоки в памяти](https://python-all.ru/3.1/library/io.html#in-memory-streams)941      - [15.2.3. Иерархия классов](https://python-all.ru/3.1/library/io.html#class-hierarchy)942943        - [15.2.3.1. Базовые классы ввода-вывода](https://python-all.ru/3.1/library/io.html#i-o-base-classes)944        - [15.2.3.2. Сырой файловый I/O](https://python-all.ru/3.1/library/io.html#raw-file-i-o)945        - [15.2.3.3. Буферизованные потоки](https://python-all.ru/3.1/library/io.html#buffered-streams)946        - [15.2.3.4. Текстовый ввод-вывод](https://python-all.ru/3.1/library/io.html#id1)947      - [15.2.4. Продвинутые темы](https://python-all.ru/3.1/library/io.html#advanced-topics)948949        - [15.2.4.1. Производительность](https://python-all.ru/3.1/library/io.html#performance)950951          - [15.2.4.1.1. Двоичный ввод-вывод](https://python-all.ru/3.1/library/io.html#id2)952          - [15.2.4.1.2. Текстовый ввод-вывод](https://python-all.ru/3.1/library/io.html#id3)953        - [15.2.4.2. Многопоточность](https://python-all.ru/3.1/library/io.html#multi-threading)954        - [15.2.4.3. Реентерабельность](https://python-all.ru/3.1/library/io.html#reentrancy)955    - [15.3. `time` – Доступ ко времени и преобразования](https://python-all.ru/3.1/library/time.html)956    - [15.4. `optparse` – более мощный анализатор параметров командной строки](https://python-all.ru/3.1/library/optparse.html)957958      - [15.4.1. Предыстория](https://python-all.ru/3.1/library/optparse.html#background)959960        - [15.4.1.1. Терминология](https://python-all.ru/3.1/library/optparse.html#terminology)961        - [15.4.1.2. Для чего нужны параметры?](https://python-all.ru/3.1/library/optparse.html#what-are-options-for)962        - [15.4.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/3.1/library/optparse.html#what-are-positional-arguments-for)963      - [15.4.2. Учебное пособие](https://python-all.ru/3.1/library/optparse.html#tutorial)964965        - [15.4.2.1. Понимание действий параметров](https://python-all.ru/3.1/library/optparse.html#understanding-option-actions)966        - [15.4.2.2. Действие store](https://python-all.ru/3.1/library/optparse.html#the-store-action)967        - [15.4.2.3. Обработка булевых (флаговых) параметров](https://python-all.ru/3.1/library/optparse.html#handling-boolean-flag-options)968        - [15.4.2.4. Другие действия](https://python-all.ru/3.1/library/optparse.html#other-actions)969        - [15.4.2.5. Значения по умолчанию](https://python-all.ru/3.1/library/optparse.html#default-values)970        - [15.4.2.6. Генерация справки](https://python-all.ru/3.1/library/optparse.html#generating-help)971972          - [15.4.2.6.1. Группировка параметров](https://python-all.ru/3.1/library/optparse.html#grouping-options)973        - [15.4.2.7. Вывод строки версии](https://python-all.ru/3.1/library/optparse.html#printing-a-version-string)974        - [15.4.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/3.1/library/optparse.html#how-optparse-handles-errors)975        - [15.4.2.9. Собираем всё вместе](https://python-all.ru/3.1/library/optparse.html#putting-it-all-together)976      - [15.4.3. Справочное руководство](https://python-all.ru/3.1/library/optparse.html#reference-guide)977978        - [15.4.3.1. Создание анализатора](https://python-all.ru/3.1/library/optparse.html#creating-the-parser)979        - [15.4.3.2. Наполнение анализатора](https://python-all.ru/3.1/library/optparse.html#populating-the-parser)980        - [15.4.3.3. Определение параметров](https://python-all.ru/3.1/library/optparse.html#defining-options)981        - [15.4.3.4. Атрибуты параметров](https://python-all.ru/3.1/library/optparse.html#option-attributes)982        - [15.4.3.5. Стандартные действия параметров](https://python-all.ru/3.1/library/optparse.html#standard-option-actions)983        - [15.4.3.6. Стандартные типы параметров](https://python-all.ru/3.1/library/optparse.html#standard-option-types)984        - [15.4.3.7. Разбор аргументов](https://python-all.ru/3.1/library/optparse.html#parsing-arguments)985        - [15.4.3.8. Запросы и управление анализатором параметров](https://python-all.ru/3.1/library/optparse.html#querying-and-manipulating-your-option-parser)986        - [15.4.3.9. Конфликты между параметрами](https://python-all.ru/3.1/library/optparse.html#conflicts-between-options)987        - [15.4.3.10. Очистка](https://python-all.ru/3.1/library/optparse.html#cleanup)988        - [15.4.3.11. Другие методы](https://python-all.ru/3.1/library/optparse.html#other-methods)989      - [15.4.4. Колбэки опций](https://python-all.ru/3.1/library/optparse.html#option-callbacks)990991        - [15.4.4.1. Определение опции с колбэком](https://python-all.ru/3.1/library/optparse.html#defining-a-callback-option)992        - [15.4.4.2. Как вызываются колбэки](https://python-all.ru/3.1/library/optparse.html#how-callbacks-are-called)993        - [15.4.4.3. Возбуждение ошибок в колбэке](https://python-all.ru/3.1/library/optparse.html#raising-errors-in-a-callback)994        - [15.4.4.4. Пример колбэка 1: простой колбэк](https://python-all.ru/3.1/library/optparse.html#callback-example-1-trivial-callback)995        - [15.4.4.5. Пример колбэка 2: проверка порядка опций](https://python-all.ru/3.1/library/optparse.html#callback-example-2-check-option-order)996        - [15.4.4.6. Пример колбэка 3: проверка порядка опций (обобщённая)](https://python-all.ru/3.1/library/optparse.html#callback-example-3-check-option-order-generalized)997        - [15.4.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/3.1/library/optparse.html#callback-example-4-check-arbitrary-condition)998        - [15.4.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/3.1/library/optparse.html#callback-example-5-fixed-arguments)999        - [15.4.4.9. Пример колбэка 6: переменное число аргументов](https://python-all.ru/3.1/library/optparse.html#callback-example-6-variable-arguments)1000      - [15.4.5. Расширение `optparse`](https://python-all.ru/3.1/library/optparse.html#extending-optparse)10011002        - [15.4.5.1. Добавление новых типов](https://python-all.ru/3.1/library/optparse.html#adding-new-types)1003        - [15.4.5.2. Добавление новых действий](https://python-all.ru/3.1/library/optparse.html#adding-new-actions)1004    - [15.5. `getopt` – Парсер параметров командной строки](https://python-all.ru/3.1/library/getopt.html)1005    - [15.6. `logging` – Средство журналирования для Python](https://python-all.ru/3.1/library/logging.html)10061007      - [15.6.1. Учебное пособие по logging](https://python-all.ru/3.1/library/logging.html#logging-tutorial)10081009        - [15.6.1.1. Простые примеры](https://python-all.ru/3.1/library/logging.html#simple-examples)1010        - [15.6.1.2. Логгеры](https://python-all.ru/3.1/library/logging.html#loggers)1011        - [15.6.1.3. Обработчики](https://python-all.ru/3.1/library/logging.html#handlers)1012        - [15.6.1.4. Форматировщики](https://python-all.ru/3.1/library/logging.html#formatters)1013        - [15.6.1.5. Настройка журналирования](https://python-all.ru/3.1/library/logging.html#configuring-logging)1014        - [15.6.1.6. Настройка журналирования для библиотеки](https://python-all.ru/3.1/library/logging.html#configuring-logging-for-a-library)1015      - [15.6.2. Уровни журналирования](https://python-all.ru/3.1/library/logging.html#logging-levels)1016      - [15.6.3. Полезные обработчики](https://python-all.ru/3.1/library/logging.html#module-logging.handlers)1017      - [15.6.4. Функции уровня модуля](https://python-all.ru/3.1/library/logging.html#module-level-functions)1018      - [15.6.5. Объекты логгера](https://python-all.ru/3.1/library/logging.html#logger-objects)1019      - [15.6.6. Базовый пример](https://python-all.ru/3.1/library/logging.html#basic-example)1020      - [15.6.7. Журналирование в несколько мест назначения](https://python-all.ru/3.1/library/logging.html#logging-to-multiple-destinations)1021      - [15.6.8. Исключения, возникающие при журналировании](https://python-all.ru/3.1/library/logging.html#exceptions-raised-during-logging)1022      - [15.6.9. Добавление контекстной информации в вывод журнала](https://python-all.ru/3.1/library/logging.html#adding-contextual-information-to-your-logging-output)10231024        - [15.6.9.1. Использование LoggerAdapter для передачи контекстной информации](https://python-all.ru/3.1/library/logging.html#using-loggeradapters-to-impart-contextual-information)1025        - [15.6.9.2. Использование фильтров для передачи контекстной информации](https://python-all.ru/3.1/library/logging.html#using-filters-to-impart-contextual-information)1026      - [15.6.10. Логирование в один файл из нескольких процессов](https://python-all.ru/3.1/library/logging.html#logging-to-a-single-file-from-multiple-processes)1027      - [15.6.11. Отправка и получение событий логирования по сети](https://python-all.ru/3.1/library/logging.html#sending-and-receiving-logging-events-across-a-network)1028      - [15.6.12. Использование произвольных объектов в качестве сообщений](https://python-all.ru/3.1/library/logging.html#using-arbitrary-objects-as-messages)1029      - [15.6.13. Оптимизация](https://python-all.ru/3.1/library/logging.html#optimization)1030      - [15.6.14. Объекты-обработчики](https://python-all.ru/3.1/library/logging.html#handler-objects)10311032        - [15.6.14.1. StreamHandler](https://python-all.ru/3.1/library/logging.html#streamhandler)1033        - [15.6.14.2. FileHandler](https://python-all.ru/3.1/library/logging.html#filehandler)1034        - [15.6.14.3. NullHandler](https://python-all.ru/3.1/library/logging.html#nullhandler)1035        - [15.6.14.4. WatchedFileHandler](https://python-all.ru/3.1/library/logging.html#watchedfilehandler)1036        - [15.6.14.5. RotatingFileHandler](https://python-all.ru/3.1/library/logging.html#rotatingfilehandler)1037        - [15.6.14.6. TimedRotatingFileHandler](https://python-all.ru/3.1/library/logging.html#timedrotatingfilehandler)1038        - [15.6.14.7. SocketHandler](https://python-all.ru/3.1/library/logging.html#sockethandler)1039        - [15.6.14.8. DatagramHandler](https://python-all.ru/3.1/library/logging.html#datagramhandler)1040        - [15.6.14.9. SysLogHandler](https://python-all.ru/3.1/library/logging.html#sysloghandler)1041        - [15.6.14.10. NTEventLogHandler](https://python-all.ru/3.1/library/logging.html#nteventloghandler)1042        - [15.6.14.11. SMTPHandler](https://python-all.ru/3.1/library/logging.html#smtphandler)1043        - [15.6.14.12. MemoryHandler](https://python-all.ru/3.1/library/logging.html#memoryhandler)1044        - [15.6.14.13. HTTPHandler](https://python-all.ru/3.1/library/logging.html#httphandler)1045      - [15.6.15. Объекты-форматеры](https://python-all.ru/3.1/library/logging.html#formatter-objects)1046      - [15.6.16. Объекты-фильтры](https://python-all.ru/3.1/library/logging.html#filter-objects)1047      - [15.6.17. Объекты LogRecord](https://python-all.ru/3.1/library/logging.html#logrecord-objects)1048      - [15.6.18. Объекты LoggerAdapter](https://python-all.ru/3.1/library/logging.html#loggeradapter-objects)1049      - [15.6.19. Потокобезопасность](https://python-all.ru/3.1/library/logging.html#thread-safety)1050      - [15.6.20. Конфигурация](https://python-all.ru/3.1/library/logging.html#configuration)10511052        - [15.6.20.1. Функции конфигурации](https://python-all.ru/3.1/library/logging.html#configuration-functions)1053        - [15.6.20.2. Формат конфигурационного файла](https://python-all.ru/3.1/library/logging.html#configuration-file-format)1054        - [15.6.20.3. Пример сервера конфигурации](https://python-all.ru/3.1/library/logging.html#configuration-server-example)1055      - [15.6.21. Дополнительные примеры](https://python-all.ru/3.1/library/logging.html#more-examples)10561057        - [15.6.21.1. Несколько обработчиков и форматеров](https://python-all.ru/3.1/library/logging.html#multiple-handlers-and-formatters)1058        - [15.6.21.2. Использование логирования в нескольких модулях](https://python-all.ru/3.1/library/logging.html#using-logging-in-multiple-modules)1059    - [15.7. `getpass` – Переносимый ввод пароля](https://python-all.ru/3.1/library/getpass.html)1060    - [15.8. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/3.1/library/curses.html)10611062      - [15.8.1. Функции](https://python-all.ru/3.1/library/curses.html#functions)1063      - [15.8.2. Объекты окон](https://python-all.ru/3.1/library/curses.html#window-objects)1064      - [15.8.3. Константы](https://python-all.ru/3.1/library/curses.html#constants)1065    - [15.9. `curses.textpad` – Виджет ввода текста для программ curses](https://python-all.ru/3.1/library/curses.html#module-curses.textpad)10661067      - [15.9.1. Объекты Textbox](https://python-all.ru/3.1/library/curses.html#textbox-objects)1068    - [15.10. `curses.wrapper` – Обработчик терминала для программ curses](https://python-all.ru/3.1/library/curses.html#module-curses.wrapper)1069    - [15.11. `curses.ascii` – Утилиты для работы с ASCII-символами](https://python-all.ru/3.1/library/curses.ascii.html)1070    - [15.12. `curses.panel` – Расширение стека панелей для curses](https://python-all.ru/3.1/library/curses.panel.html)10711072      - [15.12.1. Функции](https://python-all.ru/3.1/library/curses.panel.html#functions)1073      - [15.12.2. Объекты панелей](https://python-all.ru/3.1/library/curses.panel.html#panel-objects)1074    - [15.13. `platform` – Доступ к идентификационным данным базовой платформы](https://python-all.ru/3.1/library/platform.html)10751076      - [15.13.1. Кросс-платформенные](https://python-all.ru/3.1/library/platform.html#cross-platform)1077      - [15.13.2. Платформа Java](https://python-all.ru/3.1/library/platform.html#java-platform)1078      - [15.13.3. Платформа Windows](https://python-all.ru/3.1/library/platform.html#windows-platform)10791080        - [15.13.3.1. Специфичное для Win95/98](https://python-all.ru/3.1/library/platform.html#win95-98-specific)1081      - [15.13.4. Платформа Mac OS](https://python-all.ru/3.1/library/platform.html#mac-os-platform)1082      - [15.13.5. Платформы Unix](https://python-all.ru/3.1/library/platform.html#unix-platforms)1083    - [15.14. `errno` – Стандартные системные символы errno](https://python-all.ru/3.1/library/errno.html)1084    - [15.15. `ctypes` – Библиотека для вызова внешних функций в Python](https://python-all.ru/3.1/library/ctypes.html)10851086      - [15.15.1. Учебник по ctypes](https://python-all.ru/3.1/library/ctypes.html#ctypes-tutorial)10871088        - [15.15.1.1. Загрузка динамически подключаемых библиотек](https://python-all.ru/3.1/library/ctypes.html#loading-dynamic-link-libraries)1089        - [15.15.1.2. Доступ к функциям из загруженных DLL](https://python-all.ru/3.1/library/ctypes.html#accessing-functions-from-loaded-dlls)1090        - [15.15.1.3. Вызов функций](https://python-all.ru/3.1/library/ctypes.html#calling-functions)1091        - [15.15.1.4. Базовые типы данных](https://python-all.ru/3.1/library/ctypes.html#fundamental-data-types)1092        - [15.15.1.5. Вызов функций (продолжение)](https://python-all.ru/3.1/library/ctypes.html#calling-functions-continued)1093        - [15.15.1.6. Вызов функций с пользовательскими типами данных](https://python-all.ru/3.1/library/ctypes.html#calling-functions-with-your-own-custom-data-types)1094        - [15.15.1.7. Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/3.1/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)1095        - [15.15.1.8. Типы возвращаемых значений](https://python-all.ru/3.1/library/ctypes.html#return-types)1096        - [15.15.1.9. Передача указателей (или: передача параметров по ссылке)](https://python-all.ru/3.1/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)1097        - [15.15.1.10. Структуры и объединения](https://python-all.ru/3.1/library/ctypes.html#structures-and-unions)1098        - [15.15.1.11. Выравнивание структур и объединений и порядок байтов](https://python-all.ru/3.1/library/ctypes.html#structure-union-alignment-and-byte-order)1099        - [15.15.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/3.1/library/ctypes.html#bit-fields-in-structures-and-unions)1100        - [15.15.1.13. Массивы](https://python-all.ru/3.1/library/ctypes.html#arrays)1101        - [15.15.1.14. Указатели](https://python-all.ru/3.1/library/ctypes.html#pointers)1102        - [15.15.1.15. Преобразования типов](https://python-all.ru/3.1/library/ctypes.html#type-conversions)1103        - [15.15.1.16. Неполные типы](https://python-all.ru/3.1/library/ctypes.html#incomplete-types)1104        - [15.15.1.17. Функции обратного вызова](https://python-all.ru/3.1/library/ctypes.html#callback-functions)1105        - [15.15.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/3.1/library/ctypes.html#accessing-values-exported-from-dlls)1106        - [15.15.1.19. Сюрпризы](https://python-all.ru/3.1/library/ctypes.html#surprises)1107        - [15.15.1.20. Типы данных переменного размера](https://python-all.ru/3.1/library/ctypes.html#variable-sized-data-types)1108      - [15.15.2. Справочник по ctypes](https://python-all.ru/3.1/library/ctypes.html#ctypes-reference)11091110        - [15.15.2.1. Поиск разделяемых библиотек](https://python-all.ru/3.1/library/ctypes.html#finding-shared-libraries)1111        - [15.15.2.2. Загрузка разделяемых библиотек](https://python-all.ru/3.1/library/ctypes.html#loading-shared-libraries)1112        - [15.15.2.3. Внешние функции](https://python-all.ru/3.1/library/ctypes.html#foreign-functions)1113        - [15.15.2.4. Прототипы функций](https://python-all.ru/3.1/library/ctypes.html#function-prototypes)1114        - [15.15.2.5. Вспомогательные функции](https://python-all.ru/3.1/library/ctypes.html#utility-functions)1115        - [15.15.2.6. Типы данных](https://python-all.ru/3.1/library/ctypes.html#data-types)1116        - [15.15.2.7. Базовые типы данных](https://python-all.ru/3.1/library/ctypes.html#ctypes-fundamental-data-types-2)1117        - [15.15.2.8. Структурированные типы данных](https://python-all.ru/3.1/library/ctypes.html#structured-data-types)1118        - [15.15.2.9. Массивы и указатели](https://python-all.ru/3.1/library/ctypes.html#arrays-and-pointers)1119  - [16. Дополнительные службы операционной системы](https://python-all.ru/3.1/library/someos.html)11201121    - [16.1. `select` – Ожидание завершения ввода-вывода](https://python-all.ru/3.1/library/select.html)11221123      - [16.1.1. Объекты опроса по переднему фронту и по уровню (epoll)](https://python-all.ru/3.1/library/select.html#edge-and-level-trigger-polling-epoll-objects)1124      - [16.1.2. Объекты опроса](https://python-all.ru/3.1/library/select.html#polling-objects)1125      - [16.1.3. Объекты kqueue](https://python-all.ru/3.1/library/select.html#kqueue-objects)1126      - [16.1.4. Объекты kevent](https://python-all.ru/3.1/library/select.html#kevent-objects)1127    - [16.2. `threading` – Параллелизм на основе потоков](https://python-all.ru/3.1/library/threading.html)11281129      - [16.2.1. Объекты потоков](https://python-all.ru/3.1/library/threading.html#thread-objects)1130      - [16.2.2. Объекты блокировок](https://python-all.ru/3.1/library/threading.html#lock-objects)1131      - [16.2.3. Объекты RLock](https://python-all.ru/3.1/library/threading.html#rlock-objects)1132      - [16.2.4. Объекты Condition](https://python-all.ru/3.1/library/threading.html#condition-objects)1133      - [16.2.5. Объекты семафоров](https://python-all.ru/3.1/library/threading.html#semaphore-objects)11341135        - [16.2.5.1. Пример с `Semaphore`](https://python-all.ru/3.1/library/threading.html#semaphore-example)1136      - [16.2.6. Объекты событий](https://python-all.ru/3.1/library/threading.html#event-objects)1137      - [16.2.7. Объекты таймеров](https://python-all.ru/3.1/library/threading.html#timer-objects)1138      - [16.2.8. Использование блокировок, условий и семафоров в операторе `with`](https://python-all.ru/3.1/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement)1139      - [16.2.9. Импорт в многопоточном коде](https://python-all.ru/3.1/library/threading.html#importing-in-threaded-code)1140    - [16.3. `multiprocessing` – Параллелизм на основе процессов](https://python-all.ru/3.1/library/multiprocessing.html)11411142      - [16.3.1. Введение](https://python-all.ru/3.1/library/multiprocessing.html#introduction)11431144        - [16.3.1.1. Класс `Process`](https://python-all.ru/3.1/library/multiprocessing.html#the-process-class)1145        - [16.3.1.2. Обмен объектами между процессами](https://python-all.ru/3.1/library/multiprocessing.html#exchanging-objects-between-processes)1146        - [16.3.1.3. Синхронизация между процессами](https://python-all.ru/3.1/library/multiprocessing.html#synchronization-between-processes)1147        - [16.3.1.4. Разделение состояния между процессами](https://python-all.ru/3.1/library/multiprocessing.html#sharing-state-between-processes)1148        - [16.3.1.5. Использование пула процессов](https://python-all.ru/3.1/library/multiprocessing.html#using-a-pool-of-workers)1149      - [16.3.2. Справочник](https://python-all.ru/3.1/library/multiprocessing.html#reference)11501151        - [16.3.2.1. `процесс` и исключения](https://python-all.ru/3.1/library/multiprocessing.html#process-and-exceptions)1152        - [16.3.2.2. Каналы и очереди](https://python-all.ru/3.1/library/multiprocessing.html#pipes-and-queues)1153        - [16.3.2.3. Разное](https://python-all.ru/3.1/library/multiprocessing.html#miscellaneous)1154        - [16.3.2.4. Объекты соединений](https://python-all.ru/3.1/library/multiprocessing.html#connection-objects)1155        - [16.3.2.5. Примитивы синхронизации](https://python-all.ru/3.1/library/multiprocessing.html#synchronization-primitives)1156        - [16.3.2.6. Разделяемые `ctypes` объекты](https://python-all.ru/3.1/library/multiprocessing.html#shared-ctypes-objects)11571158          - [16.3.2.6.1. Модуль `multiprocessing.sharedctypes`](https://python-all.ru/3.1/library/multiprocessing.html#module-multiprocessing.sharedctypes)1159        - [16.3.2.7. Менеджеры](https://python-all.ru/3.1/library/multiprocessing.html#module-multiprocessing.managers)11601161          - [16.3.2.7.1. Объекты пространства имён](https://python-all.ru/3.1/library/multiprocessing.html#namespace-objects)1162          - [16.3.2.7.2. Настраиваемые менеджеры](https://python-all.ru/3.1/library/multiprocessing.html#customized-managers)1163          - [16.3.2.7.3. Использование удалённого менеджера](https://python-all.ru/3.1/library/multiprocessing.html#using-a-remote-manager)1164        - [16.3.2.8. Объекты-прокси](https://python-all.ru/3.1/library/multiprocessing.html#proxy-objects)11651166          - [16.3.2.8.1. Очистка](https://python-all.ru/3.1/library/multiprocessing.html#cleanup)1167        - [16.3.2.9. Пулы процессов](https://python-all.ru/3.1/library/multiprocessing.html#module-multiprocessing.pool)1168        - [16.3.2.10. Слушатели и клиенты](https://python-all.ru/3.1/library/multiprocessing.html#module-multiprocessing.connection)11691170          - [16.3.2.10.1. Форматы адресов](https://python-all.ru/3.1/library/multiprocessing.html#address-formats)1171        - [16.3.2.11. Ключи аутентификации](https://python-all.ru/3.1/library/multiprocessing.html#authentication-keys)1172        - [16.3.2.12. Журналирование](https://python-all.ru/3.1/library/multiprocessing.html#logging)1173        - [16.3.2.13. Модуль `multiprocessing.dummy`](https://python-all.ru/3.1/library/multiprocessing.html#module-multiprocessing.dummy)1174      - [16.3.3. Рекомендации по программированию](https://python-all.ru/3.1/library/multiprocessing.html#programming-guidelines)11751176        - [16.3.3.1. Все платформы](https://python-all.ru/3.1/library/multiprocessing.html#all-platforms)1177        - [16.3.3.2. Windows](https://python-all.ru/3.1/library/multiprocessing.html#windows)1178      - [16.3.4. Примеры](https://python-all.ru/3.1/library/multiprocessing.html#examples)1179    - [16.4. `mmap` – поддержка файлов, отображаемых в память](https://python-all.ru/3.1/library/mmap.html)1180    - [16.5. `readline` – интерфейс GNU readline](https://python-all.ru/3.1/library/readline.html)11811182      - [16.5.1. Пример](https://python-all.ru/3.1/library/readline.html#example)1183    - [16.6. `rlcompleter` – функция завершения для GNU readline](https://python-all.ru/3.1/library/rlcompleter.html)11841185      - [16.6.1. Объекты Completer](https://python-all.ru/3.1/library/rlcompleter.html#completer-objects)1186    - [16.7. `dummy_threading` – прямая замена модуля `threading`](https://python-all.ru/3.1/library/dummy_threading.html)1187    - [16.8. `_thread` – низкоуровневый API многопоточности](https://python-all.ru/3.1/library/_thread.html)1188    - [16.9. `_dummy_thread` – прямая замена модуля `_thread`](https://python-all.ru/3.1/library/_dummy_thread.html)1189  - [17. Межпроцессное взаимодействие и сетевые возможности](https://python-all.ru/3.1/library/ipc.html)11901191    - [17.1. `subprocess` – Управление подпроцессами](https://python-all.ru/3.1/library/subprocess.html)11921193      - [17.1.1. Использование модуля подпроцесса](https://python-all.ru/3.1/library/subprocess.html#using-the-subprocess-module)11941195        - [17.1.1.1. Вспомогательные функции](https://python-all.ru/3.1/library/subprocess.html#convenience-functions)1196        - [17.1.1.2. Исключения](https://python-all.ru/3.1/library/subprocess.html#exceptions)1197        - [17.1.1.3. Безопасность](https://python-all.ru/3.1/library/subprocess.html#security)1198      - [17.1.2. Объекты Popen](https://python-all.ru/3.1/library/subprocess.html#popen-objects)1199      - [17.1.3. Вспомогательные функции Popen для Windows](https://python-all.ru/3.1/library/subprocess.html#windows-popen-helpers)12001201        - [17.1.3.1. Константы](https://python-all.ru/3.1/library/subprocess.html#constants)1202      - [17.1.4. Замена старых функций модулем подпроцесс](https://python-all.ru/3.1/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)12031204        - [17.1.4.1. Замена обратных кавычек оболочки /bin/sh](https://python-all.ru/3.1/library/subprocess.html#replacing-bin-sh-shell-backquote)1205        - [17.1.4.2. Замена конвейера оболочки](https://python-all.ru/3.1/library/subprocess.html#replacing-shell-pipeline)1206        - [17.1.4.3. Замена `os.system()`](https://python-all.ru/3.1/library/subprocess.html#replacing-os-system)1207        - [17.1.4.4. Замена семейства `os.spawn`](https://python-all.ru/3.1/library/subprocess.html#replacing-the-os-spawn-family)1208        - [17.1.4.5. Замена `os.popen()`, `os.popen2()`, `os.popen3()`](https://python-all.ru/3.1/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3)1209        - [17.1.4.6. Замена функций из модуля `popen2`](https://python-all.ru/3.1/library/subprocess.html#replacing-functions-from-the-popen2-module)1210      - [17.1.5. Примечания](https://python-all.ru/3.1/library/subprocess.html#notes)12111212        - [17.1.5.1. Преобразование последовательности аргументов в строку в Windows](https://python-all.ru/3.1/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows)1213    - [17.2. `socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/3.1/library/socket.html)12141215      - [17.2.1. Семейства сокетов](https://python-all.ru/3.1/library/socket.html#socket-families)1216      - [17.2.2. Содержимое модуля](https://python-all.ru/3.1/library/socket.html#module-contents)1217      - [17.2.3. Объекты сокетов](https://python-all.ru/3.1/library/socket.html#socket-objects)1218      - [17.2.4. Замечания по тайм-аутам сокетов](https://python-all.ru/3.1/library/socket.html#notes-on-socket-timeouts)12191220        - [17.2.4.1. Тайм-ауты и метод `connect`](https://python-all.ru/3.1/library/socket.html#timeouts-and-the-connect-method)1221      - [17.2.5. Пример](https://python-all.ru/3.1/library/socket.html#example)1222    - [17.3. `ssl` – обёртка TLS/SSL для объектов сокетов](https://python-all.ru/3.1/library/ssl.html)12231224      - [17.3.1. Функции, константы и исключения](https://python-all.ru/3.1/library/ssl.html#functions-constants-and-exceptions)1225      - [17.3.2. Объекты SSLSocket](https://python-all.ru/3.1/library/ssl.html#sslsocket-objects)1226      - [17.3.3. Сертификаты](https://python-all.ru/3.1/library/ssl.html#certificates)1227      - [17.3.4. Примеры](https://python-all.ru/3.1/library/ssl.html#examples)12281229        - [17.3.4.1. Проверка поддержки SSL](https://python-all.ru/3.1/library/ssl.html#testing-for-ssl-support)1230        - [17.3.4.2. Работа на стороне клиента](https://python-all.ru/3.1/library/ssl.html#client-side-operation)1231        - [17.3.4.3. Работа на стороне сервера](https://python-all.ru/3.1/library/ssl.html#server-side-operation)1232    - [17.4. `signal` – Установка обработчиков для асинхронных событий](https://python-all.ru/3.1/library/signal.html)12331234      - [17.4.1. Пример](https://python-all.ru/3.1/library/signal.html#example)1235    - [17.5. `asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/3.1/library/asyncore.html)12361237      - [17.5.1. asyncore – пример базового HTTP-клиента](https://python-all.ru/3.1/library/asyncore.html#asyncore-example-basic-http-client)1238      - [17.5.2. asyncore – пример базового эхо-сервера](https://python-all.ru/3.1/library/asyncore.html#asyncore-example-basic-echo-server)1239    - [17.6. `asynchat` – Асинхронный обработчик команд/ответов сокетов](https://python-all.ru/3.1/library/asynchat.html)12401241      - [17.6.1. asynchat – Вспомогательные классы](https://python-all.ru/3.1/library/asynchat.html#asynchat-auxiliary-classes)1242      - [17.6.2. asynchat – пример](https://python-all.ru/3.1/library/asynchat.html#asynchat-example)1243  - [18. Обработка интернет-данных](https://python-all.ru/3.1/library/netdata.html)12441245    - [18.1. `email` – Пакет для работы с электронной почтой и MIME](https://python-all.ru/3.1/library/email.html)12461247      - [18.1.1. `email`: Представление email-сообщения](https://python-all.ru/3.1/library/email.message.html)1248      - [18.1.2. `email`: Разбор email-сообщений](https://python-all.ru/3.1/library/email.parser.html)12491250        - [18.1.2.1. API FeedParser](https://python-all.ru/3.1/library/email.parser.html#feedparser-api)1251        - [18.1.2.2. API класса Parser](https://python-all.ru/3.1/library/email.parser.html#parser-class-api)1252        - [18.1.2.3. Дополнительные замечания](https://python-all.ru/3.1/library/email.parser.html#additional-notes)1253      - [18.1.3. `email`: Генерация MIME-документов](https://python-all.ru/3.1/library/email.generator.html)1254      - [18.1.4. `email`: Создание email- и MIME-объектов с нуля](https://python-all.ru/3.1/library/email.mime.html)1255      - [18.1.5. `email`: Интернационализированные заголовки](https://python-all.ru/3.1/library/email.header.html)1256      - [18.1.6. `email`: Представление кодировок](https://python-all.ru/3.1/library/email.charset.html)1257      - [18.1.7. `email`: Кодировщики](https://python-all.ru/3.1/library/email.encoders.html)1258      - [18.1.8. `email`: Классы исключений и дефектов](https://python-all.ru/3.1/library/email.errors.html)1259      - [18.1.9. `email`: Прочие утилиты](https://python-all.ru/3.1/library/email.util.html)1260      - [18.1.10. `email`: Итераторы](https://python-all.ru/3.1/library/email.iterators.html)1261      - [18.1.11. `email`: Примеры](https://python-all.ru/3.1/library/email-examples.html)1262      - [18.1.12. История пакета](https://python-all.ru/3.1/library/email.html#package-history)1263      - [18.1.13. Отличия от `mimelib`](https://python-all.ru/3.1/library/email.html#differences-from-mimelib)1264    - [18.2. `json` – Кодировщик и декодировщик JSON](https://python-all.ru/3.1/library/json.html)12651266      - [18.2.1. Базовое использование](https://python-all.ru/3.1/library/json.html#basic-usage)1267      - [18.2.2. Кодировщики и декодировщики](https://python-all.ru/3.1/library/json.html#encoders-and-decoders)1268    - [18.3. `mailcap` – Обработка файлов mailcap](https://python-all.ru/3.1/library/mailcap.html)1269    - [18.4. `mailbox` – Работа с почтовыми ящиками в различных форматах](https://python-all.ru/3.1/library/mailbox.html)12701271      - [18.4.1. Объекты `Mailbox`](https://python-all.ru/3.1/library/mailbox.html#mailbox-objects)12721273        - [18.4.1.1. `Maildir`](https://python-all.ru/3.1/library/mailbox.html#maildir)1274        - [18.4.1.2. `mbox`](https://python-all.ru/3.1/library/mailbox.html#mbox)1275        - [18.4.1.3. `MH`](https://python-all.ru/3.1/library/mailbox.html#mh)1276        - [18.4.1.4. `Babyl`](https://python-all.ru/3.1/library/mailbox.html#babyl)1277        - [18.4.1.5. `MMDF`](https://python-all.ru/3.1/library/mailbox.html#mmdf)1278      - [18.4.2. Объекты `Message`](https://python-all.ru/3.1/library/mailbox.html#message-objects)12791280        - [18.4.2.1. `MaildirMessage`](https://python-all.ru/3.1/library/mailbox.html#maildirmessage)1281        - [18.4.2.2. `mboxMessage`](https://python-all.ru/3.1/library/mailbox.html#mboxmessage)1282        - [18.4.2.3. `MHMessage`](https://python-all.ru/3.1/library/mailbox.html#mhmessage)1283        - [18.4.2.4. `BabylMessage`](https://python-all.ru/3.1/library/mailbox.html#babylmessage)1284        - [18.4.2.5. `MMDFMessage`](https://python-all.ru/3.1/library/mailbox.html#mmdfmessage)1285      - [18.4.3. Исключения](https://python-all.ru/3.1/library/mailbox.html#exceptions)1286      - [18.4.4. Примеры](https://python-all.ru/3.1/library/mailbox.html#examples)1287    - [18.5. `mimetypes` – Сопоставление имён файлов с MIME-типами](https://python-all.ru/3.1/library/mimetypes.html)12881289      - [18.5.1. Объекты MimeTypes](https://python-all.ru/3.1/library/mimetypes.html#mimetypes-objects)1290    - [18.6. `base64` – RFC 3548: Кодирование данных Base16, Base32, Base64](https://python-all.ru/3.1/library/base64.html)1291    - [18.7. `binhex` – Кодирование и декодирование файлов binhex4](https://python-all.ru/3.1/library/binhex.html)12921293      - [18.7.1. Замечания](https://python-all.ru/3.1/library/binhex.html#notes)1294    - [18.8. `binascii` – Преобразование между двоичным и ASCII](https://python-all.ru/3.1/library/binascii.html)1295    - [18.9. `quopri` – Кодирование и декодирование MIME quoted-printable данных](https://python-all.ru/3.1/library/quopri.html)1296    - [18.10. `uu` – Кодирование и декодирование файлов uuencode](https://python-all.ru/3.1/library/uu.html)1297  - [19. Инструменты обработки структурированной разметки](https://python-all.ru/3.1/library/markup.html)12981299    - [19.1. `html.parser` – Простой парсер HTML и XHTML](https://python-all.ru/3.1/library/html.parser.html)13001301      - [19.1.1. Пример приложения для парсинга HTML](https://python-all.ru/3.1/library/html.parser.html#example-html-parser-application)1302    - [19.2. `html.entities` – Определения общих сущностей HTML](https://python-all.ru/3.1/library/html.entities.html)1303    - [19.3. `xml.parsers.expat` – Быстрый разбор XML с помощью Expat](https://python-all.ru/3.1/library/pyexpat.html)13041305      - [19.3.1. Объекты XMLParser](https://python-all.ru/3.1/library/pyexpat.html#xmlparser-objects)1306      - [19.3.2. Исключения ExpatError](https://python-all.ru/3.1/library/pyexpat.html#expaterror-exceptions)1307      - [19.3.3. Пример](https://python-all.ru/3.1/library/pyexpat.html#example)1308      - [19.3.4. Описания моделей содержимого](https://python-all.ru/3.1/library/pyexpat.html#content-model-descriptions)1309      - [19.3.5. Константы ошибок Expat](https://python-all.ru/3.1/library/pyexpat.html#expat-error-constants)1310    - [19.4. `xml.dom` – API объектной модели документа (DOM)](https://python-all.ru/3.1/library/xml.dom.html)13111312      - [19.4.1. Содержимое модуля](https://python-all.ru/3.1/library/xml.dom.html#module-contents)1313      - [19.4.2. Объекты в DOM](https://python-all.ru/3.1/library/xml.dom.html#objects-in-the-dom)13141315        - [19.4.2.1. Объекты DOMImplementation](https://python-all.ru/3.1/library/xml.dom.html#domimplementation-objects)1316        - [19.4.2.2. Объекты Node](https://python-all.ru/3.1/library/xml.dom.html#node-objects)1317        - [19.4.2.3. Объекты NodeList](https://python-all.ru/3.1/library/xml.dom.html#nodelist-objects)1318        - [19.4.2.4. Объекты DocumentType](https://python-all.ru/3.1/library/xml.dom.html#documenttype-objects)1319        - [19.4.2.5. Объекты Document](https://python-all.ru/3.1/library/xml.dom.html#document-objects)1320        - [19.4.2.6. Объекты Element](https://python-all.ru/3.1/library/xml.dom.html#element-objects)1321        - [19.4.2.7. Объекты Attr](https://python-all.ru/3.1/library/xml.dom.html#attr-objects)1322        - [19.4.2.8. Объекты NamedNodeMap](https://python-all.ru/3.1/library/xml.dom.html#namednodemap-objects)1323        - [19.4.2.9. Объекты Comment](https://python-all.ru/3.1/library/xml.dom.html#comment-objects)1324        - [19.4.2.10. Объекты Text и CDATASection](https://python-all.ru/3.1/library/xml.dom.html#text-and-cdatasection-objects)1325        - [19.4.2.11. Объекты ProcessingInstruction](https://python-all.ru/3.1/library/xml.dom.html#processinginstruction-objects)1326        - [19.4.2.12. Исключения](https://python-all.ru/3.1/library/xml.dom.html#exceptions)1327      - [19.4.3. Соответствие стандарту](https://python-all.ru/3.1/library/xml.dom.html#conformance)13281329        - [19.4.3.1. Сопоставление типов](https://python-all.ru/3.1/library/xml.dom.html#type-mapping)1330        - [19.4.3.2. Методы доступа](https://python-all.ru/3.1/library/xml.dom.html#accessor-methods)1331    - [19.5. `xml.dom.minidom` – Лёгкая реализация DOM](https://python-all.ru/3.1/library/xml.dom.minidom.html)13321333      - [19.5.1. Объекты DOM](https://python-all.ru/3.1/library/xml.dom.minidom.html#dom-objects)1334      - [19.5.2. Пример DOM](https://python-all.ru/3.1/library/xml.dom.minidom.html#dom-example)1335      - [19.5.3. minidom и стандарт DOM](https://python-all.ru/3.1/library/xml.dom.minidom.html#minidom-and-the-dom-standard)1336    - [19.6. `xml.dom.pulldom` – Поддержка построения частичных DOM-деревьев](https://python-all.ru/3.1/library/xml.dom.pulldom.html)13371338      - [19.6.1. Объекты DOMEventStream](https://python-all.ru/3.1/library/xml.dom.pulldom.html#domeventstream-objects)1339    - [19.7. `xml.sax` – Поддержка парсеров SAX2](https://python-all.ru/3.1/library/xml.sax.html)13401341      - [19.7.1. Объекты SAXException](https://python-all.ru/3.1/library/xml.sax.html#saxexception-objects)1342    - [19.8. `xml.sax.handler` – Базовые классы для обработчиков SAX](https://python-all.ru/3.1/library/xml.sax.handler.html)13431344      - [19.8.1. Объекты ContentHandler](https://python-all.ru/3.1/library/xml.sax.handler.html#contenthandler-objects)1345      - [19.8.2. Объекты DTDHandler](https://python-all.ru/3.1/library/xml.sax.handler.html#dtdhandler-objects)1346      - [19.8.3. Объекты EntityResolver](https://python-all.ru/3.1/library/xml.sax.handler.html#entityresolver-objects)1347      - [19.8.4. Объекты ErrorHandler](https://python-all.ru/3.1/library/xml.sax.handler.html#errorhandler-objects)1348    - [19.9. `xml.sax.saxutils` – Утилиты SAX](https://python-all.ru/3.1/library/xml.sax.utils.html)1349    - [19.10. `xml.sax.xmlreader` – Интерфейс для парсеров XML](https://python-all.ru/3.1/library/xml.sax.reader.html)13501351      - [19.10.1. Объекты XMLReader](https://python-all.ru/3.1/library/xml.sax.reader.html#xmlreader-objects)1352      - [19.10.2. Объекты IncrementalParser](https://python-all.ru/3.1/library/xml.sax.reader.html#incrementalparser-objects)1353      - [19.10.3. Объекты Locator](https://python-all.ru/3.1/library/xml.sax.reader.html#locator-objects)1354      - [19.10.4. Объекты InputSource](https://python-all.ru/3.1/library/xml.sax.reader.html#inputsource-objects)1355      - [19.10.5. Интерфейс `Attributes`](https://python-all.ru/3.1/library/xml.sax.reader.html#the-attributes-interface)1356      - [19.10.6. Интерфейс `AttributesNS`](https://python-all.ru/3.1/library/xml.sax.reader.html#the-attributesns-interface)1357    - [19.11. `xml.etree.ElementTree` – API ElementTree для XML](https://python-all.ru/3.1/library/xml.etree.elementtree.html)13581359      - [19.11.1. Функции](https://python-all.ru/3.1/library/xml.etree.elementtree.html#functions)1360      - [19.11.2. Интерфейс Element](https://python-all.ru/3.1/library/xml.etree.elementtree.html#the-element-interface)1361      - [19.11.3. Объекты ElementTree](https://python-all.ru/3.1/library/xml.etree.elementtree.html#elementtree-objects)1362      - [19.11.4. Объекты QName](https://python-all.ru/3.1/library/xml.etree.elementtree.html#qname-objects)1363      - [19.11.5. Объекты TreeBuilder](https://python-all.ru/3.1/library/xml.etree.elementtree.html#treebuilder-objects)1364      - [19.11.6. Объекты XMLTreeBuilder](https://python-all.ru/3.1/library/xml.etree.elementtree.html#xmltreebuilder-objects)1365  - [20. Интернет-протоколы и поддержка](https://python-all.ru/3.1/library/internet.html)13661367    - [20.1. `webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/3.1/library/webbrowser.html)13681369      - [20.1.1. Объекты контроллера браузера](https://python-all.ru/3.1/library/webbrowser.html#browser-controller-objects)1370    - [20.2. `cgi` – Поддержка Common Gateway Interface](https://python-all.ru/3.1/library/cgi.html)13711372      - [20.2.1. Введение](https://python-all.ru/3.1/library/cgi.html#introduction)1373      - [20.2.2. Использование модуля cgi](https://python-all.ru/3.1/library/cgi.html#using-the-cgi-module)1374      - [20.2.3. Интерфейс высокого уровня](https://python-all.ru/3.1/library/cgi.html#higher-level-interface)1375      - [20.2.4. Функции](https://python-all.ru/3.1/library/cgi.html#functions)1376      - [20.2.5. Вопросы безопасности](https://python-all.ru/3.1/library/cgi.html#caring-about-security)1377      - [20.2.6. Установка CGI-скрипта в системе Unix](https://python-all.ru/3.1/library/cgi.html#installing-your-cgi-script-on-a-unix-system)1378      - [20.2.7. Тестирование CGI-скрипта](https://python-all.ru/3.1/library/cgi.html#testing-your-cgi-script)1379      - [20.2.8. Отладка CGI-скриптов](https://python-all.ru/3.1/library/cgi.html#debugging-cgi-scripts)1380      - [20.2.9. Распространённые проблемы и их решения](https://python-all.ru/3.1/library/cgi.html#common-problems-and-solutions)1381    - [20.3. `cgitb` – Менеджер трассировки для CGI-скриптов](https://python-all.ru/3.1/library/cgitb.html)1382    - [20.4. `wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/3.1/library/wsgiref.html)13831384      - [20.4.1. `wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/3.1/library/wsgiref.html#module-wsgiref.util)1385      - [20.4.2. `wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/3.1/library/wsgiref.html#module-wsgiref.headers)1386      - [20.4.3. `wsgiref.simple_server` – Простой HTTP-сервер WSGI](https://python-all.ru/3.1/library/wsgiref.html#module-wsgiref.simple_server)1387      - [20.4.4. `wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/3.1/library/wsgiref.html#module-wsgiref.validate)1388      - [20.4.5. `wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/3.1/library/wsgiref.html#module-wsgiref.handlers)1389      - [20.4.6. Примеры](https://python-all.ru/3.1/library/wsgiref.html#examples)1390    - [20.5. `urllib.request` – Расширяемая библиотека для открытия URL](https://python-all.ru/3.1/library/urllib.request.html)13911392      - [20.5.1. Объекты Request](https://python-all.ru/3.1/library/urllib.request.html#request-objects)1393      - [20.5.2. Объекты OpenerDirector](https://python-all.ru/3.1/library/urllib.request.html#openerdirector-objects)1394      - [20.5.3. Объекты BaseHandler](https://python-all.ru/3.1/library/urllib.request.html#basehandler-objects)1395      - [20.5.4. Объекты HTTPRedirectHandler](https://python-all.ru/3.1/library/urllib.request.html#httpredirecthandler-objects)1396      - [20.5.5. Объекты HTTPCookieProcessor](https://python-all.ru/3.1/library/urllib.request.html#httpcookieprocessor-objects)1397      - [20.5.6. Объекты ProxyHandler](https://python-all.ru/3.1/library/urllib.request.html#proxyhandler-objects)1398      - [20.5.7. Объекты HTTPPasswordMgr](https://python-all.ru/3.1/library/urllib.request.html#httppasswordmgr-objects)1399      - [20.5.8. Объекты AbstractBasicAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#abstractbasicauthhandler-objects)1400      - [20.5.9. Объекты HTTPBasicAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#httpbasicauthhandler-objects)1401      - [20.5.10. Объекты ProxyBasicAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#proxybasicauthhandler-objects)1402      - [20.5.11. Объекты AbstractDigestAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#abstractdigestauthhandler-objects)1403      - [20.5.12. Объекты HTTPDigestAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#httpdigestauthhandler-objects)1404      - [20.5.13. Объекты ProxyDigestAuthHandler](https://python-all.ru/3.1/library/urllib.request.html#proxydigestauthhandler-objects)1405      - [20.5.14. Объекты HTTPHandler](https://python-all.ru/3.1/library/urllib.request.html#httphandler-objects)1406      - [20.5.15. Объекты HTTPSHandler](https://python-all.ru/3.1/library/urllib.request.html#httpshandler-objects)1407      - [20.5.16. Объекты FileHandler](https://python-all.ru/3.1/library/urllib.request.html#filehandler-objects)1408      - [20.5.17. Объекты FTPHandler](https://python-all.ru/3.1/library/urllib.request.html#ftphandler-objects)1409      - [20.5.18. Объекты CacheFTPHandler](https://python-all.ru/3.1/library/urllib.request.html#cacheftphandler-objects)1410      - [20.5.19. Объекты UnknownHandler](https://python-all.ru/3.1/library/urllib.request.html#unknownhandler-objects)1411      - [20.5.20. Объекты HTTPErrorProcessor](https://python-all.ru/3.1/library/urllib.request.html#httperrorprocessor-objects)1412      - [20.5.21. Примеры](https://python-all.ru/3.1/library/urllib.request.html#examples)1413      - [20.5.22. `urllib.request` Ограничения](https://python-all.ru/3.1/library/urllib.request.html#urllib-request-restrictions)1414    - [20.6. `urllib.response` – Классы ответов, используемые urllib](https://python-all.ru/3.1/library/urllib.request.html#module-urllib.response)1415    - [20.7. `urllib.parse` – Разбор URL на компоненты](https://python-all.ru/3.1/library/urllib.parse.html)14161417      - [20.7.1. Результаты `urlparse()` и `urlsplit()`](https://python-all.ru/3.1/library/urllib.parse.html#results-of-urlparse-and-urlsplit)1418    - [20.8. `urllib.error` – Классы исключений, вызываемые urllib.request](https://python-all.ru/3.1/library/urllib.error.html)1419    - [20.9. `urllib.robotparser` – Парсер для robots.txt](https://python-all.ru/3.1/library/urllib.robotparser.html)1420    - [20.10. `http.client` – Клиент протокола HTTP](https://python-all.ru/3.1/library/http.client.html)14211422      - [20.10.1. Объекты HTTPConnection](https://python-all.ru/3.1/library/http.client.html#httpconnection-objects)1423      - [20.10.2. Объекты HTTPResponse](https://python-all.ru/3.1/library/http.client.html#httpresponse-objects)1424      - [20.10.3. Примеры](https://python-all.ru/3.1/library/http.client.html#examples)1425      - [20.10.4. Объекты HTTPMessage](https://python-all.ru/3.1/library/http.client.html#httpmessage-objects)1426    - [20.11. `ftplib` – Клиент протокола FTP](https://python-all.ru/3.1/library/ftplib.html)14271428      - [20.11.1. Объекты FTP](https://python-all.ru/3.1/library/ftplib.html#ftp-objects)1429    - [20.12. `poplib` – Клиент протокола POP3](https://python-all.ru/3.1/library/poplib.html)14301431      - [20.12.1. Объекты POP3](https://python-all.ru/3.1/library/poplib.html#pop3-objects)1432      - [20.12.2. Пример POP3](https://python-all.ru/3.1/library/poplib.html#pop3-example)1433    - [20.13. `imaplib` – Клиент протокола IMAP4](https://python-all.ru/3.1/library/imaplib.html)14341435      - [20.13.1. Объекты IMAP4](https://python-all.ru/3.1/library/imaplib.html#imap4-objects)1436      - [20.13.2. Пример IMAP4](https://python-all.ru/3.1/library/imaplib.html#imap4-example)1437    - [20.14. `nntplib` – Клиент протокола NNTP](https://python-all.ru/3.1/library/nntplib.html)14381439      - [20.14.1. Объекты NNTP](https://python-all.ru/3.1/library/nntplib.html#nntp-objects)1440    - [20.15. `smtplib` – Клиент протокола SMTP](https://python-all.ru/3.1/library/smtplib.html)14411442      - [20.15.1. Объекты SMTP](https://python-all.ru/3.1/library/smtplib.html#smtp-objects)1443      - [20.15.2. Пример SMTP](https://python-all.ru/3.1/library/smtplib.html#smtp-example)1444    - [20.16. `smtpd` – SMTP-сервер](https://python-all.ru/3.1/library/smtpd.html)14451446      - [20.16.1. Объекты SMTPServer](https://python-all.ru/3.1/library/smtpd.html#smtpserver-objects)1447      - [20.16.2. Объекты DebuggingServer](https://python-all.ru/3.1/library/smtpd.html#debuggingserver-objects)1448      - [20.16.3. Объекты PureProxy](https://python-all.ru/3.1/library/smtpd.html#pureproxy-objects)1449      - [20.16.4. Объекты MailmanProxy](https://python-all.ru/3.1/library/smtpd.html#mailmanproxy-objects)1450    - [20.17. `telnetlib` – Telnet-клиент](https://python-all.ru/3.1/library/telnetlib.html)14511452      - [20.17.1. Объекты Telnet](https://python-all.ru/3.1/library/telnetlib.html#telnet-objects)1453      - [20.17.2. Пример Telnet](https://python-all.ru/3.1/library/telnetlib.html#telnet-example)1454    - [20.18. `uuid` – объекты UUID по RFC 4122](https://python-all.ru/3.1/library/uuid.html)14551456      - [20.18.1. Пример](https://python-all.ru/3.1/library/uuid.html#example)1457    - [20.19. `socketserver` – каркас для сетевых серверов](https://python-all.ru/3.1/library/socketserver.html)14581459      - [20.19.1. Замечания по созданию сервера](https://python-all.ru/3.1/library/socketserver.html#server-creation-notes)1460      - [20.19.2. Объекты сервера](https://python-all.ru/3.1/library/socketserver.html#server-objects)1461      - [20.19.3. Объекты RequestHandler](https://python-all.ru/3.1/library/socketserver.html#requesthandler-objects)1462      - [20.19.4. Примеры](https://python-all.ru/3.1/library/socketserver.html#examples)14631464        - [20.19.4.1. Пример `socketserver.TCPServer`](https://python-all.ru/3.1/library/socketserver.html#socketserver-tcpserver-example)1465        - [20.19.4.2. Пример `socketserver.UDPServer`](https://python-all.ru/3.1/library/socketserver.html#socketserver-udpserver-example)1466        - [20.19.4.3. Асинхронные миксины](https://python-all.ru/3.1/library/socketserver.html#asynchronous-mixins)1467    - [20.20. `http.server` – HTTP-серверы](https://python-all.ru/3.1/library/http.server.html)1468    - [20.21. `http.cookies` – управление состоянием HTTP](https://python-all.ru/3.1/library/http.cookies.html)14691470      - [20.21.1. Объекты Cookie](https://python-all.ru/3.1/library/http.cookies.html#cookie-objects)1471      - [20.21.2. Объекты Morsel](https://python-all.ru/3.1/library/http.cookies.html#morsel-objects)1472      - [20.21.3. Пример](https://python-all.ru/3.1/library/http.cookies.html#example)1473    - [20.22. `http.cookiejar` – обработка cookie для HTTP-клиентов](https://python-all.ru/3.1/library/http.cookiejar.html)14741475      - [20.22.1. Объекты CookieJar и FileCookieJar](https://python-all.ru/3.1/library/http.cookiejar.html#cookiejar-and-filecookiejar-objects)1476      - [20.22.2. Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/3.1/library/http.cookiejar.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)1477      - [20.22.3. Объекты CookiePolicy](https://python-all.ru/3.1/library/http.cookiejar.html#cookiepolicy-objects)1478      - [20.22.4. Объекты DefaultCookiePolicy](https://python-all.ru/3.1/library/http.cookiejar.html#defaultcookiepolicy-objects)1479      - [20.22.5. Объекты Cookie](https://python-all.ru/3.1/library/http.cookiejar.html#cookie-objects)1480      - [20.22.6. Примеры](https://python-all.ru/3.1/library/http.cookiejar.html#examples)1481    - [20.23. `xmlrpc.client` – клиентский доступ к XML-RPC](https://python-all.ru/3.1/library/xmlrpc.client.html)14821483      - [20.23.1. Объекты ServerProxy](https://python-all.ru/3.1/library/xmlrpc.client.html#serverproxy-objects)1484      - [20.23.2. Объекты DateTime](https://python-all.ru/3.1/library/xmlrpc.client.html#datetime-objects)1485      - [20.23.3. Двоичные объекты](https://python-all.ru/3.1/library/xmlrpc.client.html#binary-objects)1486      - [20.23.4. Объекты Fault](https://python-all.ru/3.1/library/xmlrpc.client.html#fault-objects)1487      - [20.23.5. Объекты ProtocolError](https://python-all.ru/3.1/library/xmlrpc.client.html#protocolerror-objects)1488      - [20.23.6. Объекты MultiCall](https://python-all.ru/3.1/library/xmlrpc.client.html#multicall-objects)1489      - [20.23.7. Вспомогательные функции](https://python-all.ru/3.1/library/xmlrpc.client.html#convenience-functions)1490      - [20.23.8. Пример использования клиента](https://python-all.ru/3.1/library/xmlrpc.client.html#example-of-client-usage)1491      - [20.23.9. Пример использования клиента и сервера](https://python-all.ru/3.1/library/xmlrpc.client.html#example-of-client-and-server-usage)1492    - [20.24. `xmlrpc.server` – Базовые XML-RPC-серверы](https://python-all.ru/3.1/library/xmlrpc.server.html)14931494      - [20.24.1. Объекты SimpleXMLRPCServer](https://python-all.ru/3.1/library/xmlrpc.server.html#simplexmlrpcserver-objects)14951496        - [20.24.1.1. Пример SimpleXMLRPCServer](https://python-all.ru/3.1/library/xmlrpc.server.html#simplexmlrpcserver-example)1497      - [20.24.2. CGIXMLRPCRequestHandler](https://python-all.ru/3.1/library/xmlrpc.server.html#cgixmlrpcrequesthandler)1498      - [20.24.3. Документирование XMLRPC-сервера](https://python-all.ru/3.1/library/xmlrpc.server.html#documenting-xmlrpc-server)1499      - [20.24.4. Объекты DocXMLRPCServer](https://python-all.ru/3.1/library/xmlrpc.server.html#docxmlrpcserver-objects)1500      - [20.24.5. DocCGIXMLRPCRequestHandler](https://python-all.ru/3.1/library/xmlrpc.server.html#doccgixmlrpcrequesthandler)1501  - [21. Мультимедийные службы](https://python-all.ru/3.1/library/mm.html)15021503    - [21.1. `audioop` – Обработка необработанных аудиоданных](https://python-all.ru/3.1/library/audioop.html)1504    - [21.2. `aifc` – Чтение и запись файлов AIFF и AIFC](https://python-all.ru/3.1/library/aifc.html)1505    - [21.3. `sunau` – Чтение и запись файлов Sun AU](https://python-all.ru/3.1/library/sunau.html)15061507      - [21.3.1. Объекты AU\_read](https://python-all.ru/3.1/library/sunau.html#au-read-objects)1508      - [21.3.2. Объекты AU\_write](https://python-all.ru/3.1/library/sunau.html#au-write-objects)1509    - [21.4. `wave` – Чтение и запись WAV-файлов](https://python-all.ru/3.1/library/wave.html)15101511      - [21.4.1. Объекты Wave\_read](https://python-all.ru/3.1/library/wave.html#wave-read-objects)1512      - [21.4.2. Объекты Wave\_write](https://python-all.ru/3.1/library/wave.html#wave-write-objects)1513    - [21.5. `chunk` – Чтение блочных данных IFF](https://python-all.ru/3.1/library/chunk.html)1514    - [21.6. `colorsys` – Преобразование между цветовыми системами](https://python-all.ru/3.1/library/colorsys.html)1515    - [21.7. `imghdr` – Определение типа изображения](https://python-all.ru/3.1/library/imghdr.html)1516    - [21.8. `sndhdr` – Определение типа звукового файла](https://python-all.ru/3.1/library/sndhdr.html)1517    - [21.9. `ossaudiodev` – Доступ к аудиоустройствам, совместимым с OSS](https://python-all.ru/3.1/library/ossaudiodev.html)15181519      - [21.9.1. Объекты аудиоустройств](https://python-all.ru/3.1/library/ossaudiodev.html#audio-device-objects)1520      - [21.9.2. Объекты микшерных устройств](https://python-all.ru/3.1/library/ossaudiodev.html#mixer-device-objects)1521  - [22. Интернационализация](https://python-all.ru/3.1/library/i18n.html)15221523    - [22.1. `gettext` – Многоязычные службы интернационализации](https://python-all.ru/3.1/library/gettext.html)15241525      - [22.1.1. API GNU **gettext**](https://python-all.ru/3.1/library/gettext.html#gnu-gettext-api)1526      - [22.1.2. API на основе классов](https://python-all.ru/3.1/library/gettext.html#class-based-api)15271528        - [22.1.2.1. Класс `NullTranslations`](https://python-all.ru/3.1/library/gettext.html#the-nulltranslations-class)1529        - [22.1.2.2. Класс `GNUTranslations`](https://python-all.ru/3.1/library/gettext.html#the-gnutranslations-class)1530        - [22.1.2.3. Поддержка каталогов сообщений Solaris](https://python-all.ru/3.1/library/gettext.html#solaris-message-catalog-support)1531        - [22.1.2.4. Конструктор Catalog](https://python-all.ru/3.1/library/gettext.html#the-catalog-constructor)1532      - [22.1.3. Интернационализация программ и модулей](https://python-all.ru/3.1/library/gettext.html#internationalizing-your-programs-and-modules)15331534        - [22.1.3.1. Локализация модуля](https://python-all.ru/3.1/library/gettext.html#localizing-your-module)1535        - [22.1.3.2. Локализация приложения](https://python-all.ru/3.1/library/gettext.html#localizing-your-application)1536        - [22.1.3.3. Смена языка на лету](https://python-all.ru/3.1/library/gettext.html#changing-languages-on-the-fly)1537        - [22.1.3.4. Отложенные переводы](https://python-all.ru/3.1/library/gettext.html#deferred-translations)1538      - [22.1.4. Благодарности](https://python-all.ru/3.1/library/gettext.html#acknowledgements)1539    - [22.2. `locale` – Службы интернационализации](https://python-all.ru/3.1/library/locale.html)15401541      - [22.2.1. Предыстория, подробности, советы и предостережения](https://python-all.ru/3.1/library/locale.html#background-details-hints-tips-and-caveats)1542      - [22.2.2. Для разработчиков расширений и программ, встраивающих Python](https://python-all.ru/3.1/library/locale.html#for-extension-writers-and-programs-that-embed-python)1543      - [22.2.3. Доступ к каталогам сообщений](https://python-all.ru/3.1/library/locale.html#access-to-message-catalogs)1544  - [23. Каркасы программ](https://python-all.ru/3.1/library/frameworks.html)15451546    - [23.1. `turtle` – Графика черепашки](https://python-all.ru/3.1/library/turtle.html)15471548      - [23.1.1. Введение](https://python-all.ru/3.1/library/turtle.html#introduction)1549      - [23.1.2. Обзор доступных методов Turtle и Screen](https://python-all.ru/3.1/library/turtle.html#overview-of-available-turtle-and-screen-methods)15501551        - [23.1.2.1. Методы Turtle](https://python-all.ru/3.1/library/turtle.html#turtle-methods)1552        - [23.1.2.2. Методы TurtleScreen/Screen](https://python-all.ru/3.1/library/turtle.html#methods-of-turtlescreen-screen)1553      - [23.1.3. Методы RawTurtle/Turtle и соответствующие функции](https://python-all.ru/3.1/library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions)15541555        - [23.1.3.1. Движение черепашки](https://python-all.ru/3.1/library/turtle.html#turtle-motion)1556        - [23.1.3.2. Состояние черепашки](https://python-all.ru/3.1/library/turtle.html#tell-turtle-s-state)1557        - [23.1.3.3. Настройки измерений](https://python-all.ru/3.1/library/turtle.html#settings-for-measurement)1558        - [23.1.3.4. Управление пером](https://python-all.ru/3.1/library/turtle.html#pen-control)15591560          - [23.1.3.4.1. Состояние рисования](https://python-all.ru/3.1/library/turtle.html#drawing-state)1561          - [23.1.3.4.2. Управление цветом](https://python-all.ru/3.1/library/turtle.html#color-control)1562          - [23.1.3.4.3. Заливка](https://python-all.ru/3.1/library/turtle.html#filling)1563          - [23.1.3.4.4. Дополнительное управление рисованием](https://python-all.ru/3.1/library/turtle.html#more-drawing-control)1564        - [23.1.3.5. Состояние черепахи](https://python-all.ru/3.1/library/turtle.html#turtle-state)15651566          - [23.1.3.5.1. Видимость](https://python-all.ru/3.1/library/turtle.html#visibility)1567          - [23.1.3.5.2. Внешний вид](https://python-all.ru/3.1/library/turtle.html#appearance)1568        - [23.1.3.6. Использование событий](https://python-all.ru/3.1/library/turtle.html#using-events)1569        - [23.1.3.7. Специальные методы Turtle](https://python-all.ru/3.1/library/turtle.html#special-turtle-methods)1570        - [23.1.3.8. Составные формы](https://python-all.ru/3.1/library/turtle.html#compound-shapes)1571      - [23.1.4. Методы TurtleScreen/Screen и соответствующие функции](https://python-all.ru/3.1/library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions)15721573        - [23.1.4.1. Управление окном](https://python-all.ru/3.1/library/turtle.html#window-control)1574        - [23.1.4.2. Управление анимацией](https://python-all.ru/3.1/library/turtle.html#animation-control)1575        - [23.1.4.3. Использование событий экрана](https://python-all.ru/3.1/library/turtle.html#using-screen-events)1576        - [23.1.4.4. Методы ввода](https://python-all.ru/3.1/library/turtle.html#input-methods)1577        - [23.1.4.5. Настройки и специальные методы](https://python-all.ru/3.1/library/turtle.html#settings-and-special-methods)1578        - [23.1.4.6. Методы, специфичные для Screen, не унаследованные от TurtleScreen](https://python-all.ru/3.1/library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen)1579      - [23.1.5. Публичные классы](https://python-all.ru/3.1/library/turtle.html#public-classes)1580      - [23.1.6. Справка и настройка](https://python-all.ru/3.1/library/turtle.html#help-and-configuration)15811582        - [23.1.6.1. Как пользоваться справкой](https://python-all.ru/3.1/library/turtle.html#how-to-use-help)1583        - [23.1.6.2. Перевод докстрингов на разные языки](https://python-all.ru/3.1/library/turtle.html#translation-of-docstrings-into-different-languages)1584        - [23.1.6.3. Как настроить экран и черепах](https://python-all.ru/3.1/library/turtle.html#how-to-configure-screen-and-turtles)1585      - [23.1.7. Демонстрационные скрипты](https://python-all.ru/3.1/library/turtle.html#demo-scripts)1586      - [23.1.8. Изменения начиная с Python 2.6](https://python-all.ru/3.1/library/turtle.html#changes-since-python-2-6)1587      - [23.1.9. Изменения начиная с Python 3.0](https://python-all.ru/3.1/library/turtle.html#changes-since-python-3-0)1588    - [23.2. `cmd` – поддержка построчных командных интерпретаторов](https://python-all.ru/3.1/library/cmd.html)15891590      - [23.2.1. Объекты Cmd](https://python-all.ru/3.1/library/cmd.html#cmd-objects)1591    - [23.3. `shlex` – простой лексический анализ](https://python-all.ru/3.1/library/shlex.html)15921593      - [23.3.1. Объекты shlex](https://python-all.ru/3.1/library/shlex.html#shlex-objects)1594      - [23.3.2. Правила разбора](https://python-all.ru/3.1/library/shlex.html#parsing-rules)1595  - [24. Графические пользовательские интерфейсы с Tk](https://python-all.ru/3.1/library/tk.html)15961597    - [24.1. `tkinter` – интерфейс Python к Tcl/Tk](https://python-all.ru/3.1/library/tkinter.html)15981599      - [24.1.1. Модули Tkinter](https://python-all.ru/3.1/library/tkinter.html#tkinter-modules)1600      - [24.1.2. Жизненный спасатель Tkinter](https://python-all.ru/3.1/library/tkinter.html#tkinter-life-preserver)16011602        - [24.1.2.1. Как использовать этот раздел](https://python-all.ru/3.1/library/tkinter.html#how-to-use-this-section)1603        - [24.1.2.2. Простая программа Hello World](https://python-all.ru/3.1/library/tkinter.html#a-simple-hello-world-program)1604      - [24.1.3. Очень быстрый взгляд на Tcl/Tk](https://python-all.ru/3.1/library/tkinter.html#a-very-quick-look-at-tcl-tk)1605      - [24.1.4. Отображение базового Tk в Tkinter](https://python-all.ru/3.1/library/tkinter.html#mapping-basic-tk-into-tkinter)1606      - [24.1.5. Как связаны Tk и Tkinter](https://python-all.ru/3.1/library/tkinter.html#how-tk-and-tkinter-are-related)1607      - [24.1.6. Удобный справочник](https://python-all.ru/3.1/library/tkinter.html#handy-reference)16081609        - [24.1.6.1. Настройка параметров](https://python-all.ru/3.1/library/tkinter.html#setting-options)1610        - [24.1.6.2. Упаковщик](https://python-all.ru/3.1/library/tkinter.html#the-packer)1611        - [24.1.6.3. Параметры упаковщика](https://python-all.ru/3.1/library/tkinter.html#packer-options)1612        - [24.1.6.4. Привязка переменных виджетов](https://python-all.ru/3.1/library/tkinter.html#coupling-widget-variables)1613        - [24.1.6.5. Менеджер окон](https://python-all.ru/3.1/library/tkinter.html#the-window-manager)1614        - [24.1.6.6. Типы данных параметров Tk](https://python-all.ru/3.1/library/tkinter.html#tk-option-data-types)1615        - [24.1.6.7. Привязки и события](https://python-all.ru/3.1/library/tkinter.html#bindings-and-events)1616        - [24.1.6.8. Параметр index](https://python-all.ru/3.1/library/tkinter.html#the-index-parameter)1617        - [24.1.6.9. Изображения](https://python-all.ru/3.1/library/tkinter.html#images)1618    - [24.2. `tkinter.ttk` – тематические виджеты Tk](https://python-all.ru/3.1/library/tkinter.ttk.html)16191620      - [24.2.1. Использование Ttk](https://python-all.ru/3.1/library/tkinter.ttk.html#using-ttk)1621      - [24.2.2. Виджеты Ttk](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-widgets)1622      - [24.2.3. Виджет](https://python-all.ru/3.1/library/tkinter.ttk.html#widget)16231624        - [24.2.3.1. Стандартные параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#standard-options)1625        - [24.2.3.2. Параметры прокручиваемого виджета](https://python-all.ru/3.1/library/tkinter.ttk.html#scrollable-widget-options)1626        - [24.2.3.3. Параметры метки](https://python-all.ru/3.1/library/tkinter.ttk.html#label-options)1627        - [24.2.3.4. Параметры совместимости](https://python-all.ru/3.1/library/tkinter.ttk.html#compatibility-options)1628        - [24.2.3.5. Состояния виджетов](https://python-all.ru/3.1/library/tkinter.ttk.html#widget-states)1629        - [24.2.3.6. ttk.Widget](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-widget)1630      - [24.2.4. Combobox](https://python-all.ru/3.1/library/tkinter.ttk.html#combobox)16311632        - [24.2.4.1. Параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#options)1633        - [24.2.4.2. Виртуальные события](https://python-all.ru/3.1/library/tkinter.ttk.html#virtual-events)1634        - [24.2.4.3. ttk.Combobox](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-combobox)1635      - [24.2.5. Notebook](https://python-all.ru/3.1/library/tkinter.ttk.html#notebook)16361637        - [24.2.5.1. Параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#id1)1638        - [24.2.5.2. Параметры вкладок](https://python-all.ru/3.1/library/tkinter.ttk.html#tab-options)1639        - [24.2.5.3. Идентификаторы вкладок](https://python-all.ru/3.1/library/tkinter.ttk.html#tab-identifiers)1640        - [24.2.5.4. Виртуальные события](https://python-all.ru/3.1/library/tkinter.ttk.html#id2)1641        - [24.2.5.5. ttk.Notebook](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-notebook)1642      - [24.2.6. Progressbar](https://python-all.ru/3.1/library/tkinter.ttk.html#progressbar)16431644        - [24.2.6.1. Параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#id3)1645        - [24.2.6.2. ttk.Progressbar](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-progressbar)1646      - [24.2.7. Separator](https://python-all.ru/3.1/library/tkinter.ttk.html#separator)16471648        - [24.2.7.1. Параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#id4)1649      - [24.2.8. Sizegrip](https://python-all.ru/3.1/library/tkinter.ttk.html#sizegrip)16501651        - [24.2.8.1. Примечания для конкретных платформ](https://python-all.ru/3.1/library/tkinter.ttk.html#platform-specific-notes)1652        - [24.2.8.2. Ошибки](https://python-all.ru/3.1/library/tkinter.ttk.html#bugs)1653      - [24.2.9. Treeview](https://python-all.ru/3.1/library/tkinter.ttk.html#treeview)16541655        - [24.2.9.1. Параметры](https://python-all.ru/3.1/library/tkinter.ttk.html#id5)1656        - [24.2.9.2. Параметры элементов](https://python-all.ru/3.1/library/tkinter.ttk.html#item-options)1657        - [24.2.9.3. Параметры тегов](https://python-all.ru/3.1/library/tkinter.ttk.html#tag-options)1658        - [24.2.9.4. Идентификаторы столбцов](https://python-all.ru/3.1/library/tkinter.ttk.html#column-identifiers)1659        - [24.2.9.5. Виртуальные события](https://python-all.ru/3.1/library/tkinter.ttk.html#id6)1660        - [24.2.9.6. ttk.Treeview](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-treeview)1661      - [24.2.10. Стилизация Ttk](https://python-all.ru/3.1/library/tkinter.ttk.html#ttk-styling)16621663        - [24.2.10.1. Макеты](https://python-all.ru/3.1/library/tkinter.ttk.html#layouts)1664    - [24.3. `tkinter.tix` – Расширяющие виджеты для Tk](https://python-all.ru/3.1/library/tkinter.tix.html)16651666      - [24.3.1. Использование Tix](https://python-all.ru/3.1/library/tkinter.tix.html#using-tix)1667      - [24.3.2. Виджеты Tix](https://python-all.ru/3.1/library/tkinter.tix.html#tix-widgets)16681669        - [24.3.2.1. Базовые виджеты](https://python-all.ru/3.1/library/tkinter.tix.html#basic-widgets)1670        - [24.3.2.2. Селекторы файлов](https://python-all.ru/3.1/library/tkinter.tix.html#file-selectors)1671        - [24.3.2.3. Иерархический ListBox](https://python-all.ru/3.1/library/tkinter.tix.html#hierarchical-listbox)1672        - [24.3.2.4. Табличный ListBox](https://python-all.ru/3.1/library/tkinter.tix.html#tabular-listbox)1673        - [24.3.2.5. Виджеты-менеджеры](https://python-all.ru/3.1/library/tkinter.tix.html#manager-widgets)1674        - [24.3.2.6. Типы изображений](https://python-all.ru/3.1/library/tkinter.tix.html#image-types)1675        - [24.3.2.7. Прочие виджеты](https://python-all.ru/3.1/library/tkinter.tix.html#miscellaneous-widgets)1676        - [24.3.2.8. Менеджер геометрии Form](https://python-all.ru/3.1/library/tkinter.tix.html#form-geometry-manager)1677      - [24.3.3. Команды Tix](https://python-all.ru/3.1/library/tkinter.tix.html#tix-commands)1678    - [24.4. `tkinter.scrolledtext` – Виджет прокручиваемого текста](https://python-all.ru/3.1/library/tkinter.scrolledtext.html)1679    - [24.5. IDLE](https://python-all.ru/3.1/library/idle.html)16801681      - [24.5.1. Меню](https://python-all.ru/3.1/library/idle.html#menus)16821683        - [24.5.1.1. Меню «Файл»](https://python-all.ru/3.1/library/idle.html#file-menu)1684        - [24.5.1.2. Меню «Правка»](https://python-all.ru/3.1/library/idle.html#edit-menu)1685        - [24.5.1.3. Меню «Окна»](https://python-all.ru/3.1/library/idle.html#windows-menu)1686        - [24.5.1.4. Меню отладки (только в окне Python Shell)](https://python-all.ru/3.1/library/idle.html#debug-menu-in-the-python-shell-window-only)1687      - [24.5.2. Основы редактирования и навигации](https://python-all.ru/3.1/library/idle.html#basic-editing-and-navigation)16881689        - [24.5.2.1. Автоматический отступ](https://python-all.ru/3.1/library/idle.html#automatic-indentation)1690        - [24.5.2.2. Окно оболочки Python](https://python-all.ru/3.1/library/idle.html#python-shell-window)1691      - [24.5.3. Цвета синтаксиса](https://python-all.ru/3.1/library/idle.html#syntax-colors)1692      - [24.5.4. Запуск](https://python-all.ru/3.1/library/idle.html#startup)16931694        - [24.5.4.1. Использование командной строки](https://python-all.ru/3.1/library/idle.html#command-line-usage)1695    - [24.6. Другие пакеты графического интерфейса пользователя](https://python-all.ru/3.1/library/othergui.html)1696  - [25. Инструменты разработки](https://python-all.ru/3.1/library/development.html)16971698    - [25.1. `pydoc` – Генератор документации и справочная система](https://python-all.ru/3.1/library/pydoc.html)1699    - [25.2. `doctest` – Тестирование интерактивных примеров Python](https://python-all.ru/3.1/library/doctest.html)17001701      - [25.2.1. Простое использование: проверка примеров в docstrings](https://python-all.ru/3.1/library/doctest.html#simple-usage-checking-examples-in-docstrings)1702      - [25.2.2. Простое использование: проверка примеров в текстовом файле](https://python-all.ru/3.1/library/doctest.html#simple-usage-checking-examples-in-a-text-file)1703      - [25.2.3. Как это работает](https://python-all.ru/3.1/library/doctest.html#how-it-works)17041705        - [25.2.3.1. Какие docstrings проверяются?](https://python-all.ru/3.1/library/doctest.html#which-docstrings-are-examined)1706        - [25.2.3.2. Как распознаются примеры в строках документации?](https://python-all.ru/3.1/library/doctest.html#how-are-docstring-examples-recognized)1707        - [25.2.3.3. Каков контекст выполнения?](https://python-all.ru/3.1/library/doctest.html#what-s-the-execution-context)1708        - [25.2.3.4. А что насчёт исключений?](https://python-all.ru/3.1/library/doctest.html#what-about-exceptions)1709        - [25.2.3.5. Флаги опций и директивы](https://python-all.ru/3.1/library/doctest.html#option-flags-and-directives)1710        - [25.2.3.6. Предупреждения](https://python-all.ru/3.1/library/doctest.html#warnings)1711      - [25.2.4. Базовый API](https://python-all.ru/3.1/library/doctest.html#basic-api)1712      - [25.2.5. Unittest API](https://python-all.ru/3.1/library/doctest.html#unittest-api)1713      - [25.2.6. Продвинутый API](https://python-all.ru/3.1/library/doctest.html#advanced-api)17141715        - [25.2.6.1. Объекты DocTest](https://python-all.ru/3.1/library/doctest.html#doctest-objects)1716        - [25.2.6.2. Объекты Example](https://python-all.ru/3.1/library/doctest.html#example-objects)1717        - [25.2.6.3. Объекты DocTestFinder](https://python-all.ru/3.1/library/doctest.html#doctestfinder-objects)1718        - [25.2.6.4. Объекты DocTestParser](https://python-all.ru/3.1/library/doctest.html#doctestparser-objects)1719        - [25.2.6.5. Объекты DocTestRunner](https://python-all.ru/3.1/library/doctest.html#doctestrunner-objects)1720        - [25.2.6.6. Объекты OutputChecker](https://python-all.ru/3.1/library/doctest.html#outputchecker-objects)1721      - [25.2.7. Отладка](https://python-all.ru/3.1/library/doctest.html#debugging)1722      - [25.2.8. Разное](https://python-all.ru/3.1/library/doctest.html#soapbox)1723    - [25.3. `unittest` – фреймворк для модульного тестирования](https://python-all.ru/3.1/library/unittest.html)17241725      - [25.3.1. Простой пример](https://python-all.ru/3.1/library/unittest.html#basic-example)1726      - [25.3.2. Интерфейс командной строки](https://python-all.ru/3.1/library/unittest.html#command-line-interface)1727      - [25.3.3. Организация тестового кода](https://python-all.ru/3.1/library/unittest.html#organizing-test-code)1728      - [25.3.4. Повторное использование старого тестового кода](https://python-all.ru/3.1/library/unittest.html#re-using-old-test-code)1729      - [25.3.5. Пропуск тестов и ожидаемые сбои](https://python-all.ru/3.1/library/unittest.html#skipping-tests-and-expected-failures)1730      - [25.3.6. Классы и функции](https://python-all.ru/3.1/library/unittest.html#classes-and-functions)17311732        - [25.3.6.1. Тестовые случаи](https://python-all.ru/3.1/library/unittest.html#test-cases)17331734          - [25.3.6.1.1. Устаревшие псевдонимы](https://python-all.ru/3.1/library/unittest.html#deprecated-aliases)1735        - [25.3.6.2. Группировка тестов](https://python-all.ru/3.1/library/unittest.html#grouping-tests)1736        - [25.3.6.3. Загрузка и запуск тестов](https://python-all.ru/3.1/library/unittest.html#loading-and-running-tests)1737    - [25.4. 2to3 – автоматическое преобразование кода Python 2 в 3](https://python-all.ru/3.1/library/2to3.html)17381739      - [25.4.1. Использование 2to3](https://python-all.ru/3.1/library/2to3.html#using-2to3)1740      - [25.4.2. Исправители](https://python-all.ru/3.1/library/2to3.html#fixers)1741      - [25.4.3. `lib2to3` – библиотека 2to3](https://python-all.ru/3.1/library/2to3.html#module-lib2to3)1742    - [25.5. `test` – пакет регрессионных тестов для Python](https://python-all.ru/3.1/library/test.html)17431744      - [25.5.1. Написание модульных тестов для пакета `test`](https://python-all.ru/3.1/library/test.html#writing-unit-tests-for-the-test-package)1745      - [25.5.2. Запуск тестов с помощью интерфейса командной строки](https://python-all.ru/3.1/library/test.html#running-tests-using-the-command-line-interface)1746    - [25.6. `test.support` – Утилиты для тестирования](https://python-all.ru/3.1/library/test.html#module-test.support)1747  - [26. Отладка и профилирование](https://python-all.ru/3.1/library/debug.html)17481749    - [26.1. `bdb` – Каркас отладчика](https://python-all.ru/3.1/library/bdb.html)1750    - [26.2. `pdb` – Отладчик Python](https://python-all.ru/3.1/library/pdb.html)17511752      - [26.2.1. Команды отладчика](https://python-all.ru/3.1/library/pdb.html#debugger-commands)1753    - [26.3. Профилировщики Python](https://python-all.ru/3.1/library/profile.html)17541755      - [26.3.1. Введение в профилировщики](https://python-all.ru/3.1/library/profile.html#introduction-to-the-profilers)1756      - [26.3.2. Краткое руководство пользователя](https://python-all.ru/3.1/library/profile.html#instant-user-s-manual)1757      - [26.3.3. Что такое детерминированное профилирование?](https://python-all.ru/3.1/library/profile.html#what-is-deterministic-profiling)1758      - [26.3.4. Справочное руководство – `profile` и `cProfile`](https://python-all.ru/3.1/library/profile.html#module-pstats)17591760        - [26.3.4.1. Класс `Stats`](https://python-all.ru/3.1/library/profile.html#the-stats-class)1761      - [26.3.5. Ограничения](https://python-all.ru/3.1/library/profile.html#limitations)1762      - [26.3.6. Калибровка](https://python-all.ru/3.1/library/profile.html#calibration)1763      - [26.3.7. Расширения – создание более совершенных профилировщиков](https://python-all.ru/3.1/library/profile.html#extensions-deriving-better-profilers)1764    - [26.4. `timeit` – Измерение времени выполнения небольших фрагментов кода](https://python-all.ru/3.1/library/timeit.html)17651766      - [26.4.1. Интерфейс командной строки](https://python-all.ru/3.1/library/timeit.html#command-line-interface)1767      - [26.4.2. Примеры](https://python-all.ru/3.1/library/timeit.html#examples)1768    - [26.5. `trace` – Трассировка или отслеживание выполнения инструкций Python](https://python-all.ru/3.1/library/trace.html)17691770      - [26.5.1. Использование командной строки](https://python-all.ru/3.1/library/trace.html#command-line-usage)17711772        - [26.5.1.1. Основные параметры](https://python-all.ru/3.1/library/trace.html#main-options)1773        - [26.5.1.2. Модификаторы](https://python-all.ru/3.1/library/trace.html#modifiers)1774        - [26.5.1.3. Фильтры](https://python-all.ru/3.1/library/trace.html#filters)1775      - [26.5.2. Программный интерфейс](https://python-all.ru/3.1/library/trace.html#programmatic-interface)1776  - [27. Службы времени выполнения Python](https://python-all.ru/3.1/library/python.html)17771778    - [27.1. `sys` – Системно-зависимые параметры и функции](https://python-all.ru/3.1/library/sys.html)1779    - [27.2. `builtins` – Встроенные объекты](https://python-all.ru/3.1/library/builtins.html)1780    - [27.3. `__main__` – Среда сценария верхнего уровня](https://python-all.ru/3.1/library/__main__.html)1781    - [27.4. `warnings` – Управление предупреждениями](https://python-all.ru/3.1/library/warnings.html)17821783      - [27.4.1. Категории предупреждений](https://python-all.ru/3.1/library/warnings.html#warning-categories)1784      - [27.4.2. Фильтр предупреждений](https://python-all.ru/3.1/library/warnings.html#the-warnings-filter)17851786        - [27.4.2.1. Фильтры предупреждений по умолчанию](https://python-all.ru/3.1/library/warnings.html#default-warning-filters)1787      - [27.4.3. Временное подавление предупреждений](https://python-all.ru/3.1/library/warnings.html#temporarily-suppressing-warnings)1788      - [27.4.4. Тестирование предупреждений](https://python-all.ru/3.1/library/warnings.html#testing-warnings)1789      - [27.4.5. Доступные функции](https://python-all.ru/3.1/library/warnings.html#available-functions)1790      - [27.4.6. Доступные контекстные менеджеры](https://python-all.ru/3.1/library/warnings.html#available-context-managers)1791    - [27.5. `contextlib` – Утилиты для работы с контекстами инструкции `with`](https://python-all.ru/3.1/library/contextlib.html)1792    - [27.6. `abc` – Абстрактные базовые классы](https://python-all.ru/3.1/library/abc.html)1793    - [27.7. `atexit` – Обработчики завершения](https://python-all.ru/3.1/library/atexit.html)17941795      - [27.7.1. `atexit` Пример](https://python-all.ru/3.1/library/atexit.html#atexit-example)1796    - [27.8. `traceback` – Печать или получение стековой трассировки](https://python-all.ru/3.1/library/traceback.html)17971798      - [27.8.1. Примеры трассировки](https://python-all.ru/3.1/library/traceback.html#traceback-examples)1799    - [27.9. `__future__` – Определения для future-операторов](https://python-all.ru/3.1/library/__future__.html)1800    - [27.10. `gc` – Интерфейс сборщика мусора](https://python-all.ru/3.1/library/gc.html)1801    - [27.11. `inspect` – Инспекция активных объектов](https://python-all.ru/3.1/library/inspect.html)18021803      - [27.11.1. Типы и элементы](https://python-all.ru/3.1/library/inspect.html#types-and-members)1804      - [27.11.2. Получение исходного кода](https://python-all.ru/3.1/library/inspect.html#retrieving-source-code)1805      - [27.11.3. Классы и функции](https://python-all.ru/3.1/library/inspect.html#classes-and-functions)1806      - [27.11.4. Стек интерпретатора](https://python-all.ru/3.1/library/inspect.html#the-interpreter-stack)1807    - [27.12. `site` – Хук конфигурации для конкретного сайта](https://python-all.ru/3.1/library/site.html)1808    - [27.13. `fpectl` – Управление исключениями с плавающей точкой](https://python-all.ru/3.1/library/fpectl.html)18091810      - [27.13.1. Пример](https://python-all.ru/3.1/library/fpectl.html#example)1811      - [27.13.2. Ограничения и прочие замечания](https://python-all.ru/3.1/library/fpectl.html#limitations-and-other-considerations)1812  - [28. Пользовательские интерпретаторы Python](https://python-all.ru/3.1/library/custominterp.html)18131814    - [28.1. `code` – Базовые классы интерпретатора](https://python-all.ru/3.1/library/code.html)18151816      - [28.1.1. Объекты интерактивного интерпретатора](https://python-all.ru/3.1/library/code.html#interactive-interpreter-objects)1817      - [28.1.2. Объекты интерактивной консоли](https://python-all.ru/3.1/library/code.html#interactive-console-objects)1818    - [28.2. `codeop` – Компиляция кода Python](https://python-all.ru/3.1/library/codeop.html)1819  - [29. Импорт модулей](https://python-all.ru/3.1/library/modules.html)18201821    - [29.1. `imp` – Доступ к внутренним механизмам `import`](https://python-all.ru/3.1/library/imp.html)18221823      - [29.1.1. Примеры](https://python-all.ru/3.1/library/imp.html#examples)1824    - [29.2. `zipimport` – Импорт модулей из Zip-архивов](https://python-all.ru/3.1/library/zipimport.html)18251826      - [29.2.1. Объекты zipimporter](https://python-all.ru/3.1/library/zipimport.html#zipimporter-objects)1827      - [29.2.2. Примеры](https://python-all.ru/3.1/library/zipimport.html#examples)1828    - [29.3. `pkgutil` – Утилита расширения пакетов](https://python-all.ru/3.1/library/pkgutil.html)1829    - [29.4. `modulefinder` – Поиск модулей, используемых сценарием](https://python-all.ru/3.1/library/modulefinder.html)18301831      - [29.4.1. Пример использования `ModuleFinder`](https://python-all.ru/3.1/library/modulefinder.html#example-usage-of-modulefinder)1832    - [29.5. `runpy` – Поиск и выполнение модулей Python](https://python-all.ru/3.1/library/runpy.html)1833    - [29.6. `importlib` – Реализация `import`](https://python-all.ru/3.1/library/importlib.html)18341835      - [29.6.1. Введение](https://python-all.ru/3.1/library/importlib.html#introduction)1836      - [29.6.2. Функции](https://python-all.ru/3.1/library/importlib.html#functions)1837      - [29.6.3. `importlib.abc` – Абстрактные базовые классы, связанные с импортом](https://python-all.ru/3.1/library/importlib.html#module-importlib.abc)1838      - [29.6.4. `importlib.machinery` – Импортеры и перехватчики путей](https://python-all.ru/3.1/library/importlib.html#module-importlib.machinery)1839      - [29.6.5. `importlib.util` – Вспомогательный код для импортеров](https://python-all.ru/3.1/library/importlib.html#module-importlib.util)1840      - [29.6.6. Пример](https://python-all.ru/3.1/library/importlib.html#example)1841  - [30. Службы языка Python](https://python-all.ru/3.1/library/language.html)18421843    - [30.1. `parser` – Доступ к деревьям разбора Python](https://python-all.ru/3.1/library/parser.html)18441845      - [30.1.1. Создание ST-объектов](https://python-all.ru/3.1/library/parser.html#creating-st-objects)1846      - [30.1.2. Преобразование ST-объектов](https://python-all.ru/3.1/library/parser.html#converting-st-objects)1847      - [30.1.3. Запросы к ST-объектам](https://python-all.ru/3.1/library/parser.html#queries-on-st-objects)1848      - [30.1.4. Исключения и обработка ошибок](https://python-all.ru/3.1/library/parser.html#exceptions-and-error-handling)1849      - [30.1.5. ST-объекты](https://python-all.ru/3.1/library/parser.html#st-objects)1850      - [30.1.6. Пример: Эмуляция `compile()`](https://python-all.ru/3.1/library/parser.html#example-emulation-of-compile)1851    - [30.2. `ast` – Абстрактные синтаксические деревья](https://python-all.ru/3.1/library/ast.html)18521853      - [30.2.1. Классы узлов](https://python-all.ru/3.1/library/ast.html#node-classes)1854      - [30.2.2. Абстрактная грамматика](https://python-all.ru/3.1/library/ast.html#abstract-grammar)1855      - [30.2.3. Вспомогательные функции `ast`](https://python-all.ru/3.1/library/ast.html#ast-helpers)1856    - [30.3. `symtable` – Доступ к таблицам символов компилятора](https://python-all.ru/3.1/library/symtable.html)18571858      - [30.3.1. Генерация таблиц символов](https://python-all.ru/3.1/library/symtable.html#generating-symbol-tables)1859      - [30.3.2. Изучение таблиц символов](https://python-all.ru/3.1/library/symtable.html#examining-symbol-tables)1860    - [30.4. `symbol` – Константы, используемые с деревьями разбора Python](https://python-all.ru/3.1/library/symbol.html)1861    - [30.5. `token` – Константы, используемые с деревьями разбора Python](https://python-all.ru/3.1/library/token.html)1862    - [30.6. `keyword` – Проверка ключевых слов Python](https://python-all.ru/3.1/library/keyword.html)1863    - [30.7. `tokenize` – Токенизатор исходного кода Python](https://python-all.ru/3.1/library/tokenize.html)1864    - [30.8. `tabnanny` – Выявление неоднозначных отступов](https://python-all.ru/3.1/library/tabnanny.html)1865    - [30.9. `pyclbr` – Поддержка обозревателя классов Python](https://python-all.ru/3.1/library/pyclbr.html)18661867      - [30.9.1. Объекты классов](https://python-all.ru/3.1/library/pyclbr.html#class-objects)1868      - [30.9.2. Объекты функций](https://python-all.ru/3.1/library/pyclbr.html#function-objects)1869    - [30.10. `py_compile` – Компиляция исходных файлов Python](https://python-all.ru/3.1/library/py_compile.html)1870    - [30.11. `compileall` – Байт-компиляция библиотек Python](https://python-all.ru/3.1/library/compileall.html)18711872      - [30.11.1. Использование из командной строки](https://python-all.ru/3.1/library/compileall.html#command-line-use)1873      - [30.11.2. Публичные функции](https://python-all.ru/3.1/library/compileall.html#public-functions)1874    - [30.12. `dis` – Дизассемблер байт-кода Python](https://python-all.ru/3.1/library/dis.html)18751876      - [30.12.1. Инструкции байт-кода Python](https://python-all.ru/3.1/library/dis.html#python-bytecode-instructions)1877    - [30.13. `pickletools` – Инструменты для разработчиков pickle](https://python-all.ru/3.1/library/pickletools.html)1878    - [30.14. `distutils` – Сборка и установка модулей Python](https://python-all.ru/3.1/library/distutils.html)1879  - [31. Разные служебные модули](https://python-all.ru/3.1/library/misc.html)18801881    - [31.1. `formatter` – Универсальное форматирование вывода](https://python-all.ru/3.1/library/formatter.html)18821883      - [31.1.1. The Formatter Interface](https://python-all.ru/3.1/library/formatter.html#the-formatter-interface)1884      - [31.1.2. Formatter Implementations](https://python-all.ru/3.1/library/formatter.html#formatter-implementations)1885      - [31.1.3. The Writer Interface](https://python-all.ru/3.1/library/formatter.html#the-writer-interface)1886      - [31.1.4. Writer Implementations](https://python-all.ru/3.1/library/formatter.html#writer-implementations)1887  - [32. Службы, специфичные для MS Windows](https://python-all.ru/3.1/library/windows.html)18881889    - [32.1. `msilib` – Чтение и запись файлов Microsoft Installer](https://python-all.ru/3.1/library/msilib.html)18901891      - [32.1.1. Объекты баз данных](https://python-all.ru/3.1/library/msilib.html#database-objects)1892      - [32.1.2. Объекты представлений](https://python-all.ru/3.1/library/msilib.html#view-objects)1893      - [32.1.3. Объекты сводной информации](https://python-all.ru/3.1/library/msilib.html#summary-information-objects)1894      - [32.1.4. Объекты записей](https://python-all.ru/3.1/library/msilib.html#record-objects)1895      - [32.1.5. Ошибки](https://python-all.ru/3.1/library/msilib.html#errors)1896      - [32.1.6. Объекты CAB](https://python-all.ru/3.1/library/msilib.html#cab-objects)1897      - [32.1.7. Объекты каталогов](https://python-all.ru/3.1/library/msilib.html#directory-objects)1898      - [32.1.8. Возможности](https://python-all.ru/3.1/library/msilib.html#features)1899      - [32.1.9. Классы GUI](https://python-all.ru/3.1/library/msilib.html#gui-classes)1900      - [32.1.10. Предвычисленные таблицы](https://python-all.ru/3.1/library/msilib.html#precomputed-tables)1901    - [32.2. `msvcrt` – Полезные процедуры из среды выполнения MS VC++](https://python-all.ru/3.1/library/msvcrt.html)19021903      - [32.2.1. Операции с файлами](https://python-all.ru/3.1/library/msvcrt.html#file-operations)1904      - [32.2.2. Ввод-вывод консоли](https://python-all.ru/3.1/library/msvcrt.html#console-i-o)1905      - [32.2.3. Другие функции](https://python-all.ru/3.1/library/msvcrt.html#other-functions)1906    - [32.3. `winreg` – Доступ к реестру Windows](https://python-all.ru/3.1/library/winreg.html)19071908      - [32.3.1. Константы](https://python-all.ru/3.1/library/winreg.html#constants)19091910        - [32.3.1.1. Константы HKEY\_\*](https://python-all.ru/3.1/library/winreg.html#hkey-constants)1911        - [32.3.1.2. Права доступа](https://python-all.ru/3.1/library/winreg.html#access-rights)19121913          - [32.3.1.2.1. Специфичное для 64-бит](https://python-all.ru/3.1/library/winreg.html#bit-specific)1914        - [32.3.1.3. Типы значений](https://python-all.ru/3.1/library/winreg.html#value-types)1915      - [32.3.2. Объекты дескрипторов реестра](https://python-all.ru/3.1/library/winreg.html#registry-handle-objects)1916    - [32.4. `winsound` – Интерфейс воспроизведения звука для Windows](https://python-all.ru/3.1/library/winsound.html)1917  - [33. Специфичные для Unix службы](https://python-all.ru/3.1/library/unix.html)19181919    - [33.1. `posix` – Наиболее распространённые системные вызовы POSIX](https://python-all.ru/3.1/library/posix.html)19201921      - [33.1.1. Поддержка больших файлов](https://python-all.ru/3.1/library/posix.html#large-file-support)1922      - [33.1.2. Примечательное содержимое модуля](https://python-all.ru/3.1/library/posix.html#notable-module-contents)1923    - [33.2. `pwd` – База данных паролей](https://python-all.ru/3.1/library/pwd.html)1924    - [33.3. `spwd` – База данных теневых паролей](https://python-all.ru/3.1/library/spwd.html)1925    - [33.4. `grp` – База данных групп](https://python-all.ru/3.1/library/grp.html)1926    - [33.5. `crypt` – Функция проверки паролей Unix](https://python-all.ru/3.1/library/crypt.html)1927    - [33.6. `termios` – Управление tty в стиле POSIX](https://python-all.ru/3.1/library/termios.html)19281929      - [33.6.1. Пример](https://python-all.ru/3.1/library/termios.html#example)1930    - [33.7. `tty` – Функции управления терминалом](https://python-all.ru/3.1/library/tty.html)1931    - [33.8. `pty` – Утилиты псевдотерминала](https://python-all.ru/3.1/library/pty.html)1932    - [33.9. `fcntl` – Системные вызовы `fcntl()` и `ioctl()`](https://python-all.ru/3.1/library/fcntl.html)1933    - [33.10. `pipes` – Интерфейс для конвейеров оболочки](https://python-all.ru/3.1/library/pipes.html)19341935      - [33.10.1. Шаблонные объекты](https://python-all.ru/3.1/library/pipes.html#template-objects)1936    - [33.11. `resource` – Информация об использовании ресурсов](https://python-all.ru/3.1/library/resource.html)19371938      - [33.11.1. Лимиты ресурсов](https://python-all.ru/3.1/library/resource.html#resource-limits)1939      - [33.11.2. Использование ресурсов](https://python-all.ru/3.1/library/resource.html#resource-usage)1940    - [33.12. `nis` – Интерфейс к NIS (Yellow Pages) Sun](https://python-all.ru/3.1/library/nis.html)1941    - [33.13. `syslog` – Библиотечные функции syslog в Unix](https://python-all.ru/3.1/library/syslog.html)1942  - [34. Незадокументированные модули](https://python-all.ru/3.1/library/undoc.html)19431944    - [34.1. Платформозависимые модули](https://python-all.ru/3.1/library/undoc.html#platform-specific-modules)1945- [Расширение и встраивание интерпретатора Python](https://python-all.ru/3.1/extending/index.html)19461947  - [1. Расширение Python с помощью C или C++](https://python-all.ru/3.1/extending/extending.html)19481949    - [1.1. Простой пример](https://python-all.ru/3.1/extending/extending.html#a-simple-example)1950    - [1.2. Интермеццо: ошибки и исключения](https://python-all.ru/3.1/extending/extending.html#intermezzo-errors-and-exceptions)1951    - [1.3. Возвращение к примеру](https://python-all.ru/3.1/extending/extending.html#back-to-the-example)1952    - [1.4. Таблица методов модуля и функция инициализации](https://python-all.ru/3.1/extending/extending.html#the-module-s-method-table-and-initialization-function)1953    - [1.5. Компиляция и компоновка](https://python-all.ru/3.1/extending/extending.html#compilation-and-linkage)1954    - [1.6. Вызов функций Python из C](https://python-all.ru/3.1/extending/extending.html#calling-python-functions-from-c)1955    - [1.7. Извлечение параметров в функциях расширения](https://python-all.ru/3.1/extending/extending.html#extracting-parameters-in-extension-functions)1956    - [1.8. Именованные параметры для функций расширения](https://python-all.ru/3.1/extending/extending.html#keyword-parameters-for-extension-functions)1957    - [1.9. Построение произвольных значений](https://python-all.ru/3.1/extending/extending.html#building-arbitrary-values)1958    - [1.10. Счетчики ссылок](https://python-all.ru/3.1/extending/extending.html#reference-counts)19591960      - [1.10.1. Подсчёт ссылок в Python](https://python-all.ru/3.1/extending/extending.html#reference-counting-in-python)1961      - [1.10.2. Правила владения](https://python-all.ru/3.1/extending/extending.html#ownership-rules)1962      - [1.10.3. Тонкий лёд](https://python-all.ru/3.1/extending/extending.html#thin-ice)1963      - [1.10.4. Указатели NULL](https://python-all.ru/3.1/extending/extending.html#null-pointers)1964    - [1.11. Написание расширений на C++](https://python-all.ru/3.1/extending/extending.html#writing-extensions-in-c)1965    - [1.12. Предоставление C API для модуля расширения](https://python-all.ru/3.1/extending/extending.html#providing-a-c-api-for-an-extension-module)1966  - [2. Определение новых типов](https://python-all.ru/3.1/extending/newtypes.html)19671968    - [2.1. Основы](https://python-all.ru/3.1/extending/newtypes.html#the-basics)19691970      - [2.1.1. Добавление данных и методов в базовый пример](https://python-all.ru/3.1/extending/newtypes.html#adding-data-and-methods-to-the-basic-example)1971      - [2.1.2. Обеспечение более тонкого контроля над атрибутами данных](https://python-all.ru/3.1/extending/newtypes.html#providing-finer-control-over-data-attributes)1972      - [2.1.3. Поддержка циклической сборки мусора](https://python-all.ru/3.1/extending/newtypes.html#supporting-cyclic-garbage-collection)1973      - [2.1.4. Наследование от других типов](https://python-all.ru/3.1/extending/newtypes.html#subclassing-other-types)1974    - [2.2. Методы типов](https://python-all.ru/3.1/extending/newtypes.html#type-methods)19751976      - [2.2.1. Финализация и освобождение памяти](https://python-all.ru/3.1/extending/newtypes.html#finalization-and-de-allocation)1977      - [2.2.2. Представление объекта](https://python-all.ru/3.1/extending/newtypes.html#object-presentation)1978      - [2.2.3. Управление атрибутами](https://python-all.ru/3.1/extending/newtypes.html#attribute-management)19791980        - [2.2.3.1. Общее управление атрибутами](https://python-all.ru/3.1/extending/newtypes.html#generic-attribute-management)1981        - [2.2.3.2. Управление атрибутами, специфичными для типа](https://python-all.ru/3.1/extending/newtypes.html#type-specific-attribute-management)1982      - [2.2.4. Сравнение объектов](https://python-all.ru/3.1/extending/newtypes.html#object-comparison)1983      - [2.2.5. Поддержка абстрактных протоколов](https://python-all.ru/3.1/extending/newtypes.html#abstract-protocol-support)1984      - [2.2.6. Поддержка слабых ссылок](https://python-all.ru/3.1/extending/newtypes.html#weak-reference-support)1985      - [2.2.7. Дополнительные рекомендации](https://python-all.ru/3.1/extending/newtypes.html#more-suggestions)1986  - [3. Сборка расширений на C и C++ с помощью distutils](https://python-all.ru/3.1/extending/building.html)19871988    - [3.1. Распространение модулей расширения](https://python-all.ru/3.1/extending/building.html#distributing-your-extension-modules)1989  - [4. Сборка расширений C и C++ в Windows](https://python-all.ru/3.1/extending/windows.html)19901991    - [4.1. Подход «Кулинарная книга»](https://python-all.ru/3.1/extending/windows.html#a-cookbook-approach)1992    - [4.2. Различия между Unix и Windows](https://python-all.ru/3.1/extending/windows.html#differences-between-unix-and-windows)1993    - [4.3. Использование DLL на практике](https://python-all.ru/3.1/extending/windows.html#using-dlls-in-practice)1994  - [5. Встраивание Python в другое приложение](https://python-all.ru/3.1/extending/embedding.html)19951996    - [5.1. Встраивание на очень высоком уровне](https://python-all.ru/3.1/extending/embedding.html#very-high-level-embedding)1997    - [5.2. За пределами встраивания на очень высоком уровне: обзор](https://python-all.ru/3.1/extending/embedding.html#beyond-very-high-level-embedding-an-overview)1998    - [5.3. Чистое встраивание](https://python-all.ru/3.1/extending/embedding.html#pure-embedding)1999    - [5.4. Расширение встроенного Python](https://python-all.ru/3.1/extending/embedding.html#extending-embedded-python)2000    - [5.5. Встраивание Python в C++](https://python-all.ru/3.1/extending/embedding.html#embedding-python-in-c)2001    - [5.6. Требования к компоновке](https://python-all.ru/3.1/extending/embedding.html#linking-requirements)2002- [Справочное руководство по Python/C API](https://python-all.ru/3.1/c-api/index.html)20032004  - [Введение](https://python-all.ru/3.1/c-api/intro.html)20052006    - [Заголовочные файлы](https://python-all.ru/3.1/c-api/intro.html#include-files)2007    - [Объекты, типы и счетчики ссылок](https://python-all.ru/3.1/c-api/intro.html#objects-types-and-reference-counts)20082009      - [Счётчики ссылок](https://python-all.ru/3.1/c-api/intro.html#reference-counts)20102011        - [Подробности подсчёта ссылок](https://python-all.ru/3.1/c-api/intro.html#reference-count-details)2012      - [Типы](https://python-all.ru/3.1/c-api/intro.html#types)2013    - [Исключения](https://python-all.ru/3.1/c-api/intro.html#exceptions)2014    - [Встраивание Python](https://python-all.ru/3.1/c-api/intro.html#embedding-python)2015    - [Отладочные сборки](https://python-all.ru/3.1/c-api/intro.html#debugging-builds)2016  - [Очень высокоуровневый слой](https://python-all.ru/3.1/c-api/veryhigh.html)2017  - [Подсчёт ссылок](https://python-all.ru/3.1/c-api/refcounting.html)2018  - [Обработка исключений](https://python-all.ru/3.1/c-api/exceptions.html)20192020    - [Объекты исключений](https://python-all.ru/3.1/c-api/exceptions.html#exception-objects)2021    - [Объекты исключений Unicode](https://python-all.ru/3.1/c-api/exceptions.html#unicode-exception-objects)2022    - [Управление рекурсией](https://python-all.ru/3.1/c-api/exceptions.html#recursion-control)2023    - [Стандартные исключения](https://python-all.ru/3.1/c-api/exceptions.html#standard-exceptions)2024  - [Утилиты](https://python-all.ru/3.1/c-api/utilities.html)20252026    - [Утилиты операционной системы](https://python-all.ru/3.1/c-api/sys.html)2027    - [Системные функции](https://python-all.ru/3.1/c-api/sys.html#system-functions)2028    - [Управление процессами](https://python-all.ru/3.1/c-api/sys.html#process-control)2029    - [Импорт модулей](https://python-all.ru/3.1/c-api/import.html)2030    - [Поддержка маршалинга данных](https://python-all.ru/3.1/c-api/marshal.html)2031    - [Разбор аргументов и сборка значений](https://python-all.ru/3.1/c-api/arg.html)20322033      - [Разбор аргументов](https://python-all.ru/3.1/c-api/arg.html#parsing-arguments)20342035        - [Строки и буферы](https://python-all.ru/3.1/c-api/arg.html#strings-and-buffers)2036        - [Числа](https://python-all.ru/3.1/c-api/arg.html#numbers)2037        - [Другие объекты](https://python-all.ru/3.1/c-api/arg.html#other-objects)2038        - [Функции API](https://python-all.ru/3.1/c-api/arg.html#api-functions)2039      - [Сборка значений](https://python-all.ru/3.1/c-api/arg.html#building-values)2040    - [Преобразование и форматирование строк](https://python-all.ru/3.1/c-api/conversion.html)2041    - [Рефлексия](https://python-all.ru/3.1/c-api/reflection.html)2042    - [Реестр кодировок и вспомогательные функции](https://python-all.ru/3.1/c-api/codec.html)20432044      - [API поиска кодировок](https://python-all.ru/3.1/c-api/codec.html#codec-lookup-api)2045      - [API реестра обработчиков ошибок кодирования Unicode](https://python-all.ru/3.1/c-api/codec.html#registry-api-for-unicode-encoding-error-handlers)2046  - [Слой абстрактных объектов](https://python-all.ru/3.1/c-api/abstract.html)20472048    - [Протокол объекта](https://python-all.ru/3.1/c-api/object.html)2049    - [Протокол чисел](https://python-all.ru/3.1/c-api/number.html)2050    - [Протокол последовательностей](https://python-all.ru/3.1/c-api/sequence.html)2051    - [Протокол отображений](https://python-all.ru/3.1/c-api/mapping.html)2052    - [Протокол итератора](https://python-all.ru/3.1/c-api/iter.html)2053    - [Протокол буфера](https://python-all.ru/3.1/c-api/buffer.html)20542055      - [Структура буфера](https://python-all.ru/3.1/c-api/buffer.html#the-buffer-structure)2056      - [Функции, связанные с буферами](https://python-all.ru/3.1/c-api/buffer.html#buffer-related-functions)2057    - [Старый буферный протокол](https://python-all.ru/3.1/c-api/objbuffer.html)2058  - [Слой конкретных объектов](https://python-all.ru/3.1/c-api/concrete.html)20592060    - [Базовые объекты](https://python-all.ru/3.1/c-api/concrete.html#fundamental-objects)20612062      - [Объекты типов](https://python-all.ru/3.1/c-api/type.html)2063      - [Объект None](https://python-all.ru/3.1/c-api/none.html)2064    - [Числовые объекты](https://python-all.ru/3.1/c-api/concrete.html#numeric-objects)20652066      - [Объекты целых чисел](https://python-all.ru/3.1/c-api/long.html)2067      - [Объекты логических значений](https://python-all.ru/3.1/c-api/bool.html)2068      - [Объекты чисел с плавающей запятой](https://python-all.ru/3.1/c-api/float.html)2069      - [Объекты комплексных чисел](https://python-all.ru/3.1/c-api/complex.html)20702071        - [Комплексные числа как структуры C](https://python-all.ru/3.1/c-api/complex.html#complex-numbers-as-c-structures)2072        - [Комплексные числа как объекты Python](https://python-all.ru/3.1/c-api/complex.html#complex-numbers-as-python-objects)2073    - [Объекты последовательностей](https://python-all.ru/3.1/c-api/concrete.html#sequence-objects)20742075      - [Объекты bytes](https://python-all.ru/3.1/c-api/bytes.html)2076      - [Объекты массива байтов](https://python-all.ru/3.1/c-api/bytearray.html)20772078        - [Макросы проверки типа](https://python-all.ru/3.1/c-api/bytearray.html#type-check-macros)2079        - [Функции прямого API](https://python-all.ru/3.1/c-api/bytearray.html#direct-api-functions)2080        - [Макросы](https://python-all.ru/3.1/c-api/bytearray.html#macros)2081      - [Объекты Unicode и кодеки](https://python-all.ru/3.1/c-api/unicode.html)20822083        - [Объекты Unicode](https://python-all.ru/3.1/c-api/unicode.html#unicode-objects)20842085          - [Тип Юникода](https://python-all.ru/3.1/c-api/unicode.html#unicode-type)2086          - [Свойства символов Юникода](https://python-all.ru/3.1/c-api/unicode.html#unicode-character-properties)2087          - [Простой Py\_UNICODE](https://python-all.ru/3.1/c-api/unicode.html#plain-py-unicode)2088          - [Кодировка файловой системы](https://python-all.ru/3.1/c-api/unicode.html#file-system-encoding)2089          - [Поддержка wchar\_t](https://python-all.ru/3.1/c-api/unicode.html#wchar-t-support)2090        - [Встроенные кодеки](https://python-all.ru/3.1/c-api/unicode.html#built-in-codecs)20912092          - [Общие кодеки](https://python-all.ru/3.1/c-api/unicode.html#generic-codecs)2093          - [Кодеки UTF-8](https://python-all.ru/3.1/c-api/unicode.html#utf-8-codecs)2094          - [Кодеки UTF-32](https://python-all.ru/3.1/c-api/unicode.html#utf-32-codecs)2095          - [Кодеки UTF-16](https://python-all.ru/3.1/c-api/unicode.html#utf-16-codecs)2096          - [Кодеки UTF-7](https://python-all.ru/3.1/c-api/unicode.html#utf-7-codecs)2097          - [Кодеки Unicode-Escape](https://python-all.ru/3.1/c-api/unicode.html#unicode-escape-codecs)2098          - [Кодеки Raw-Unicode-Escape](https://python-all.ru/3.1/c-api/unicode.html#raw-unicode-escape-codecs)2099          - [Кодеки Latin-1](https://python-all.ru/3.1/c-api/unicode.html#latin-1-codecs)2100          - [Кодеки ASCII](https://python-all.ru/3.1/c-api/unicode.html#ascii-codecs)2101          - [Кодеки символьной карты](https://python-all.ru/3.1/c-api/unicode.html#character-map-codecs)2102          - [Кодеки MBCS для Windows](https://python-all.ru/3.1/c-api/unicode.html#mbcs-codecs-for-windows)2103          - [Методы и слоты](https://python-all.ru/3.1/c-api/unicode.html#methods-slots)2104        - [Методы и слот-функции](https://python-all.ru/3.1/c-api/unicode.html#methods-and-slot-functions)2105      - [Кортежи](https://python-all.ru/3.1/c-api/tuple.html)2106      - [Списки](https://python-all.ru/3.1/c-api/list.html)2107    - [Объекты-отображения](https://python-all.ru/3.1/c-api/concrete.html#mapping-objects)21082109      - [Объекты словарей](https://python-all.ru/3.1/c-api/dict.html)2110    - [Прочие объекты](https://python-all.ru/3.1/c-api/concrete.html#other-objects)21112112      - [Множества](https://python-all.ru/3.1/c-api/set.html)2113      - [Объекты функций](https://python-all.ru/3.1/c-api/function.html)2114      - [Объекты методов экземпляра](https://python-all.ru/3.1/c-api/method.html)2115      - [Объекты методов](https://python-all.ru/3.1/c-api/method.html#method-objects)2116      - [Объекты файлов](https://python-all.ru/3.1/c-api/file.html)2117      - [Объекты модулей](https://python-all.ru/3.1/c-api/module.html)21182119        - [Инициализация C-модулей](https://python-all.ru/3.1/c-api/module.html#initializing-c-modules)2120      - [Объекты итераторов](https://python-all.ru/3.1/c-api/iterator.html)2121      - [Объекты дескрипторов](https://python-all.ru/3.1/c-api/descriptor.html)2122      - [Объекты срезов](https://python-all.ru/3.1/c-api/slice.html)2123      - [Объекты memoryview](https://python-all.ru/3.1/c-api/memoryview.html)2124      - [Объекты слабых ссылок](https://python-all.ru/3.1/c-api/weakref.html)2125      - [Капсулы](https://python-all.ru/3.1/c-api/capsule.html)2126      - [CObjects](https://python-all.ru/3.1/c-api/cobject.html)2127      - [Объекты ячеек](https://python-all.ru/3.1/c-api/cell.html)2128      - [Объекты-генераторы](https://python-all.ru/3.1/c-api/gen.html)2129      - [Объекты datetime](https://python-all.ru/3.1/c-api/datetime.html)2130  - [Инициализация, финализация и потоки](https://python-all.ru/3.1/c-api/init.html)21312132    - [Инициализация и финализация интерпретатора](https://python-all.ru/3.1/c-api/init.html#initializing-and-finalizing-the-interpreter)2133    - [Параметры уровня процесса](https://python-all.ru/3.1/c-api/init.html#process-wide-parameters)2134    - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/3.1/c-api/init.html#thread-state-and-the-global-interpreter-lock)21352136      - [Освобождение GIL из кода расширения](https://python-all.ru/3.1/c-api/init.html#releasing-the-gil-from-extension-code)2137      - [Потоки, созданные не в Python](https://python-all.ru/3.1/c-api/init.html#non-python-created-threads)2138      - [Высокоуровневый API](https://python-all.ru/3.1/c-api/init.html#high-level-api)2139      - [Низкоуровневый API](https://python-all.ru/3.1/c-api/init.html#low-level-api)2140    - [Поддержка под-интерпретаторов](https://python-all.ru/3.1/c-api/init.html#sub-interpreter-support)21412142      - [Ошибки и предостережения](https://python-all.ru/3.1/c-api/init.html#bugs-and-caveats)2143    - [Асинхронные уведомления](https://python-all.ru/3.1/c-api/init.html#asynchronous-notifications)2144    - [Профилирование и трассировка](https://python-all.ru/3.1/c-api/init.html#profiling-and-tracing)2145    - [Расширенная поддержка отладчика](https://python-all.ru/3.1/c-api/init.html#advanced-debugger-support)2146  - [Управление памятью](https://python-all.ru/3.1/c-api/memory.html)21472148    - [Обзор](https://python-all.ru/3.1/c-api/memory.html#overview)2149    - [Интерфейс памяти](https://python-all.ru/3.1/c-api/memory.html#memory-interface)2150    - [Примеры](https://python-all.ru/3.1/c-api/memory.html#examples)2151  - [Поддержка реализации объектов](https://python-all.ru/3.1/c-api/objimpl.html)21522153    - [Выделение объектов в куче](https://python-all.ru/3.1/c-api/allocation.html)2154    - [Общие структуры объектов](https://python-all.ru/3.1/c-api/structures.html)2155    - [Объекты типов](https://python-all.ru/3.1/c-api/typeobj.html)2156    - [Структуры числовых объектов](https://python-all.ru/3.1/c-api/typeobj.html#number-object-structures)2157    - [Структуры объектов отображений](https://python-all.ru/3.1/c-api/typeobj.html#mapping-object-structures)2158    - [Структуры объектов последовательностей](https://python-all.ru/3.1/c-api/typeobj.html#sequence-object-structures)2159    - [Структуры буферных объектов](https://python-all.ru/3.1/c-api/typeobj.html#buffer-object-structures)2160    - [Поддержка циклической сборки мусора](https://python-all.ru/3.1/c-api/gcsupport.html)2161- [Распространение модулей Python](https://python-all.ru/3.1/distutils/index.html)21622163  - [1. Введение в Distutils](https://python-all.ru/3.1/distutils/introduction.html)21642165    - [1.1. Понятия и терминология](https://python-all.ru/3.1/distutils/introduction.html#concepts-terminology)2166    - [1.2. Простой пример](https://python-all.ru/3.1/distutils/introduction.html#a-simple-example)2167    - [1.3. Общая терминология Python](https://python-all.ru/3.1/distutils/introduction.html#general-python-terminology)2168    - [1.4. Терминология Distutils](https://python-all.ru/3.1/distutils/introduction.html#distutils-specific-terminology)2169  - [2. Написание скрипта установки](https://python-all.ru/3.1/distutils/setupscript.html)21702171    - [2.1. Перечисление целых пакетов](https://python-all.ru/3.1/distutils/setupscript.html#listing-whole-packages)2172    - [2.2. Перечисление отдельных модулей](https://python-all.ru/3.1/distutils/setupscript.html#listing-individual-modules)2173    - [2.3. Описание модулей расширения](https://python-all.ru/3.1/distutils/setupscript.html#describing-extension-modules)21742175      - [2.3.1. Имена расширений и пакеты](https://python-all.ru/3.1/distutils/setupscript.html#extension-names-and-packages)2176      - [2.3.2. Исходные файлы расширений](https://python-all.ru/3.1/distutils/setupscript.html#extension-source-files)2177      - [2.3.3. Опции препроцессора](https://python-all.ru/3.1/distutils/setupscript.html#preprocessor-options)2178      - [2.3.4. Опции библиотек](https://python-all.ru/3.1/distutils/setupscript.html#library-options)2179      - [2.3.5. Другие опции](https://python-all.ru/3.1/distutils/setupscript.html#other-options)2180    - [2.4. Связи между дистрибутивами и пакетами](https://python-all.ru/3.1/distutils/setupscript.html#relationships-between-distributions-and-packages)2181    - [2.5. Установка скриптов](https://python-all.ru/3.1/distutils/setupscript.html#installing-scripts)2182    - [2.6. Установка данных пакета](https://python-all.ru/3.1/distutils/setupscript.html#installing-package-data)2183    - [2.7. Установка дополнительных файлов](https://python-all.ru/3.1/distutils/setupscript.html#installing-additional-files)2184    - [2.8. Дополнительные метаданные](https://python-all.ru/3.1/distutils/setupscript.html#additional-meta-data)2185    - [2.9. Отладка скрипта установки](https://python-all.ru/3.1/distutils/setupscript.html#debugging-the-setup-script)2186  - [3. Написание файла конфигурации установки](https://python-all.ru/3.1/distutils/configfile.html)2187  - [4. Создание исходного дистрибутива](https://python-all.ru/3.1/distutils/sourcedist.html)21882189    - [4.1. Указание файлов для распространения](https://python-all.ru/3.1/distutils/sourcedist.html#specifying-the-files-to-distribute)2190    - [4.2. Опции, связанные с манифестом](https://python-all.ru/3.1/distutils/sourcedist.html#manifest-related-options)2191  - [5. Создание готовых дистрибутивов](https://python-all.ru/3.1/distutils/builtdist.html)21922193    - [5.1. Создание простых сборок дистрибутивов](https://python-all.ru/3.1/distutils/builtdist.html#creating-dumb-built-distributions)2194    - [5.2. Создание пакетов RPM](https://python-all.ru/3.1/distutils/builtdist.html#creating-rpm-packages)2195    - [5.3. Создание установщиков для Windows](https://python-all.ru/3.1/distutils/builtdist.html#creating-windows-installers)2196    - [5.4. Кросс-компиляция в Windows](https://python-all.ru/3.1/distutils/builtdist.html#cross-compiling-on-windows)21972198      - [5.4.1. Постустановочный скрипт](https://python-all.ru/3.1/distutils/builtdist.html#the-postinstallation-script)2199    - [5.5. Контроль учётных записей (UAC) в Windows Vista](https://python-all.ru/3.1/distutils/builtdist.html#vista-user-access-control-uac)2200  - [6. Регистрация в индексе пакетов](https://python-all.ru/3.1/distutils/packageindex.html)22012202    - [6.1. Файл .pypirc](https://python-all.ru/3.1/distutils/packageindex.html#the-pypirc-file)2203  - [7. Загрузка пакетов в индекс пакетов](https://python-all.ru/3.1/distutils/uploading.html)22042205    - [7.1. Отображение пакета на PyPI](https://python-all.ru/3.1/distutils/uploading.html#pypi-package-display)2206  - [8. Примеры](https://python-all.ru/3.1/distutils/examples.html)22072208    - [8.1. Чисто Python-дистрибутив (по модулям)](https://python-all.ru/3.1/distutils/examples.html#pure-python-distribution-by-module)2209    - [8.2. Чисто Python-дистрибутив (по пакетам)](https://python-all.ru/3.1/distutils/examples.html#pure-python-distribution-by-package)2210    - [8.3. Единственный модуль расширения](https://python-all.ru/3.1/distutils/examples.html#single-extension-module)2211    - [8.4. Проверка пакета](https://python-all.ru/3.1/distutils/examples.html#checking-a-package)2212  - [9. Расширение Distutils](https://python-all.ru/3.1/distutils/extending.html)22132214    - [9.1. Интеграция новых команд](https://python-all.ru/3.1/distutils/extending.html#integrating-new-commands)2215    - [9.2. Добавление новых типов дистрибутивов](https://python-all.ru/3.1/distutils/extending.html#adding-new-distribution-types)2216  - [10. Справочник команд](https://python-all.ru/3.1/distutils/commandref.html)22172218    - [10.1. Установка модулей: семейство команд **install**](https://python-all.ru/3.1/distutils/commandref.html#installing-modules-the-install-command-family)22192220      - [10.1.1. **install\_data**](https://python-all.ru/3.1/distutils/commandref.html#install-data)2221      - [10.1.2. **install\_scripts**](https://python-all.ru/3.1/distutils/commandref.html#install-scripts)2222    - [10.2. Создание исходного дистрибутива: команда **sdist**](https://python-all.ru/3.1/distutils/commandref.html#creating-a-source-distribution-the-sdist-command)2223  - [11. Справочник API](https://python-all.ru/3.1/distutils/apiref.html)22242225    - [11.1. `distutils.core` – основная функциональность Distutils](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.core)2226    - [11.2. `distutils.ccompiler` – базовый класс CCompiler](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.ccompiler)2227    - [11.3. `distutils.unixccompiler` – компилятор C для Unix](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.unixccompiler)2228    - [11.4. `distutils.msvccompiler` – компилятор Microsoft](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.msvccompiler)2229    - [11.5. `distutils.bcppcompiler` – компилятор Borland](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.bcppcompiler)2230    - [11.6. `distutils.cygwincompiler` – компилятор Cygwin](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.cygwinccompiler)2231    - [11.7. `distutils.emxccompiler` – компилятор OS/2 EMX](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.emxccompiler)2232    - [11.8. `distutils.archive_util` – утилиты архивации](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.archive_util)2233    - [11.9. `distutils.dep_util` – проверка зависимостей](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.dep_util)2234    - [11.10. `distutils.dir_util` – операции с деревом каталогов](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.dir_util)2235    - [11.11. `distutils.file_util` – операции с отдельными файлами](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.file_util)2236    - [11.12. `distutils.util` – прочие вспомогательные функции](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.util)2237    - [11.13. `distutils.dist` – класс Distribution](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.dist)2238    - [11.14. `distutils.extension` – класс Extension](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.extension)2239    - [11.15. `distutils.debug` – режим отладки Distutils](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.debug)2240    - [11.16. `distutils.errors` – исключения Distutils](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.errors)2241    - [11.17. `distutils.fancy_getopt` – обёртка над стандартным модулем getopt](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.fancy_getopt)2242    - [11.18. `distutils.filelist` – класс FileList](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.filelist)2243    - [11.19. `distutils.log` – простое журналирование в стиле PEP 282](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.log)2244    - [11.20. `distutils.spawn` – порождение подпроцесса](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.spawn)2245    - [11.21. `distutils.sysconfig` – информация о конфигурации системы](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.sysconfig)2246    - [11.22. `distutils.text_file` – класс TextFile](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.text_file)2247    - [11.23. `distutils.version` – классы номеров версий](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.version)2248    - [11.24. `distutils.cmd` – абстрактный базовый класс для команд Distutils](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.cmd)2249    - [11.25. Создание новой команды Distutils](https://python-all.ru/3.1/distutils/apiref.html#creating-a-new-distutils-command)2250    - [11.26. `distutils.command` – отдельные команды Distutils](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command)2251    - [11.27. `distutils.command.bdist` – сборка двоичного установщика](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist)2252    - [11.28. `distutils.command.bdist_packager` – абстрактный базовый класс для упаковщиков](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist_packager)2253    - [11.29. `distutils.command.bdist_dumb` – сборка «глупого» установщика](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist_dumb)2254    - [11.30. `distutils.command.bdist_msi` – сборка двоичного пакета Microsoft Installer](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist_msi)2255    - [11.31. `distutils.command.bdist_rpm` – сборка двоичного дистрибутива в форматах Redhat RPM и SRPM](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist_rpm)2256    - [11.32. `distutils.command.bdist_wininst` – сборка установщика для Windows](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.bdist_wininst)2257    - [11.33. `distutils.command.sdist` – сборка дистрибутива исходного кода](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.sdist)2258    - [11.34. `distutils.command.build` – сборка всех файлов пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.build)2259    - [11.35. `distutils.command.build_clib` – сборка любых C-библиотек в пакете](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.build_clib)2260    - [11.36. `distutils.command.build_ext` – сборка любых расширений в пакете](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.build_ext)2261    - [11.37. `distutils.command.build_py` – сборка .py/.pyc-файлов пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.build_py)2262    - [11.38. `distutils.command.build_scripts` – сборка скриптов пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.build_scripts)2263    - [11.39. `distutils.command.clean` – очистка области сборки пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.clean)2264    - [11.40. `distutils.command.config` – выполнение конфигурации пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.config)2265    - [11.41. `distutils.command.install` – установка пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.install)2266    - [11.42. `distutils.command.install_data` – установка файлов данных из пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.install_data)2267    - [11.43. `distutils.command.install_headers` – установка заголовочных файлов C/C++ из пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.install_headers)2268    - [11.44. `distutils.command.install_lib` – установка файлов библиотек из пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.install_lib)2269    - [11.45. `distutils.command.install_scripts` – установка файлов скриптов из пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.install_scripts)2270    - [11.46. `distutils.command.register` – регистрация модуля в индексе пакетов Python](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.register)2271    - [11.47. `distutils.command.check` – проверка метаданных пакета](https://python-all.ru/3.1/distutils/apiref.html#module-distutils.command.check)2272- [Установка модулей Python](https://python-all.ru/3.1/install/index.html)22732274  - [Введение](https://python-all.ru/3.1/install/index.html#introduction)22752276    - [Идеальный случай: простая установка](https://python-all.ru/3.1/install/index.html#best-case-trivial-installation)2277    - [Новый стандарт: Distutils](https://python-all.ru/3.1/install/index.html#the-new-standard-distutils)2278  - [Стандартная сборка и установка](https://python-all.ru/3.1/install/index.html#standard-build-and-install)22792280    - [Различия платформ](https://python-all.ru/3.1/install/index.html#platform-variations)2281    - [Разделение задачи на части](https://python-all.ru/3.1/install/index.html#splitting-the-job-up)2282    - [Как работает сборка](https://python-all.ru/3.1/install/index.html#how-building-works)2283    - [Как работает установка](https://python-all.ru/3.1/install/index.html#how-installation-works)2284  - [Альтернативная установка](https://python-all.ru/3.1/install/index.html#alternate-installation)22852286    - [Альтернативная установка: домашняя схема](https://python-all.ru/3.1/install/index.html#alternate-installation-the-home-scheme)2287    - [Альтернативная установка: Unix (схема префикса)](https://python-all.ru/3.1/install/index.html#alternate-installation-unix-the-prefix-scheme)2288    - [Альтернативная установка: Windows (схема префикса)](https://python-all.ru/3.1/install/index.html#alternate-installation-windows-the-prefix-scheme)2289  - [Пользовательская установка](https://python-all.ru/3.1/install/index.html#custom-installation)22902291    - [Изменение пути поиска Python](https://python-all.ru/3.1/install/index.html#modifying-python-s-search-path)2292  - [Файлы конфигурации Distutils](https://python-all.ru/3.1/install/index.html#distutils-configuration-files)22932294    - [Расположение и имена файлов конфигурации](https://python-all.ru/3.1/install/index.html#location-and-names-of-config-files)2295    - [Синтаксис файлов конфигурации](https://python-all.ru/3.1/install/index.html#syntax-of-config-files)2296  - [Сборка расширений: советы и рекомендации](https://python-all.ru/3.1/install/index.html#building-extensions-tips-and-tricks)22972298    - [Настройка флагов компилятора/компоновщика](https://python-all.ru/3.1/install/index.html#tweaking-compiler-linker-flags)2299    - [Использование компиляторов, отличных от Microsoft, в Windows](https://python-all.ru/3.1/install/index.html#using-non-microsoft-compilers-on-windows)23002301      - [Borland/CodeGear C++](https://python-all.ru/3.1/install/index.html#borland-codegear-c)2302      - [GNU C / Cygwin / MinGW](https://python-all.ru/3.1/install/index.html#gnu-c-cygwin-mingw)23032304        - [Старые версии Python и MinGW](https://python-all.ru/3.1/install/index.html#older-versions-of-python-and-mingw)2305- [Документирование Python](https://python-all.ru/3.1/documenting/index.html)23062307  - [1. Введение](https://python-all.ru/3.1/documenting/intro.html)2308  - [2. Руководство по стилю](https://python-all.ru/3.1/documenting/style.html)2309  - [3. Введение в reStructuredText](https://python-all.ru/3.1/documenting/rest.html)23102311    - [3.1. Абзацы](https://python-all.ru/3.1/documenting/rest.html#paragraphs)2312    - [3.2. Встроенная разметка](https://python-all.ru/3.1/documenting/rest.html#inline-markup)2313    - [3.3. Списки и цитаты](https://python-all.ru/3.1/documenting/rest.html#lists-and-quotes)2314    - [3.4. Исходный код](https://python-all.ru/3.1/documenting/rest.html#source-code)2315    - [3.5. Гиперссылки](https://python-all.ru/3.1/documenting/rest.html#hyperlinks)23162317      - [3.5.1. Внешние ссылки](https://python-all.ru/3.1/documenting/rest.html#external-links)2318      - [3.5.2. Внутренние ссылки](https://python-all.ru/3.1/documenting/rest.html#internal-links)2319    - [3.6. Разделы](https://python-all.ru/3.1/documenting/rest.html#sections)2320    - [3.7. Явная разметка](https://python-all.ru/3.1/documenting/rest.html#explicit-markup)2321    - [3.8. Директивы](https://python-all.ru/3.1/documenting/rest.html#directives)2322    - [3.9. Сноски](https://python-all.ru/3.1/documenting/rest.html#footnotes)2323    - [3.10. Комментарии](https://python-all.ru/3.1/documenting/rest.html#comments)2324    - [3.11. Кодировка исходного текста](https://python-all.ru/3.1/documenting/rest.html#source-encoding)2325    - [3.12. Подводные камни](https://python-all.ru/3.1/documenting/rest.html#gotchas)2326  - [4. Дополнительные конструкции разметки](https://python-all.ru/3.1/documenting/markup.html)23272328    - [4.1. Разметка мета-информации](https://python-all.ru/3.1/documenting/markup.html#meta-information-markup)2329    - [4.2. Разметка для модулей](https://python-all.ru/3.1/documenting/markup.html#module-specific-markup)2330    - [4.3. Информационные единицы](https://python-all.ru/3.1/documenting/markup.html#information-units)2331    - [4.4. Примеры кода](https://python-all.ru/3.1/documenting/markup.html#showing-code-examples)2332    - [4.5. Встроенная разметка](https://python-all.ru/3.1/documenting/markup.html#inline-markup)2333    - [4.6. Разметка перекрёстных ссылок](https://python-all.ru/3.1/documenting/markup.html#cross-linking-markup)2334    - [4.7. Разметка на уровне абзаца](https://python-all.ru/3.1/documenting/markup.html#paragraph-level-markup)2335    - [4.8. Разметка оглавления](https://python-all.ru/3.1/documenting/markup.html#table-of-contents-markup)2336    - [4.9. Разметка для генерации указателя](https://python-all.ru/3.1/documenting/markup.html#index-generating-markup)2337    - [4.10. Отображение грамматических правил](https://python-all.ru/3.1/documenting/markup.html#grammar-production-displays)2338    - [4.11. Подстановки](https://python-all.ru/3.1/documenting/markup.html#substitutions)2339  - [5. Отличия от разметки LaTeX](https://python-all.ru/3.1/documenting/fromlatex.html)23402341    - [5.1. Встроенная разметка](https://python-all.ru/3.1/documenting/fromlatex.html#inline-markup)2342    - [5.2. Информационные единицы](https://python-all.ru/3.1/documenting/fromlatex.html#information-units)2343    - [5.3. Структура](https://python-all.ru/3.1/documenting/fromlatex.html#structure)2344  - [6. Сборка документации](https://python-all.ru/3.1/documenting/building.html)23452346    - [6.1. Использование make](https://python-all.ru/3.1/documenting/building.html#using-make)2347    - [6.2. Без make](https://python-all.ru/3.1/documenting/building.html#without-make)2348- [Руководства Python HOWTO](https://python-all.ru/3.1/howto/index.html)23492350  - [HOWTO по продвижению Python](https://python-all.ru/3.1/howto/advocacy.html)23512352    - [Причины использовать Python](https://python-all.ru/3.1/howto/advocacy.html#reasons-to-use-python)23532354      - [Программируемость](https://python-all.ru/3.1/howto/advocacy.html#programmability)2355      - [Прототипирование](https://python-all.ru/3.1/howto/advocacy.html#prototyping)2356      - [Простота и лёгкость понимания](https://python-all.ru/3.1/howto/advocacy.html#simplicity-and-ease-of-understanding)2357      - [Интеграция с Java](https://python-all.ru/3.1/howto/advocacy.html#java-integration)2358    - [Аргументы и контраргументы](https://python-all.ru/3.1/howto/advocacy.html#arguments-and-rebuttals)2359    - [Полезные ресурсы](https://python-all.ru/3.1/howto/advocacy.html#useful-resources)2360  - [Перенос модулей расширения на версию 3.0](https://python-all.ru/3.1/howto/cporting.html)23612362    - [Условная компиляция](https://python-all.ru/3.1/howto/cporting.html#conditional-compilation)2363    - [Изменения в объектных API](https://python-all.ru/3.1/howto/cporting.html#changes-to-object-apis)23642365      - [Объединение str/unicode](https://python-all.ru/3.1/howto/cporting.html#str-unicode-unification)2366      - [Объединение long/int](https://python-all.ru/3.1/howto/cporting.html#long-int-unification)2367    - [Инициализация и состояние модулей](https://python-all.ru/3.1/howto/cporting.html#module-initialization-and-state)2368    - [Другие опции](https://python-all.ru/3.1/howto/cporting.html#other-options)2369  - [Программирование с curses на Python](https://python-all.ru/3.1/howto/curses.html)23702371    - [Что такое curses?](https://python-all.ru/3.1/howto/curses.html#what-is-curses)23722373      - [Модуль curses в Python](https://python-all.ru/3.1/howto/curses.html#the-python-curses-module)2374    - [Запуск и завершение приложения curses](https://python-all.ru/3.1/howto/curses.html#starting-and-ending-a-curses-application)2375    - [Окна и пады](https://python-all.ru/3.1/howto/curses.html#windows-and-pads)2376    - [Отображение текста](https://python-all.ru/3.1/howto/curses.html#displaying-text)23772378      - [Атрибуты и цвет](https://python-all.ru/3.1/howto/curses.html#attributes-and-color)2379    - [Ввод пользователя](https://python-all.ru/3.1/howto/curses.html#user-input)2380    - [Для получения дополнительных сведений](https://python-all.ru/3.1/howto/curses.html#for-more-information)2381  - [Руководство по дескрипторам](https://python-all.ru/3.1/howto/descriptor.html)23822383    - [Аннотация](https://python-all.ru/3.1/howto/descriptor.html#abstract)2384    - [Определение и введение](https://python-all.ru/3.1/howto/descriptor.html#definition-and-introduction)2385    - [Протокол дескрипторов](https://python-all.ru/3.1/howto/descriptor.html#descriptor-protocol)2386    - [Вызов дескрипторов](https://python-all.ru/3.1/howto/descriptor.html#invoking-descriptors)2387    - [Пример дескриптора](https://python-all.ru/3.1/howto/descriptor.html#descriptor-example)2388    - [Свойства](https://python-all.ru/3.1/howto/descriptor.html#properties)2389    - [Функции и методы](https://python-all.ru/3.1/howto/descriptor.html#functions-and-methods)2390    - [Статические методы и методы класса](https://python-all.ru/3.1/howto/descriptor.html#static-methods-and-class-methods)2391  - [Идиомы и анти-идиомы в Python](https://python-all.ru/3.1/howto/doanddont.html)23922393    - [Конструкции языка, которые не следует использовать](https://python-all.ru/3.1/howto/doanddont.html#language-constructs-you-should-not-use)23942395      - [from module import \*](https://python-all.ru/3.1/howto/doanddont.html#from-module-import)23962397        - [Внутри определений функций](https://python-all.ru/3.1/howto/doanddont.html#inside-function-definitions)2398        - [На уровне модуля](https://python-all.ru/3.1/howto/doanddont.html#at-module-level)2399        - [Когда это нормально](https://python-all.ru/3.1/howto/doanddont.html#when-it-is-just-fine)2400      - [from module import name1, name2](https://python-all.ru/3.1/howto/doanddont.html#from-module-import-name1-name2)2401      - [except:](https://python-all.ru/3.1/howto/doanddont.html#except)2402    - [Исключения](https://python-all.ru/3.1/howto/doanddont.html#exceptions)2403    - [Использование батареек](https://python-all.ru/3.1/howto/doanddont.html#using-the-batteries)2404    - [Использование обратной косой черты для продолжения инструкций](https://python-all.ru/3.1/howto/doanddont.html#using-backslash-to-continue-statements)2405  - [HOWTO по функциональному программированию](https://python-all.ru/3.1/howto/functional.html)24062407    - [Введение](https://python-all.ru/3.1/howto/functional.html#introduction)24082409      - [Формальная доказуемость](https://python-all.ru/3.1/howto/functional.html#formal-provability)2410      - [Модульность](https://python-all.ru/3.1/howto/functional.html#modularity)2411      - [Простота отладки и тестирования](https://python-all.ru/3.1/howto/functional.html#ease-of-debugging-and-testing)2412      - [Композируемость](https://python-all.ru/3.1/howto/functional.html#composability)2413    - [Итераторы](https://python-all.ru/3.1/howto/functional.html#iterators)24142415      - [Типы данных, поддерживающие итераторы](https://python-all.ru/3.1/howto/functional.html#data-types-that-support-iterators)2416    - [Генераторные выражения и списковые включения](https://python-all.ru/3.1/howto/functional.html#generator-expressions-and-list-comprehensions)2417    - [Генераторы](https://python-all.ru/3.1/howto/functional.html#generators)24182419      - [Передача значений в генератор](https://python-all.ru/3.1/howto/functional.html#passing-values-into-a-generator)2420    - [Встроенные функции](https://python-all.ru/3.1/howto/functional.html#built-in-functions)2421    - [Модуль itertools](https://python-all.ru/3.1/howto/functional.html#the-itertools-module)24222423      - [Создание новых итераторов](https://python-all.ru/3.1/howto/functional.html#creating-new-iterators)2424      - [Вызов функций для элементов](https://python-all.ru/3.1/howto/functional.html#calling-functions-on-elements)2425      - [Выбор элементов](https://python-all.ru/3.1/howto/functional.html#selecting-elements)2426      - [Группировка элементов](https://python-all.ru/3.1/howto/functional.html#grouping-elements)2427    - [Модуль functools](https://python-all.ru/3.1/howto/functional.html#the-functools-module)24282429      - [Модуль operator](https://python-all.ru/3.1/howto/functional.html#the-operator-module)2430      - [Модуль functional](https://python-all.ru/3.1/howto/functional.html#the-functional-module)2431    - [Небольшие функции и лямбда-выражение](https://python-all.ru/3.1/howto/functional.html#small-functions-and-the-lambda-expression)2432    - [История изменений и благодарности](https://python-all.ru/3.1/howto/functional.html#revision-history-and-acknowledgements)2433    - [Ссылки](https://python-all.ru/3.1/howto/functional.html#references)24342435      - [Общие](https://python-all.ru/3.1/howto/functional.html#general)2436      - [Специфичное для Python](https://python-all.ru/3.1/howto/functional.html#python-specific)2437      - [Документация Python](https://python-all.ru/3.1/howto/functional.html#python-documentation)2438  - [HOWTO по регулярным выражениям](https://python-all.ru/3.1/howto/regex.html)24392440    - [Введение](https://python-all.ru/3.1/howto/regex.html#introduction)2441    - [Простые шаблоны](https://python-all.ru/3.1/howto/regex.html#simple-patterns)24422443      - [Сопоставление символов](https://python-all.ru/3.1/howto/regex.html#matching-characters)2444      - [Повторение](https://python-all.ru/3.1/howto/regex.html#repeating-things)2445    - [Использование регулярных выражений](https://python-all.ru/3.1/howto/regex.html#using-regular-expressions)24462447      - [Компиляция регулярных выражений](https://python-all.ru/3.1/howto/regex.html#compiling-regular-expressions)2448      - [Проблема обратной косой черты](https://python-all.ru/3.1/howto/regex.html#the-backslash-plague)2449      - [Выполнение сопоставлений](https://python-all.ru/3.1/howto/regex.html#performing-matches)2450      - [Функции уровня модуля](https://python-all.ru/3.1/howto/regex.html#module-level-functions)2451      - [Флаги компиляции](https://python-all.ru/3.1/howto/regex.html#compilation-flags)2452    - [Дополнительные возможности шаблонов](https://python-all.ru/3.1/howto/regex.html#more-pattern-power)24532454      - [Дополнительные метасимволы](https://python-all.ru/3.1/howto/regex.html#more-metacharacters)2455      - [Группировка](https://python-all.ru/3.1/howto/regex.html#grouping)2456      - [Незахватывающие и именованные группы](https://python-all.ru/3.1/howto/regex.html#non-capturing-and-named-groups)2457      - [Опережающие проверки](https://python-all.ru/3.1/howto/regex.html#lookahead-assertions)2458    - [Изменение строк](https://python-all.ru/3.1/howto/regex.html#modifying-strings)24592460      - [Разделение строк](https://python-all.ru/3.1/howto/regex.html#splitting-strings)2461      - [Поиск и замена](https://python-all.ru/3.1/howto/regex.html#search-and-replace)2462    - [Распространённые проблемы](https://python-all.ru/3.1/howto/regex.html#common-problems)24632464      - [Использование строковых методов](https://python-all.ru/3.1/howto/regex.html#use-string-methods)2465      - [match() и search()](https://python-all.ru/3.1/howto/regex.html#match-versus-search)2466      - [Жадные и нежадные квантификаторы](https://python-all.ru/3.1/howto/regex.html#greedy-versus-non-greedy)2467      - [Использование re.VERBOSE](https://python-all.ru/3.1/howto/regex.html#using-re-verbose)2468    - [Обратная связь](https://python-all.ru/3.1/howto/regex.html#feedback)2469  - [Руководство по программированию сокетов](https://python-all.ru/3.1/howto/sockets.html)24702471    - [Сокеты](https://python-all.ru/3.1/howto/sockets.html#sockets)24722473      - [История](https://python-all.ru/3.1/howto/sockets.html#history)2474    - [Создание сокета](https://python-all.ru/3.1/howto/sockets.html#creating-a-socket)24752476      - [Межпроцессное взаимодействие](https://python-all.ru/3.1/howto/sockets.html#ipc)2477    - [Использование сокета](https://python-all.ru/3.1/howto/sockets.html#using-a-socket)24782479      - [Двоичные данные](https://python-all.ru/3.1/howto/sockets.html#binary-data)2480    - [Отключение](https://python-all.ru/3.1/howto/sockets.html#disconnecting)24812482      - [Когда сокеты завершают работу](https://python-all.ru/3.1/howto/sockets.html#when-sockets-die)2483    - [Неблокирующие сокеты](https://python-all.ru/3.1/howto/sockets.html#non-blocking-sockets)24842485      - [Производительность](https://python-all.ru/3.1/howto/sockets.html#performance)2486  - [Руководство по сортировке](https://python-all.ru/3.1/howto/sorting.html)24872488    - [Основы сортировки](https://python-all.ru/3.1/howto/sorting.html#sorting-basics)2489    - [Ключевые функции](https://python-all.ru/3.1/howto/sorting.html#key-functions)2490    - [Функции модуля operator](https://python-all.ru/3.1/howto/sorting.html#operator-module-functions)2491    - [По возрастанию и по убыванию](https://python-all.ru/3.1/howto/sorting.html#ascending-and-descending)2492    - [Стабильность сортировки и сложные сортировки](https://python-all.ru/3.1/howto/sorting.html#sort-stability-and-complex-sorts)2493    - [Старый способ: Decorate-Sort-Undecorate](https://python-all.ru/3.1/howto/sorting.html#the-old-way-using-decorate-sort-undecorate)2494    - [Старый способ: использование параметра *cmp*](https://python-all.ru/3.1/howto/sorting.html#the-old-way-using-the-cmp-parameter)2495    - [Разное](https://python-all.ru/3.1/howto/sorting.html#odd-and-ends)2496  - [Руководство по Unicode](https://python-all.ru/3.1/howto/unicode.html)24972498    - [Введение в Unicode](https://python-all.ru/3.1/howto/unicode.html#introduction-to-unicode)24992500      - [История кодов символов](https://python-all.ru/3.1/howto/unicode.html#history-of-character-codes)2501      - [Определения](https://python-all.ru/3.1/howto/unicode.html#definitions)2502      - [Кодировки](https://python-all.ru/3.1/howto/unicode.html#encodings)2503      - [Ссылки](https://python-all.ru/3.1/howto/unicode.html#references)2504    - [Поддержка Unicode в Python 2.x](https://python-all.ru/3.1/howto/unicode.html#python-2-x-s-unicode-support)25052506      - [Тип str](https://python-all.ru/3.1/howto/unicode.html#the-string-type)2507      - [Преобразование в байты](https://python-all.ru/3.1/howto/unicode.html#converting-to-bytes)2508      - [Unicode-литералы в исходном коде Python](https://python-all.ru/3.1/howto/unicode.html#unicode-literals-in-python-source-code)2509      - [Свойства Unicode](https://python-all.ru/3.1/howto/unicode.html#unicode-properties)2510      - [Ссылки](https://python-all.ru/3.1/howto/unicode.html#id2)2511    - [Чтение и запись данных Unicode](https://python-all.ru/3.1/howto/unicode.html#reading-and-writing-unicode-data)25122513      - [Имена файлов в Unicode](https://python-all.ru/3.1/howto/unicode.html#unicode-filenames)2514      - [Советы по написанию программ с поддержкой Unicode](https://python-all.ru/3.1/howto/unicode.html#tips-for-writing-unicode-aware-programs)2515      - [Ссылки](https://python-all.ru/3.1/howto/unicode.html#id3)2516    - [История изменений и благодарности](https://python-all.ru/3.1/howto/unicode.html#revision-history-and-acknowledgements)2517  - [HOWTO: получение интернет-ресурсов с помощью пакета urllib](https://python-all.ru/3.1/howto/urllib2.html)25182519    - [Введение](https://python-all.ru/3.1/howto/urllib2.html#introduction)2520    - [Получение URL-адресов](https://python-all.ru/3.1/howto/urllib2.html#fetching-urls)25212522      - [Данные](https://python-all.ru/3.1/howto/urllib2.html#data)2523      - [Заголовки](https://python-all.ru/3.1/howto/urllib2.html#headers)2524    - [Обработка исключений](https://python-all.ru/3.1/howto/urllib2.html#handling-exceptions)25252526      - \<[URLError](https://python-all.ru/3.1/howto/urllib2.html#urlerror)\>2527      - [HTTPError](https://python-all.ru/3.1/howto/urllib2.html#httperror)25282529        - [Коды ошибок](https://python-all.ru/3.1/howto/urllib2.html#error-codes)2530      - [Заключение](https://python-all.ru/3.1/howto/urllib2.html#wrapping-it-up)25312532        - [Номер 1](https://python-all.ru/3.1/howto/urllib2.html#number-1)2533        - [Номер 2](https://python-all.ru/3.1/howto/urllib2.html#number-2)2534    - [info и geturl](https://python-all.ru/3.1/howto/urllib2.html#info-and-geturl)2535    - [Открыватели и обработчики](https://python-all.ru/3.1/howto/urllib2.html#openers-and-handlers)2536    - [Базовая аутентификация](https://python-all.ru/3.1/howto/urllib2.html#id6)2537    - [Прокси](https://python-all.ru/3.1/howto/urllib2.html#proxies)2538    - [Сокеты и слои](https://python-all.ru/3.1/howto/urllib2.html#sockets-and-layers)2539    - [Сноски](https://python-all.ru/3.1/howto/urllib2.html#footnotes)2540  - [HOWTO: использование Python в вебе](https://python-all.ru/3.1/howto/webservers.html)25412542    - [Низкоуровневое представление](https://python-all.ru/3.1/howto/webservers.html#the-low-level-view)25432544      - [Общий шлюзовый интерфейс](https://python-all.ru/3.1/howto/webservers.html#common-gateway-interface)25452546        - [Простой скрипт для тестирования CGI](https://python-all.ru/3.1/howto/webservers.html#simple-script-for-testing-cgi)2547        - [Настройка CGI на собственном сервере](https://python-all.ru/3.1/howto/webservers.html#setting-up-cgi-on-your-own-server)2548        - [Типичные проблемы CGI-скриптов](https://python-all.ru/3.1/howto/webservers.html#common-problems-with-cgi-scripts)2549      - [mod\_python](https://python-all.ru/3.1/howto/webservers.html#mod-python)2550      - [FastCGI и SCGI](https://python-all.ru/3.1/howto/webservers.html#fastcgi-and-scgi)25512552        - [Настройка FastCGI](https://python-all.ru/3.1/howto/webservers.html#setting-up-fastcgi)2553      - [mod\_wsgi](https://python-all.ru/3.1/howto/webservers.html#mod-wsgi)2554    - [Отступление: WSGI](https://python-all.ru/3.1/howto/webservers.html#step-back-wsgi)25552556      - [WSGI-серверы](https://python-all.ru/3.1/howto/webservers.html#wsgi-servers)2557      - [Пример: MoinMoin](https://python-all.ru/3.1/howto/webservers.html#case-study-moinmoin)2558    - [Модель-Представление-Контроллер](https://python-all.ru/3.1/howto/webservers.html#model-view-controller)2559    - [Составляющие веб-сайтов](https://python-all.ru/3.1/howto/webservers.html#ingredients-for-websites)25602561      - [Шаблоны](https://python-all.ru/3.1/howto/webservers.html#templates)2562      - [Постоянное хранение данных](https://python-all.ru/3.1/howto/webservers.html#data-persistence)2563    - [Фреймворки](https://python-all.ru/3.1/howto/webservers.html#frameworks)25642565      - [Некоторые известные фреймворки](https://python-all.ru/3.1/howto/webservers.html#some-notable-frameworks)25662567        - [Django](https://python-all.ru/3.1/howto/webservers.html#django)2568        - [TurboGears](https://python-all.ru/3.1/howto/webservers.html#turbogears)2569        - [Zope](https://python-all.ru/3.1/howto/webservers.html#zope)2570        - [Другие известные фреймворки](https://python-all.ru/3.1/howto/webservers.html#other-notable-frameworks)2571- [Часто задаваемые вопросы по Python](https://python-all.ru/3.1/faq/index.html)25722573  - [Общие вопросы по Python](https://python-all.ru/3.1/faq/general.html)25742575    - [Общая информация](https://python-all.ru/3.1/faq/general.html#general-information)2576    - [Python в реальном мире](https://python-all.ru/3.1/faq/general.html#python-in-the-real-world)2577    - [Обновление Python](https://python-all.ru/3.1/faq/general.html#upgrading-python)2578  - [Вопросы по программированию](https://python-all.ru/3.1/faq/programming.html)25792580    - [Общие вопросы](https://python-all.ru/3.1/faq/programming.html#general-questions)2581    - [Ядро языка](https://python-all.ru/3.1/faq/programming.html#core-language)2582    - [Числа и строки](https://python-all.ru/3.1/faq/programming.html#numbers-and-strings)2583    - [Последовательности (кортежи/списки)](https://python-all.ru/3.1/faq/programming.html#sequences-tuples-lists)2584    - [Словари](https://python-all.ru/3.1/faq/programming.html#dictionaries)2585    - [Объекты](https://python-all.ru/3.1/faq/programming.html#objects)2586    - [Модули](https://python-all.ru/3.1/faq/programming.html#modules)2587  - [Вопросы по дизайну и истории](https://python-all.ru/3.1/faq/design.html)25882589    - [Почему в Python для группировки инструкций используются отступы?](https://python-all.ru/3.1/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements)2590    - [Почему при простых арифметических операциях получаются странные результаты?](https://python-all.ru/3.1/faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations)2591    - [Почему вычисления с плавающей точкой такие неточные?](https://python-all.ru/3.1/faq/design.html#why-are-floating-point-calculations-so-inaccurate)2592    - [Почему строки в Python неизменяемы?](https://python-all.ru/3.1/faq/design.html#why-are-python-strings-immutable)2593    - [Почему self нужно явно указывать в определениях и вызовах методов?](https://python-all.ru/3.1/faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls)2594    - [Почему в выражении нельзя использовать присваивание?](https://python-all.ru/3.1/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression)2595    - [Почему в Python для одних возможностей используются методы (например, list.index()), а для других – функции (например, len(list))?](https://python-all.ru/3.1/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list)2596    - [Почему join() – метод строки, а не списка или кортежа?](https://python-all.ru/3.1/faq/design.html#why-is-join-a-string-method-instead-of-a-list-or-tuple-method)2597    - [Насколько быстры исключения?](https://python-all.ru/3.1/faq/design.html#how-fast-are-exceptions)2598    - [Почему в Python нет оператора switch или case?](https://python-all.ru/3.1/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python)2599    - [Разве нельзя эмулировать потоки в интерпретаторе, вместо того чтобы полагаться на реализацию потоков, зависящую от ОС?](https://python-all.ru/3.1/faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation)2600    - [Почему лямбда-формы не могут содержать инструкции?](https://python-all.ru/3.1/faq/design.html#why-can-t-lambda-forms-contain-statements)2601    - [Можно ли скомпилировать Python в машинный код, C или другой язык?](https://python-all.ru/3.1/faq/design.html#can-python-be-compiled-to-machine-code-c-or-some-other-language)2602    - [Как Python управляет памятью?](https://python-all.ru/3.1/faq/design.html#how-does-python-manage-memory)2603    - [Почему при завершении Python освобождается не вся память?](https://python-all.ru/3.1/faq/design.html#why-isn-t-all-memory-freed-when-python-exits)2604    - [Почему существуют отдельные типы данных кортеж и список?](https://python-all.ru/3.1/faq/design.html#why-are-there-separate-tuple-and-list-data-types)2605    - [Как реализованы списки?](https://python-all.ru/3.1/faq/design.html#how-are-lists-implemented)2606    - [Как реализованы словари?](https://python-all.ru/3.1/faq/design.html#how-are-dictionaries-implemented)2607    - [Почему ключи словаря должны быть неизменяемыми?](https://python-all.ru/3.1/faq/design.html#why-must-dictionary-keys-be-immutable)2608    - [Почему list.sort() не возвращает отсортированный список?](https://python-all.ru/3.1/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list)2609    - [Как задать и обеспечить соблюдение спецификации интерфейса в Python?](https://python-all.ru/3.1/faq/design.html#how-do-you-specify-and-enforce-an-interface-spec-in-python)2610    - [Почему значения по умолчанию разделяются между объектами?](https://python-all.ru/3.1/faq/design.html#why-are-default-values-shared-between-objects)2611    - [Почему нет goto?](https://python-all.ru/3.1/faq/design.html#why-is-there-no-goto)2612    - [Почему сырые строки (r-строки) не могут заканчиваться обратной косой чертой?](https://python-all.ru/3.1/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash)2613    - [Почему в Python нет оператора with для присваивания атрибутов?](https://python-all.ru/3.1/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments)2614    - [Почему в операторах if/while/def/class требуется двоеточие?](https://python-all.ru/3.1/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements)2615    - [Почему Python разрешает запятые в конце списков и кортежей?](https://python-all.ru/3.1/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples)2616  - [FAQ по библиотекам и расширениям](https://python-all.ru/3.1/faq/library.html)26172618    - [Общие вопросы по библиотекам](https://python-all.ru/3.1/faq/library.html#general-library-questions)2619    - [Типовые задачи](https://python-all.ru/3.1/faq/library.html#common-tasks)2620    - [Потоки](https://python-all.ru/3.1/faq/library.html#threads)2621    - [Ввод и вывод](https://python-all.ru/3.1/faq/library.html#input-and-output)2622    - [Сетевое и интернет-программирование](https://python-all.ru/3.1/faq/library.html#network-internet-programming)2623    - [Базы данных](https://python-all.ru/3.1/faq/library.html#databases)2624    - [Математика и численные методы](https://python-all.ru/3.1/faq/library.html#mathematics-and-numerics)2625  - [FAQ по расширению и встраиванию](https://python-all.ru/3.1/faq/extending.html)26262627    - [Можно ли создавать собственные функции на C?](https://python-all.ru/3.1/faq/extending.html#can-i-create-my-own-functions-in-c)2628    - [Можно ли создавать собственные функции на C++?](https://python-all.ru/3.1/faq/extending.html#id1)2629    - [Писать на C сложно; есть ли альтернативы?](https://python-all.ru/3.1/faq/extending.html#writing-c-is-hard-are-there-any-alternatives)2630    - [Как выполнить произвольные инструкции Python из C?](https://python-all.ru/3.1/faq/extending.html#how-can-i-execute-arbitrary-python-statements-from-c)2631    - [Как вычислить произвольное выражение Python из C?](https://python-all.ru/3.1/faq/extending.html#how-can-i-evaluate-an-arbitrary-python-expression-from-c)2632    - [Как извлечь значения C из объекта Python?](https://python-all.ru/3.1/faq/extending.html#how-do-i-extract-c-values-from-a-python-object)2633    - [Как использовать Py\_BuildValue() для создания кортежа произвольной длины?](https://python-all.ru/3.1/faq/extending.html#how-do-i-use-py-buildvalue-to-create-a-tuple-of-arbitrary-length)2634    - [Как вызвать метод объекта из C?](https://python-all.ru/3.1/faq/extending.html#how-do-i-call-an-object-s-method-from-c)2635    - [Как перехватить вывод PyErr\_Print() (или любого другого вывода в stdout/stderr)?](https://python-all.ru/3.1/faq/extending.html#how-do-i-catch-the-output-from-pyerr-print-or-anything-that-prints-to-stdout-stderr)2636    - [Как получить доступ к модулю, написанному на Python, из C?](https://python-all.ru/3.1/faq/extending.html#how-do-i-access-a-module-written-in-python-from-c)2637    - [Как организовать взаимодействие с объектами C++ из Python?](https://python-all.ru/3.1/faq/extending.html#how-do-i-interface-to-c-objects-from-python)2638    - [Почему make завершается ошибкой после добавления модуля через файл Setup?](https://python-all.ru/3.1/faq/extending.html#i-added-a-module-using-the-setup-file-and-the-make-fails-why)2639    - [Как отлаживать расширение?](https://python-all.ru/3.1/faq/extending.html#how-do-i-debug-an-extension)2640    - [Почему при компиляции модуля Python в Linux отсутствуют некоторые файлы?](https://python-all.ru/3.1/faq/extending.html#i-want-to-compile-a-python-module-on-my-linux-system-but-some-files-are-missing-why)2641    - [Что означает «SystemError: \_PyImport\_FixupExtension: module yourmodule not loaded»?](https://python-all.ru/3.1/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean)2642    - [Как отличить «неполный ввод» от «неверного ввода»?](https://python-all.ru/3.1/faq/extending.html#how-do-i-tell-incomplete-input-from-invalid-input)2643    - [Как найти неопределённые символы g++ \_\_builtin\_new или \_\_pure\_virtual?](https://python-all.ru/3.1/faq/extending.html#how-do-i-find-undefined-g-symbols-builtin-new-or-pure-virtual)2644    - [Можно ли создать класс объекта, в котором часть методов реализована на C, а часть – на Python (например, через наследование)?](https://python-all.ru/3.1/faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance)2645    - [Почему при импорте модуля X возникает ошибка «undefined symbol: PyUnicodeUCS2\*»?](https://python-all.ru/3.1/faq/extending.html#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2)2646  - [FAQ по Python в Windows](https://python-all.ru/3.1/faq/windows.html)26472648    - [Как запустить программу Python в Windows?](https://python-all.ru/3.1/faq/windows.html#how-do-i-run-a-python-program-under-windows)2649    - [Как сделать скрипты Python исполняемыми?](https://python-all.ru/3.1/faq/windows.html#how-do-i-make-python-scripts-executable)2650    - [Почему Python иногда так долго запускается?](https://python-all.ru/3.1/faq/windows.html#why-does-python-sometimes-take-so-long-to-start)2651    - [Где найти Freeze для Windows?](https://python-all.ru/3.1/faq/windows.html#where-is-freeze-for-windows)2652    - [Является ли файл `*.pyd` тем же самым, что и DLL?](https://python-all.ru/3.1/faq/windows.html#is-a-pyd-file-the-same-as-a-dll)2653    - [Как встроить Python в приложение Windows?](https://python-all.ru/3.1/faq/windows.html#how-can-i-embed-python-into-a-windows-application)2654    - [Как использовать Python для CGI?](https://python-all.ru/3.1/faq/windows.html#how-do-i-use-python-for-cgi)2655    - [Как запретить редакторам вставлять табуляцию в исходный код Python?](https://python-all.ru/3.1/faq/windows.html#how-do-i-keep-editors-from-inserting-tabs-into-my-python-source)2656    - [Как проверить нажатие клавиши без блокировки?](https://python-all.ru/3.1/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking)2657    - [Как эмулировать os.kill() в Windows?](https://python-all.ru/3.1/faq/windows.html#how-do-i-emulate-os-kill-in-windows)2658    - [Почему os.path.isdir() не работает с общими каталогами NT?](https://python-all.ru/3.1/faq/windows.html#why-does-os-path-isdir-fail-on-nt-shared-directories)2659    - [cgi.py (или другие CGI-программы) иногда не работают на NT или win95!](https://python-all.ru/3.1/faq/windows.html#cgi-py-or-other-cgi-programming-doesn-t-work-sometimes-on-nt-or-win95)2660    - [Почему os.popen() не работает в PythonWin на NT?](https://python-all.ru/3.1/faq/windows.html#why-doesn-t-os-popen-work-in-pythonwin-on-nt)2661    - [Почему os.popen()/win32pipe.popen() не работают на Win9x?](https://python-all.ru/3.1/faq/windows.html#why-doesn-t-os-popen-win32pipe-popen-work-on-win9x)2662    - [PyRun\_SimpleFile() падает на Windows, но не на Unix; почему?](https://python-all.ru/3.1/faq/windows.html#pyrun-simplefile-crashes-on-windows-but-not-on-unix-why)2663    - [Импорт \_tkinter не удаётся на Windows 95/98: почему?](https://python-all.ru/3.1/faq/windows.html#importing-tkinter-fails-on-windows-95-98-why)2664    - [Как извлечь загруженную документацию в Windows?](https://python-all.ru/3.1/faq/windows.html#how-do-i-extract-the-downloaded-documentation-on-windows)2665    - [Отсутствует cw3215mt.dll (или cw3215.dll)](https://python-all.ru/3.1/faq/windows.html#missing-cw3215mt-dll-or-missing-cw3215-dll)2666    - [Предупреждение о версии CTL3D32 от установщика](https://python-all.ru/3.1/faq/windows.html#warning-about-ctl3d32-version-from-installer)2667  - [Часто задаваемые вопросы о графическом интерфейсе пользователя](https://python-all.ru/3.1/faq/gui.html)26682669    - [Общие вопросы по GUI](https://python-all.ru/3.1/faq/gui.html#general-gui-questions)2670    - [Какие существуют кроссплатформенные GUI-инструментарии для Python?](https://python-all.ru/3.1/faq/gui.html#what-platform-independent-gui-toolkits-exist-for-python)2671    - [Какие существуют платформозависимые GUI-инструментарии для Python?](https://python-all.ru/3.1/faq/gui.html#what-platform-specific-gui-toolkits-exist-for-python)2672    - [Вопросы по Tkinter](https://python-all.ru/3.1/faq/gui.html#tkinter-questions)2673  - [FAQ «Почему Python установлен на моём компьютере?»](https://python-all.ru/3.1/faq/installed.html)26742675    - [Что такое Python?](https://python-all.ru/3.1/faq/installed.html#what-is-python)2676    - [Почему Python установлен на моём компьютере?](https://python-all.ru/3.1/faq/installed.html#why-is-python-installed-on-my-machine)2677    - [Можно ли удалить Python?](https://python-all.ru/3.1/faq/installed.html#can-i-delete-python)2678- [Глоссарий](https://python-all.ru/3.1/glossary.html)2679- [Об этих документах](https://python-all.ru/3.1/about.html)26802681  - [Участники документации Python](https://python-all.ru/3.1/about.html#contributors-to-the-python-documentation)2682- [Сообщение об ошибках](https://python-all.ru/3.1/bugs.html)26832684  - [Ошибки в документации](https://python-all.ru/3.1/bugs.html#documentation-bugs)2685  - [Использование трекера задач Python](https://python-all.ru/3.1/bugs.html#using-the-python-issue-tracker)2686- [Авторские права](https://python-all.ru/3.1/copyright.html)2687- [История и лицензия](https://python-all.ru/3.1/license.html)26882689  - [История программного обеспечения](https://python-all.ru/3.1/license.html#history-of-the-software)2690  - [Условия доступа и использования Python](https://python-all.ru/3.1/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python)2691  - [Лицензии и благодарности для включённого программного обеспечения](https://python-all.ru/3.1/license.html#licenses-and-acknowledgements-for-incorporated-software)26922693    - [Вихрь Мерсенна](https://python-all.ru/3.1/license.html#mersenne-twister)2694    - [Сокеты](https://python-all.ru/3.1/license.html#sockets)2695    - [Управление исключениями с плавающей точкой](https://python-all.ru/3.1/license.html#floating-point-exception-control)2696    - [Асинхронные службы сокетов](https://python-all.ru/3.1/license.html#asynchronous-socket-services)2697    - [Управление cookie](https://python-all.ru/3.1/license.html#cookie-management)2698    - [Трассировка выполнения](https://python-all.ru/3.1/license.html#execution-tracing)2699    - [Функции UUencode и UUdecode](https://python-all.ru/3.1/license.html#uuencode-and-uudecode-functions)2700    - [XML-вызовы удалённых процедур](https://python-all.ru/3.1/license.html#xml-remote-procedure-calls)2701    - [test\_epoll](https://python-all.ru/3.1/license.html#test-epoll)2702    - [Select kqueue](https://python-all.ru/3.1/license.html#select-kqueue)2703    - [strtod and dtoa](https://python-all.ru/3.1/license.html#strtod-and-dtoa)2704    - [OpenSSL](https://python-all.ru/3.1/license.html#openssl)2705    - [expat](https://python-all.ru/3.1/license.html#expat)2706    - [libffi](https://python-all.ru/3.1/license.html#libffi)2707    - [zlib](https://python-all.ru/3.1/license.html#zlib)2708