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

contents.md

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

1> **Источник:** https://python-all.ru/2.7/contents.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Содержание документации Python89- [Что нового в Python](https://python-all.ru/2.7/whatsnew/index.html)1011  - [Что нового в Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html)1213    - [Будущее Python 2.x](https://python-all.ru/2.7/whatsnew/2.7.html#the-future-for-python-2-x)14    - [Изменения в обработке предупреждений об устаревании](https://python-all.ru/2.7/whatsnew/2.7.html#changes-to-the-handling-of-deprecation-warnings)15    - [Возможности Python 3.1](https://python-all.ru/2.7/whatsnew/2.7.html#python-3-1-features)16    - [PEP 372: Добавление упорядоченного словаря в collections](https://python-all.ru/2.7/whatsnew/2.7.html#pep-372-adding-an-ordered-dictionary-to-collections)17    - [PEP 378: Спецификатор формата для разделителя тысяч](https://python-all.ru/2.7/whatsnew/2.7.html#pep-378-format-specifier-for-thousands-separator)18    - [PEP 389: Модуль argparse для разбора командной строки](https://python-all.ru/2.7/whatsnew/2.7.html#pep-389-the-argparse-module-for-parsing-command-lines)19    - [PEP 391: Конфигурация логирования на основе словаря](https://python-all.ru/2.7/whatsnew/2.7.html#pep-391-dictionary-based-configuration-for-logging)20    - [PEP 3106: Представления словаря](https://python-all.ru/2.7/whatsnew/2.7.html#pep-3106-dictionary-views)21    - [PEP 3137: Объект memoryview](https://python-all.ru/2.7/whatsnew/2.7.html#pep-3137-the-memoryview-object)22    - [Прочие изменения языка](https://python-all.ru/2.7/whatsnew/2.7.html#other-language-changes)2324      - [Изменения в интерпретаторе](https://python-all.ru/2.7/whatsnew/2.7.html#interpreter-changes)25      - [Оптимизации](https://python-all.ru/2.7/whatsnew/2.7.html#optimizations)26    - [Новые и улучшенные модули](https://python-all.ru/2.7/whatsnew/2.7.html#new-and-improved-modules)2728      - [Новый модуль: importlib](https://python-all.ru/2.7/whatsnew/2.7.html#new-module-importlib)29      - [Новый модуль: sysconfig](https://python-all.ru/2.7/whatsnew/2.7.html#new-module-sysconfig)30      - [ttk: Тематические виджеты для Tk](https://python-all.ru/2.7/whatsnew/2.7.html#ttk-themed-widgets-for-tk)31      - [Обновлённый модуль: unittest](https://python-all.ru/2.7/whatsnew/2.7.html#updated-module-unittest)32      - [Обновлённый модуль: ElementTree 1.3](https://python-all.ru/2.7/whatsnew/2.7.html#updated-module-elementtree-1-3)33    - [Изменения в сборке и C API](https://python-all.ru/2.7/whatsnew/2.7.html#build-and-c-api-changes)3435      - [Капсулы](https://python-all.ru/2.7/whatsnew/2.7.html#capsules)36      - [Изменения для конкретных платформ: Windows](https://python-all.ru/2.7/whatsnew/2.7.html#port-specific-changes-windows)37      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/2.7/whatsnew/2.7.html#port-specific-changes-mac-os-x)38      - [Изменения для конкретной платформы: FreeBSD](https://python-all.ru/2.7/whatsnew/2.7.html#port-specific-changes-freebsd)39    - [Прочие изменения и исправления](https://python-all.ru/2.7/whatsnew/2.7.html#other-changes-and-fixes)40    - [Переход на Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html#porting-to-python-2-7)41    - [Новые возможности, добавленные в поддерживаемых выпусках Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html#new-features-added-to-python-2-7-maintenance-releases)4243      - [Две новые переменные окружения для режима отладки](https://python-all.ru/2.7/whatsnew/2.7.html#two-new-environment-variables-for-debug-mode)44      - [PEP 434: Исключение для улучшений IDLE во всех ветках](https://python-all.ru/2.7/whatsnew/2.7.html#pep-434-idle-enhancement-exception-for-all-branches)45      - [PEP 466: Улучшения сетевой безопасности для Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7)46      - [PEP 477: Перенос ensurepip (PEP 453) в Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html#pep-477-backport-ensurepip-pep-453-to-python-2-7)4748        - [Автоматическая установка pip по умолчанию](https://python-all.ru/2.7/whatsnew/2.7.html#bootstrapping-pip-by-default)49        - [Изменения в документации](https://python-all.ru/2.7/whatsnew/2.7.html#documentation-changes)50      - [PEP 476: Включение проверки сертификатов по умолчанию для http-клиентов стандартной библиотеки](https://python-all.ru/2.7/whatsnew/2.7.html#pep-476-enabling-certificate-verification-by-default-for-stdlib-http-clients)51      - [PEP 493: Инструменты миграции проверки HTTPS для Python 2.7](https://python-all.ru/2.7/whatsnew/2.7.html#pep-493-https-verification-migration-tools-for-python-2-7)52      - [Новая `make regen-all` цель сборки](https://python-all.ru/2.7/whatsnew/2.7.html#new-make-regen-all-build-target)53      - [Удаление `make touch` цели сборки](https://python-all.ru/2.7/whatsnew/2.7.html#removal-of-make-touch-build-target)54    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.7.html#acknowledgements)55  - [Что нового в Python 2.6](https://python-all.ru/2.7/whatsnew/2.6.html)5657    - [Python 3.0](https://python-all.ru/2.7/whatsnew/2.6.html#python-3-0)58    - [Изменения в процессе разработки](https://python-all.ru/2.7/whatsnew/2.6.html#changes-to-the-development-process)5960      - [Новый трекер ошибок: Roundup](https://python-all.ru/2.7/whatsnew/2.6.html#new-issue-tracker-roundup)61      - [Новый формат документации: reStructuredText с использованием Sphinx](https://python-all.ru/2.7/whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx)62    - [PEP 343: Оператор 'with'](https://python-all.ru/2.7/whatsnew/2.6.html#pep-343-the-with-statement)6364      - [Написание контекстных менеджеров](https://python-all.ru/2.7/whatsnew/2.6.html#writing-context-managers)65      - [Модуль contextlib](https://python-all.ru/2.7/whatsnew/2.6.html#the-contextlib-module)66    - [PEP 366: Явные относительные импорты из главного модуля](https://python-all.ru/2.7/whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module)67    - [PEP 370: Каталог `site-packages` для каждого пользователя](https://python-all.ru/2.7/whatsnew/2.6.html#pep-370-per-user-site-packages-directory)68    - [PEP 371: Пакет `multiprocessing`](https://python-all.ru/2.7/whatsnew/2.6.html#pep-371-the-multiprocessing-package)69    - [PEP 3101: Расширенное форматирование строк](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3101-advanced-string-formatting)70    - [PEP 3105: `print` как функция](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3105-print-as-a-function)71    - [PEP 3110: Изменения в обработке исключений](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3110-exception-handling-changes)72    - [PEP 3112: Байтовые литералы](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3112-byte-literals)73    - [PEP 3116: Новая библиотека ввода-вывода](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3116-new-i-o-library)74    - [PEP 3118: Пересмотренный протокол буферов](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3118-revised-buffer-protocol)75    - [PEP 3119: Абстрактные базовые классы](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3119-abstract-base-classes)76    - [PEP 3127: Поддержка и синтаксис целочисленных литералов](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax)77    - [PEP 3129: Декораторы классов](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3129-class-decorators)78    - [PEP 3141: Иерархия типов для чисел](https://python-all.ru/2.7/whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers)7980      - [Модуль `fractions`](https://python-all.ru/2.7/whatsnew/2.6.html#the-fractions-module)81    - [Прочие изменения языка](https://python-all.ru/2.7/whatsnew/2.6.html#other-language-changes)8283      - [Оптимизации](https://python-all.ru/2.7/whatsnew/2.6.html#optimizations)84      - [Изменения в интерпретаторе](https://python-all.ru/2.7/whatsnew/2.6.html#interpreter-changes)85    - [Новые и улучшенные модули](https://python-all.ru/2.7/whatsnew/2.6.html#new-and-improved-modules)8687      - [Модуль `ast`](https://python-all.ru/2.7/whatsnew/2.6.html#the-ast-module)88      - [Модуль `future_builtins`](https://python-all.ru/2.7/whatsnew/2.6.html#the-future-builtins-module)89      - [Модуль `json`: JavaScript Object Notation](https://python-all.ru/2.7/whatsnew/2.6.html#the-json-module-javascript-object-notation)90      - [Модуль `plistlib`: парсер списков свойств](https://python-all.ru/2.7/whatsnew/2.6.html#the-plistlib-module-a-property-list-parser)91      - [Улучшения ctypes](https://python-all.ru/2.7/whatsnew/2.6.html#ctypes-enhancements)92      - [Улучшенная поддержка SSL](https://python-all.ru/2.7/whatsnew/2.6.html#improved-ssl-support)93    - [Устаревания и удаления](https://python-all.ru/2.7/whatsnew/2.6.html#deprecations-and-removals)94    - [Изменения в сборке и C API](https://python-all.ru/2.7/whatsnew/2.6.html#build-and-c-api-changes)9596      - [Изменения для конкретных платформ: Windows](https://python-all.ru/2.7/whatsnew/2.6.html#port-specific-changes-windows)97      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/2.7/whatsnew/2.6.html#port-specific-changes-mac-os-x)98      - [Изменения для конкретных платформ: IRIX](https://python-all.ru/2.7/whatsnew/2.6.html#port-specific-changes-irix)99    - [Переход на Python 2.6](https://python-all.ru/2.7/whatsnew/2.6.html#porting-to-python-2-6)100    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.6.html#acknowledgements)101  - [Что нового в Python 2.5](https://python-all.ru/2.7/whatsnew/2.5.html)102103    - [PEP 308: Условные выражения](https://python-all.ru/2.7/whatsnew/2.5.html#pep-308-conditional-expressions)104    - [PEP 309: Частичное применение функций](https://python-all.ru/2.7/whatsnew/2.5.html#pep-309-partial-function-application)105    - [PEP 314: Метаданные для пакетов Python v1.1](https://python-all.ru/2.7/whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1)106    - [PEP 328: Абсолютные и относительные импорты](https://python-all.ru/2.7/whatsnew/2.5.html#pep-328-absolute-and-relative-imports)107    - [PEP 338: Выполнение модулей как сценариев](https://python-all.ru/2.7/whatsnew/2.5.html#pep-338-executing-modules-as-scripts)108    - [PEP 341: Единый try/except/finally](https://python-all.ru/2.7/whatsnew/2.5.html#pep-341-unified-try-except-finally)109    - [PEP 342: Новые возможности генераторов](https://python-all.ru/2.7/whatsnew/2.5.html#pep-342-new-generator-features)110    - [PEP 343: Оператор 'with'](https://python-all.ru/2.7/whatsnew/2.5.html#pep-343-the-with-statement)111112      - [Написание контекстных менеджеров](https://python-all.ru/2.7/whatsnew/2.5.html#writing-context-managers)113      - [Модуль contextlib](https://python-all.ru/2.7/whatsnew/2.5.html#the-contextlib-module)114    - [PEP 352: Исключения как классы нового стиля](https://python-all.ru/2.7/whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes)115    - [PEP 353: Использование ssize\_t в качестве типа индекса](https://python-all.ru/2.7/whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type)116    - [PEP 357: Метод '\_\_index\_\_'](https://python-all.ru/2.7/whatsnew/2.5.html#pep-357-the-index-method)117    - [Прочие изменения языка](https://python-all.ru/2.7/whatsnew/2.5.html#other-language-changes)118119      - [Изменения в интерактивном интерпретаторе](https://python-all.ru/2.7/whatsnew/2.5.html#interactive-interpreter-changes)120      - [Оптимизации](https://python-all.ru/2.7/whatsnew/2.5.html#optimizations)121    - [Новые, улучшенные и удалённые модули](https://python-all.ru/2.7/whatsnew/2.5.html#new-improved-and-removed-modules)122123      - [Пакет ctypes](https://python-all.ru/2.7/whatsnew/2.5.html#the-ctypes-package)124      - [Пакет ElementTree](https://python-all.ru/2.7/whatsnew/2.5.html#the-elementtree-package)125      - [Пакет hashlib](https://python-all.ru/2.7/whatsnew/2.5.html#the-hashlib-package)126      - [Пакет sqlite3](https://python-all.ru/2.7/whatsnew/2.5.html#the-sqlite3-package)127      - [Пакет wsgiref](https://python-all.ru/2.7/whatsnew/2.5.html#the-wsgiref-package)128    - [Изменения в сборке и C API](https://python-all.ru/2.7/whatsnew/2.5.html#build-and-c-api-changes)129130      - [Изменения для конкретных платформ](https://python-all.ru/2.7/whatsnew/2.5.html#port-specific-changes)131    - [Перенос на Python 2.5](https://python-all.ru/2.7/whatsnew/2.5.html#porting-to-python-2-5)132    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.5.html#acknowledgements)133  - [Что нового в Python 2.4](https://python-all.ru/2.7/whatsnew/2.4.html)134135    - [PEP 218: Встроенные объекты множеств](https://python-all.ru/2.7/whatsnew/2.4.html#pep-218-built-in-set-objects)136    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/2.7/whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers)137    - [PEP 289: Генераторные выражения](https://python-all.ru/2.7/whatsnew/2.4.html#pep-289-generator-expressions)138    - [PEP 292: Упрощённая подстановка строк](https://python-all.ru/2.7/whatsnew/2.4.html#pep-292-simpler-string-substitutions)139    - [PEP 318: Декораторы для функций и методов](https://python-all.ru/2.7/whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods)140    - [PEP 322: Обратная итерация](https://python-all.ru/2.7/whatsnew/2.4.html#pep-322-reverse-iteration)141    - [PEP 324: Новый модуль подпроцесса](https://python-all.ru/2.7/whatsnew/2.4.html#pep-324-new-subprocess-module)142    - [PEP 327: Тип данных Decimal](https://python-all.ru/2.7/whatsnew/2.4.html#pep-327-decimal-data-type)143144      - [Зачем нужен Decimal?](https://python-all.ru/2.7/whatsnew/2.4.html#why-is-decimal-needed)145      - [Тип `Decimal`](https://python-all.ru/2.7/whatsnew/2.4.html#the-decimal-type)146      - [Тип `Context`](https://python-all.ru/2.7/whatsnew/2.4.html#the-context-type)147    - [PEP 328: Многострочные импорты](https://python-all.ru/2.7/whatsnew/2.4.html#pep-328-multi-line-imports)148    - [PEP 331: Независящие от локали преобразования float/строк](https://python-all.ru/2.7/whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions)149    - [Прочие изменения языка](https://python-all.ru/2.7/whatsnew/2.4.html#other-language-changes)150151      - [Оптимизации](https://python-all.ru/2.7/whatsnew/2.4.html#optimizations)152    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/2.7/whatsnew/2.4.html#new-improved-and-deprecated-modules)153154      - [cookielib](https://python-all.ru/2.7/whatsnew/2.4.html#cookielib)155      - [doctest](https://python-all.ru/2.7/whatsnew/2.4.html#doctest)156    - [Изменения в сборке и C API](https://python-all.ru/2.7/whatsnew/2.4.html#build-and-c-api-changes)157158      - [Изменения для конкретных платформ](https://python-all.ru/2.7/whatsnew/2.4.html#port-specific-changes)159    - [Перенос на Python 2.4](https://python-all.ru/2.7/whatsnew/2.4.html#porting-to-python-2-4)160    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.4.html#acknowledgements)161  - [Что нового в Python 2.3](https://python-all.ru/2.7/whatsnew/2.3.html)162163    - [PEP 218: Стандартный тип set](https://python-all.ru/2.7/whatsnew/2.3.html#pep-218-a-standard-set-datatype)164    - [PEP 255: простые генераторы](https://python-all.ru/2.7/whatsnew/2.3.html#pep-255-simple-generators)165    - [PEP 263: Кодировки исходного кода](https://python-all.ru/2.7/whatsnew/2.3.html#pep-263-source-code-encodings)166    - [PEP 273: Импорт модулей из ZIP-архивов](https://python-all.ru/2.7/whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives)167    - [PEP 277: Поддержка имён файлов в Unicode для Windows NT](https://python-all.ru/2.7/whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt)168    - [PEP 278: Универсальная поддержка символов новой строки](https://python-all.ru/2.7/whatsnew/2.3.html#pep-278-universal-newline-support)169    - [PEP 279: enumerate()](https://python-all.ru/2.7/whatsnew/2.3.html#pep-279-enumerate)170    - [PEP 282: Пакет logging](https://python-all.ru/2.7/whatsnew/2.3.html#pep-282-the-logging-package)171    - [PEP 285: Булев тип](https://python-all.ru/2.7/whatsnew/2.3.html#pep-285-a-boolean-type)172    - [PEP 293: Колбэки обработки ошибок кодеков](https://python-all.ru/2.7/whatsnew/2.3.html#pep-293-codec-error-handling-callbacks)173    - [PEP 301: Индекс пакетов и метаданные для Distutils](https://python-all.ru/2.7/whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils)174    - [PEP 302: Новые хуки импорта](https://python-all.ru/2.7/whatsnew/2.3.html#pep-302-new-import-hooks)175    - [PEP 305: Файлы с разделителями-запятыми](https://python-all.ru/2.7/whatsnew/2.3.html#pep-305-comma-separated-files)176    - [PEP 307: Улучшения pickle](https://python-all.ru/2.7/whatsnew/2.3.html#pep-307-pickle-enhancements)177    - [Расширенные срезы](https://python-all.ru/2.7/whatsnew/2.3.html#extended-slices)178    - [Прочие изменения языка](https://python-all.ru/2.7/whatsnew/2.3.html#other-language-changes)179180      - [Изменения в строках](https://python-all.ru/2.7/whatsnew/2.3.html#string-changes)181      - [Оптимизации](https://python-all.ru/2.7/whatsnew/2.3.html#optimizations)182    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/2.7/whatsnew/2.3.html#new-improved-and-deprecated-modules)183184      - [Тип даты/времени](https://python-all.ru/2.7/whatsnew/2.3.html#date-time-type)185      - [Модуль optparse](https://python-all.ru/2.7/whatsnew/2.3.html#the-optparse-module)186    - [Pymalloc: Специализированный аллокатор объектов](https://python-all.ru/2.7/whatsnew/2.3.html#pymalloc-a-specialized-object-allocator)187    - [Изменения в сборке и C API](https://python-all.ru/2.7/whatsnew/2.3.html#build-and-c-api-changes)188189      - [Изменения для конкретных платформ](https://python-all.ru/2.7/whatsnew/2.3.html#port-specific-changes)190    - [Прочие изменения и исправления](https://python-all.ru/2.7/whatsnew/2.3.html#other-changes-and-fixes)191    - [Перенос на Python 2.3](https://python-all.ru/2.7/whatsnew/2.3.html#porting-to-python-2-3)192    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.3.html#acknowledgements)193  - [Что нового в Python 2.2](https://python-all.ru/2.7/whatsnew/2.2.html)194195    - [Введение](https://python-all.ru/2.7/whatsnew/2.2.html#introduction)196    - [PEP 252 и 253: изменения типов и классов](https://python-all.ru/2.7/whatsnew/2.2.html#peps-252-and-253-type-and-class-changes)197198      - [Старые и новые классы](https://python-all.ru/2.7/whatsnew/2.2.html#old-and-new-classes)199      - [Дескрипторы](https://python-all.ru/2.7/whatsnew/2.2.html#descriptors)200      - [Множественное наследование: правило ромба](https://python-all.ru/2.7/whatsnew/2.2.html#multiple-inheritance-the-diamond-rule)201      - [Доступ к атрибутам](https://python-all.ru/2.7/whatsnew/2.2.html#attribute-access)202      - [Связанные ссылки](https://python-all.ru/2.7/whatsnew/2.2.html#related-links)203    - [PEP 234: итераторы](https://python-all.ru/2.7/whatsnew/2.2.html#pep-234-iterators)204    - [PEP 255: простые генераторы](https://python-all.ru/2.7/whatsnew/2.2.html#pep-255-simple-generators)205    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/2.7/whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers)206    - [PEP 238: изменение оператора деления](https://python-all.ru/2.7/whatsnew/2.2.html#pep-238-changing-the-division-operator)207    - [Изменения в Unicode](https://python-all.ru/2.7/whatsnew/2.2.html#unicode-changes)208    - [PEP 227: вложенные области видимости](https://python-all.ru/2.7/whatsnew/2.2.html#pep-227-nested-scopes)209    - [Новые и улучшенные модули](https://python-all.ru/2.7/whatsnew/2.2.html#new-and-improved-modules)210    - [Изменения и исправления интерпретатора](https://python-all.ru/2.7/whatsnew/2.2.html#interpreter-changes-and-fixes)211    - [Прочие изменения и исправления](https://python-all.ru/2.7/whatsnew/2.2.html#other-changes-and-fixes)212    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.2.html#acknowledgements)213  - [Что нового в Python 2.1](https://python-all.ru/2.7/whatsnew/2.1.html)214215    - [Введение](https://python-all.ru/2.7/whatsnew/2.1.html#introduction)216    - [PEP 227: вложенные области видимости](https://python-all.ru/2.7/whatsnew/2.1.html#pep-227-nested-scopes)217    - [PEP 236: директивы \_\_future\_\_](https://python-all.ru/2.7/whatsnew/2.1.html#pep-236-future-directives)218    - [PEP 207: расширенные сравнения](https://python-all.ru/2.7/whatsnew/2.1.html#pep-207-rich-comparisons)219    - [PEP 230: инфраструктура предупреждений](https://python-all.ru/2.7/whatsnew/2.1.html#pep-230-warning-framework)220    - [PEP 229: новая система сборки](https://python-all.ru/2.7/whatsnew/2.1.html#pep-229-new-build-system)221    - [PEP 205: слабые ссылки](https://python-all.ru/2.7/whatsnew/2.1.html#pep-205-weak-references)222    - [PEP 232: атрибуты функций](https://python-all.ru/2.7/whatsnew/2.1.html#pep-232-function-attributes)223    - [PEP 235: импорт модулей на платформах, нечувствительных к регистру](https://python-all.ru/2.7/whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms)224    - [PEP 217: интерактивный перехватчик вывода](https://python-all.ru/2.7/whatsnew/2.1.html#pep-217-interactive-display-hook)225    - [PEP 208: новая модель приведения типов](https://python-all.ru/2.7/whatsnew/2.1.html#pep-208-new-coercion-model)226    - [PEP 241: метаданные в пакетах Python](https://python-all.ru/2.7/whatsnew/2.1.html#pep-241-metadata-in-python-packages)227    - [Новые и улучшенные модули](https://python-all.ru/2.7/whatsnew/2.1.html#new-and-improved-modules)228    - [Прочие изменения и исправления](https://python-all.ru/2.7/whatsnew/2.1.html#other-changes-and-fixes)229    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.1.html#acknowledgements)230  - [Что нового в Python 2.0](https://python-all.ru/2.7/whatsnew/2.0.html)231232    - [Введение](https://python-all.ru/2.7/whatsnew/2.0.html#introduction)233    - [А что насчёт Python 1.6?](https://python-all.ru/2.7/whatsnew/2.0.html#what-about-python-1-6)234    - [Новый процесс разработки](https://python-all.ru/2.7/whatsnew/2.0.html#new-development-process)235    - [Юникод](https://python-all.ru/2.7/whatsnew/2.0.html#unicode)236    - [Списковые включения](https://python-all.ru/2.7/whatsnew/2.0.html#list-comprehensions)237    - [Расширенное присваивание](https://python-all.ru/2.7/whatsnew/2.0.html#augmented-assignment)238    - [Методы строк](https://python-all.ru/2.7/whatsnew/2.0.html#string-methods)239    - [Сборка мусора циклических ссылок](https://python-all.ru/2.7/whatsnew/2.0.html#garbage-collection-of-cycles)240    - [Другие изменения ядра](https://python-all.ru/2.7/whatsnew/2.0.html#other-core-changes)241242      - [Мелкие изменения языка](https://python-all.ru/2.7/whatsnew/2.0.html#minor-language-changes)243      - [Изменения встроенных функций](https://python-all.ru/2.7/whatsnew/2.0.html#changes-to-built-in-functions)244    - [Перенос на 2.0](https://python-all.ru/2.7/whatsnew/2.0.html#porting-to-2-0)245    - [Изменения в расширении/встраивании](https://python-all.ru/2.7/whatsnew/2.0.html#extending-embedding-changes)246    - [Distutils: упрощение установки модулей](https://python-all.ru/2.7/whatsnew/2.0.html#distutils-making-modules-easy-to-install)247    - [Модули XML](https://python-all.ru/2.7/whatsnew/2.0.html#xml-modules)248249      - [Поддержка SAX2](https://python-all.ru/2.7/whatsnew/2.0.html#sax2-support)250      - [Поддержка DOM](https://python-all.ru/2.7/whatsnew/2.0.html#dom-support)251      - [Связь с PyXML](https://python-all.ru/2.7/whatsnew/2.0.html#relationship-to-pyxml)252    - [Изменения модулей](https://python-all.ru/2.7/whatsnew/2.0.html#module-changes)253    - [Новые модули](https://python-all.ru/2.7/whatsnew/2.0.html#new-modules)254    - [Улучшения IDLE](https://python-all.ru/2.7/whatsnew/2.0.html#idle-improvements)255    - [Удалённые и устаревшие модули](https://python-all.ru/2.7/whatsnew/2.0.html#deleted-and-deprecated-modules)256    - [Благодарности](https://python-all.ru/2.7/whatsnew/2.0.html#acknowledgements)257- [Учебник Python](https://python-all.ru/2.7/tutorial/index.html)258259  - [1. Введение](https://python-all.ru/2.7/tutorial/appetite.html)260  - [2. Использование интерпретатора Python](https://python-all.ru/2.7/tutorial/interpreter.html)261262    - [2.1. Запуск интерпретатора](https://python-all.ru/2.7/tutorial/interpreter.html#invoking-the-interpreter)263264      - [2.1.1. Передача аргументов](https://python-all.ru/2.7/tutorial/interpreter.html#argument-passing)265      - [2.1.2. Интерактивный режим](https://python-all.ru/2.7/tutorial/interpreter.html#interactive-mode)266    - [2.2. Интерпретатор и его окружение](https://python-all.ru/2.7/tutorial/interpreter.html#the-interpreter-and-its-environment)267268      - [2.2.1. Кодировка исходного кода](https://python-all.ru/2.7/tutorial/interpreter.html#source-code-encoding)269  - [3. Неформальное введение в Python](https://python-all.ru/2.7/tutorial/introduction.html)270271    - [3.1. Использование Python в качестве калькулятора](https://python-all.ru/2.7/tutorial/introduction.html#using-python-as-a-calculator)272273      - [3.1.1. Числа](https://python-all.ru/2.7/tutorial/introduction.html#numbers)274      - [3.1.2. Строки](https://python-all.ru/2.7/tutorial/introduction.html#strings)275      - [3.1.3. Строки Unicode](https://python-all.ru/2.7/tutorial/introduction.html#unicode-strings)276      - [3.1.4. Списки](https://python-all.ru/2.7/tutorial/introduction.html#lists)277    - [3.2. Первые шаги к программированию](https://python-all.ru/2.7/tutorial/introduction.html#first-steps-towards-programming)278  - [4. Дополнительные средства управления потоком](https://python-all.ru/2.7/tutorial/controlflow.html)279280    - [4.1. `if` Инструкции](https://python-all.ru/2.7/tutorial/controlflow.html#if-statements)281    - [4.2. `for` Инструкции](https://python-all.ru/2.7/tutorial/controlflow.html#for-statements)282    - [4.3. Функция `range()`](https://python-all.ru/2.7/tutorial/controlflow.html#the-range-function)283    - [4.4. Инструкции `break` и `continue`, а также предложения `else` в циклах](https://python-all.ru/2.7/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops)284    - [4.5. Инструкции `pass`](https://python-all.ru/2.7/tutorial/controlflow.html#pass-statements)285    - [4.6. Определение функций](https://python-all.ru/2.7/tutorial/controlflow.html#defining-functions)286    - [4.7. Подробнее об определении функций](https://python-all.ru/2.7/tutorial/controlflow.html#more-on-defining-functions)287288      - [4.7.1. Значения аргументов по умолчанию](https://python-all.ru/2.7/tutorial/controlflow.html#default-argument-values)289      - [4.7.2. Именованные аргументы](https://python-all.ru/2.7/tutorial/controlflow.html#keyword-arguments)290      - [4.7.3. Произвольные списки аргументов](https://python-all.ru/2.7/tutorial/controlflow.html#arbitrary-argument-lists)291      - [4.7.4. Распаковка списков аргументов](https://python-all.ru/2.7/tutorial/controlflow.html#unpacking-argument-lists)292      - [4.7.5. Лямбда-выражения](https://python-all.ru/2.7/tutorial/controlflow.html#lambda-expressions)293      - [4.7.6. Строки документации](https://python-all.ru/2.7/tutorial/controlflow.html#documentation-strings)294    - [4.8. Интермеццо: стиль кодирования](https://python-all.ru/2.7/tutorial/controlflow.html#intermezzo-coding-style)295  - [5. Структуры данных](https://python-all.ru/2.7/tutorial/datastructures.html)296297    - [5.1. Подробнее о списках](https://python-all.ru/2.7/tutorial/datastructures.html#more-on-lists)298299      - [5.1.1. Использование списков как стеков](https://python-all.ru/2.7/tutorial/datastructures.html#using-lists-as-stacks)300      - [5.1.2. Использование списков как очередей](https://python-all.ru/2.7/tutorial/datastructures.html#using-lists-as-queues)301      - [5.1.3. Инструменты функционального программирования](https://python-all.ru/2.7/tutorial/datastructures.html#functional-programming-tools)302      - [5.1.4. Списковые включения](https://python-all.ru/2.7/tutorial/datastructures.html#list-comprehensions)303304        - [5.1.4.1. Вложенные списковые включения](https://python-all.ru/2.7/tutorial/datastructures.html#nested-list-comprehensions)305    - [5.2. Инструкция `del`](https://python-all.ru/2.7/tutorial/datastructures.html#the-del-statement)306    - [5.3. Кортежи и последовательности](https://python-all.ru/2.7/tutorial/datastructures.html#tuples-and-sequences)307    - [5.4. Множества](https://python-all.ru/2.7/tutorial/datastructures.html#sets)308    - [5.5. Словари](https://python-all.ru/2.7/tutorial/datastructures.html#dictionaries)309    - [5.6. Приёмы работы с циклами](https://python-all.ru/2.7/tutorial/datastructures.html#looping-techniques)310    - [5.7. Подробнее об условиях](https://python-all.ru/2.7/tutorial/datastructures.html#more-on-conditions)311    - [5.8. Сравнение последовательностей и других типов](https://python-all.ru/2.7/tutorial/datastructures.html#comparing-sequences-and-other-types)312  - [6. Модули](https://python-all.ru/2.7/tutorial/modules.html)313314    - [6.1. Подробнее о модулях](https://python-all.ru/2.7/tutorial/modules.html#more-on-modules)315316      - [6.1.1. Запуск модулей как скриптов](https://python-all.ru/2.7/tutorial/modules.html#executing-modules-as-scripts)317      - [6.1.2. Путь поиска модулей](https://python-all.ru/2.7/tutorial/modules.html#the-module-search-path)318      - [6.1.3. «Скомпилированные» файлы Python](https://python-all.ru/2.7/tutorial/modules.html#compiled-python-files)319    - [6.2. Стандартные модули](https://python-all.ru/2.7/tutorial/modules.html#standard-modules)320    - [6.3. Функция `dir()`](https://python-all.ru/2.7/tutorial/modules.html#the-dir-function)321    - [6.4. Пакеты](https://python-all.ru/2.7/tutorial/modules.html#packages)322323      - [6.4.1. Импорт \* из пакета](https://python-all.ru/2.7/tutorial/modules.html#importing-from-a-package)324      - [6.4.2. Ссылки внутри пакета](https://python-all.ru/2.7/tutorial/modules.html#intra-package-references)325      - [6.4.3. Пакеты в нескольких каталогах](https://python-all.ru/2.7/tutorial/modules.html#packages-in-multiple-directories)326  - [7. Ввод и вывод](https://python-all.ru/2.7/tutorial/inputoutput.html)327328    - [7.1. Более сложное форматирование вывода](https://python-all.ru/2.7/tutorial/inputoutput.html#fancier-output-formatting)329330      - [7.1.1. Старое форматирование строк](https://python-all.ru/2.7/tutorial/inputoutput.html#old-string-formatting)331    - [7.2. Чтение и запись файлов](https://python-all.ru/2.7/tutorial/inputoutput.html#reading-and-writing-files)332333      - [7.2.1. Методы файловых объектов](https://python-all.ru/2.7/tutorial/inputoutput.html#methods-of-file-objects)334      - [7.2.2. Сохранение структурированных данных с помощью `json`](https://python-all.ru/2.7/tutorial/inputoutput.html#saving-structured-data-with-json)335  - [8. Ошибки и исключения](https://python-all.ru/2.7/tutorial/errors.html)336337    - [8.1. Синтаксические ошибки](https://python-all.ru/2.7/tutorial/errors.html#syntax-errors)338    - [8.2. Исключения](https://python-all.ru/2.7/tutorial/errors.html#exceptions)339    - [8.3. Обработка исключений](https://python-all.ru/2.7/tutorial/errors.html#handling-exceptions)340    - [8.4. Возбуждение исключений](https://python-all.ru/2.7/tutorial/errors.html#raising-exceptions)341    - [8.5. Пользовательские исключения](https://python-all.ru/2.7/tutorial/errors.html#user-defined-exceptions)342    - [8.6. Определение действий по очистке](https://python-all.ru/2.7/tutorial/errors.html#defining-clean-up-actions)343    - [8.7. Предопределённые действия по очистке](https://python-all.ru/2.7/tutorial/errors.html#predefined-clean-up-actions)344  - [9. Классы](https://python-all.ru/2.7/tutorial/classes.html)345346    - [9.1. Несколько слов об именах и объектах](https://python-all.ru/2.7/tutorial/classes.html#a-word-about-names-and-objects)347    - [9.2. Области видимости и пространства имён Python](https://python-all.ru/2.7/tutorial/classes.html#python-scopes-and-namespaces)348    - [9.3. Первое знакомство с классами](https://python-all.ru/2.7/tutorial/classes.html#a-first-look-at-classes)349350      - [9.3.1. Синтаксис определения класса](https://python-all.ru/2.7/tutorial/classes.html#class-definition-syntax)351      - [9.3.2. Объекты классов](https://python-all.ru/2.7/tutorial/classes.html#class-objects)352      - [9.3.3. Объекты экземпляров](https://python-all.ru/2.7/tutorial/classes.html#instance-objects)353      - [9.3.4. Объекты методов](https://python-all.ru/2.7/tutorial/classes.html#method-objects)354      - [9.3.5. Переменные класса и экземпляра](https://python-all.ru/2.7/tutorial/classes.html#class-and-instance-variables)355    - [9.4. Разные замечания](https://python-all.ru/2.7/tutorial/classes.html#random-remarks)356    - [9.5. Наследование](https://python-all.ru/2.7/tutorial/classes.html#inheritance)357358      - [9.5.1. Множественное наследование](https://python-all.ru/2.7/tutorial/classes.html#multiple-inheritance)359    - [9.6. Приватные переменные и локальные ссылки класса](https://python-all.ru/2.7/tutorial/classes.html#private-variables-and-class-local-references)360    - [9.7. Разное](https://python-all.ru/2.7/tutorial/classes.html#odds-and-ends)361    - [9.8. Исключения – тоже классы](https://python-all.ru/2.7/tutorial/classes.html#exceptions-are-classes-too)362    - [9.9. Итераторы](https://python-all.ru/2.7/tutorial/classes.html#iterators)363    - [9.10. Генераторы](https://python-all.ru/2.7/tutorial/classes.html#generators)364    - [9.11. Генераторные выражения](https://python-all.ru/2.7/tutorial/classes.html#generator-expressions)365  - [10. Краткий обзор стандартной библиотеки](https://python-all.ru/2.7/tutorial/stdlib.html)366367    - [10.1. Интерфейс операционной системы](https://python-all.ru/2.7/tutorial/stdlib.html#operating-system-interface)368    - [10.2. Файловые шаблоны](https://python-all.ru/2.7/tutorial/stdlib.html#file-wildcards)369    - [10.3. Аргументы командной строки](https://python-all.ru/2.7/tutorial/stdlib.html#command-line-arguments)370    - [10.4. Перенаправление вывода ошибок и завершение программы](https://python-all.ru/2.7/tutorial/stdlib.html#error-output-redirection-and-program-termination)371    - [10.5. Поиск по шаблону в строках](https://python-all.ru/2.7/tutorial/stdlib.html#string-pattern-matching)372    - [10.6. Математика](https://python-all.ru/2.7/tutorial/stdlib.html#mathematics)373    - [10.7. Доступ в Интернет](https://python-all.ru/2.7/tutorial/stdlib.html#internet-access)374    - [10.8. Даты и время](https://python-all.ru/2.7/tutorial/stdlib.html#dates-and-times)375    - [10.9. Сжатие данных](https://python-all.ru/2.7/tutorial/stdlib.html#data-compression)376    - [10.10. Измерение производительности](https://python-all.ru/2.7/tutorial/stdlib.html#performance-measurement)377    - [10.11. Контроль качества](https://python-all.ru/2.7/tutorial/stdlib.html#quality-control)378    - [10.12. Батарейки в комплекте](https://python-all.ru/2.7/tutorial/stdlib.html#batteries-included)379  - [11. Краткий обзор стандартной библиотеки – Часть II](https://python-all.ru/2.7/tutorial/stdlib2.html)380381    - [11.1. Форматирование вывода](https://python-all.ru/2.7/tutorial/stdlib2.html#output-formatting)382    - [11.2. Шаблоны](https://python-all.ru/2.7/tutorial/stdlib2.html#templating)383    - [11.3. Работа с двоичными данными и структурами записей](https://python-all.ru/2.7/tutorial/stdlib2.html#working-with-binary-data-record-layouts)384    - [11.4. Многопоточность](https://python-all.ru/2.7/tutorial/stdlib2.html#multi-threading)385    - [11.5. Логирование](https://python-all.ru/2.7/tutorial/stdlib2.html#logging)386    - [11.6. Слабые ссылки](https://python-all.ru/2.7/tutorial/stdlib2.html#weak-references)387    - [11.7. Инструменты для работы со списками](https://python-all.ru/2.7/tutorial/stdlib2.html#tools-for-working-with-lists)388    - [11.8. Десятичная арифметика с плавающей запятой](https://python-all.ru/2.7/tutorial/stdlib2.html#decimal-floating-point-arithmetic)389  - [12. Что дальше?](https://python-all.ru/2.7/tutorial/whatnow.html)390  - [13. Интерактивное редактирование ввода и подстановка истории](https://python-all.ru/2.7/tutorial/interactive.html)391392    - [13.1. Редактирование строк](https://python-all.ru/2.7/tutorial/interactive.html#line-editing)393    - [13.2. Подстановка истории](https://python-all.ru/2.7/tutorial/interactive.html#history-substitution)394    - [13.3. Привязки клавиш](https://python-all.ru/2.7/tutorial/interactive.html#key-bindings)395    - [13.4. Альтернативы интерактивному интерпретатору](https://python-all.ru/2.7/tutorial/interactive.html#alternatives-to-the-interactive-interpreter)396  - [14. Арифметика с плавающей запятой: проблемы и ограничения](https://python-all.ru/2.7/tutorial/floatingpoint.html)397398    - [14.1. Ошибка представления](https://python-all.ru/2.7/tutorial/floatingpoint.html#representation-error)399  - [15. Приложение](https://python-all.ru/2.7/tutorial/appendix.html)400401    - [15.1. Интерактивный режим](https://python-all.ru/2.7/tutorial/appendix.html#interactive-mode)402403      - [15.1.1. Обработка ошибок](https://python-all.ru/2.7/tutorial/appendix.html#error-handling)404      - [15.1.2. Исполняемые сценарии Python](https://python-all.ru/2.7/tutorial/appendix.html#executable-python-scripts)405      - [15.1.3. Файл интерактивного запуска](https://python-all.ru/2.7/tutorial/appendix.html#the-interactive-startup-file)406      - [15.1.4. Модули настройки](https://python-all.ru/2.7/tutorial/appendix.html#the-customization-modules)407- [Настройка и использование Python](https://python-all.ru/2.7/using/index.html)408409  - [1. Командная строка и окружение](https://python-all.ru/2.7/using/cmdline.html)410411    - [1.1. Командная строка](https://python-all.ru/2.7/using/cmdline.html#command-line)412413      - [1.1.1. Параметры интерфейса](https://python-all.ru/2.7/using/cmdline.html#interface-options)414      - [1.1.2. Общие параметры](https://python-all.ru/2.7/using/cmdline.html#generic-options)415      - [1.1.3. Прочие параметры](https://python-all.ru/2.7/using/cmdline.html#miscellaneous-options)416      - [1.1.4. Опции, которые не следует использовать](https://python-all.ru/2.7/using/cmdline.html#options-you-shouldn-t-use)417    - [1.2. Переменные окружения](https://python-all.ru/2.7/using/cmdline.html#environment-variables)418419      - [1.2.1. Переменные режима отладки](https://python-all.ru/2.7/using/cmdline.html#debug-mode-variables)420  - [2. Использование Python на платформах Unix](https://python-all.ru/2.7/using/unix.html)421422    - [2.1. Получение и установка последней версии Python](https://python-all.ru/2.7/using/unix.html#getting-and-installing-the-latest-version-of-python)423424      - [2.1.1. В Linux](https://python-all.ru/2.7/using/unix.html#on-linux)425      - [2.1.2. В FreeBSD и OpenBSD](https://python-all.ru/2.7/using/unix.html#on-freebsd-and-openbsd)426      - [2.1.3. В OpenSolaris](https://python-all.ru/2.7/using/unix.html#on-opensolaris)427    - [2.2. Сборка Python](https://python-all.ru/2.7/using/unix.html#building-python)428    - [2.3. Пути и файлы, связанные с Python](https://python-all.ru/2.7/using/unix.html#python-related-paths-and-files)429    - [2.4. Прочее](https://python-all.ru/2.7/using/unix.html#miscellaneous)430    - [2.5. Редакторы и IDE](https://python-all.ru/2.7/using/unix.html#editors-and-ides)431  - [3. Использование Python в Windows](https://python-all.ru/2.7/using/windows.html)432433    - [3.1. Установка Python](https://python-all.ru/2.7/using/windows.html#installing-python)434    - [3.2. Альтернативные сборки](https://python-all.ru/2.7/using/windows.html#alternative-bundles)435    - [3.3. Настройка Python](https://python-all.ru/2.7/using/windows.html#configuring-python)436437      - [3.3.1. Экскурс: Установка переменных окружения](https://python-all.ru/2.7/using/windows.html#excursus-setting-environment-variables)438      - [3.3.2. Поиск исполняемого файла Python](https://python-all.ru/2.7/using/windows.html#finding-the-python-executable)439      - [3.3.3. Поиск модулей](https://python-all.ru/2.7/using/windows.html#finding-modules)440      - [3.3.4. Выполнение скриптов](https://python-all.ru/2.7/using/windows.html#executing-scripts)441    - [3.4. Дополнительные модули](https://python-all.ru/2.7/using/windows.html#additional-modules)442443      - [3.4.1. PyWin32](https://python-all.ru/2.7/using/windows.html#pywin32)444      - [3.4.2. Py2exe](https://python-all.ru/2.7/using/windows.html#py2exe)445      - [3.4.3. WConio](https://python-all.ru/2.7/using/windows.html#wconio)446    - [3.5. Компиляция Python в Windows](https://python-all.ru/2.7/using/windows.html#compiling-python-on-windows)447    - [3.6. Другие ресурсы](https://python-all.ru/2.7/using/windows.html#other-resources)448  - [4. Использование Python на Macintosh](https://python-all.ru/2.7/using/mac.html)449450    - [4.1. Получение и установка MacPython](https://python-all.ru/2.7/using/mac.html#getting-and-installing-macpython)451452      - [4.1.1. Как запустить скрипт Python](https://python-all.ru/2.7/using/mac.html#how-to-run-a-python-script)453      - [4.1.2. Запуск скриптов с графическим интерфейсом](https://python-all.ru/2.7/using/mac.html#running-scripts-with-a-gui)454      - [4.1.3. Конфигурация](https://python-all.ru/2.7/using/mac.html#configuration)455    - [4.2. IDE](https://python-all.ru/2.7/using/mac.html#the-ide)456    - [4.3. Установка дополнительных пакетов Python](https://python-all.ru/2.7/using/mac.html#installing-additional-python-packages)457    - [4.4. Программирование графического интерфейса на Mac](https://python-all.ru/2.7/using/mac.html#gui-programming-on-the-mac)458    - [4.5. Распространение приложений Python на Mac](https://python-all.ru/2.7/using/mac.html#distributing-python-applications-on-the-mac)459    - [4.6. Прочие ресурсы](https://python-all.ru/2.7/using/mac.html#other-resources)460- [Справочник по языку Python](https://python-all.ru/2.7/reference/index.html)461462  - [1. Введение](https://python-all.ru/2.7/reference/introduction.html)463464    - [1.1. Альтернативные реализации](https://python-all.ru/2.7/reference/introduction.html#alternate-implementations)465    - [1.2. Обозначения](https://python-all.ru/2.7/reference/introduction.html#notation)466  - [2. Лексический анализ](https://python-all.ru/2.7/reference/lexical_analysis.html)467468    - [2.1. Структура строк](https://python-all.ru/2.7/reference/lexical_analysis.html#line-structure)469470      - [2.1.1. Логические строки](https://python-all.ru/2.7/reference/lexical_analysis.html#logical-lines)471      - [2.1.2. Физические строки](https://python-all.ru/2.7/reference/lexical_analysis.html#physical-lines)472      - [2.1.3. Комментарии](https://python-all.ru/2.7/reference/lexical_analysis.html#comments)473      - [2.1.4. Объявление кодировки](https://python-all.ru/2.7/reference/lexical_analysis.html#encoding-declarations)474      - [2.1.5. Явное объединение строк](https://python-all.ru/2.7/reference/lexical_analysis.html#explicit-line-joining)475      - [2.1.6. Неявное объединение строк](https://python-all.ru/2.7/reference/lexical_analysis.html#implicit-line-joining)476      - [2.1.7. Пустые строки](https://python-all.ru/2.7/reference/lexical_analysis.html#blank-lines)477      - [2.1.8. Отступы](https://python-all.ru/2.7/reference/lexical_analysis.html#indentation)478      - [2.1.9. Пробелы между токенами](https://python-all.ru/2.7/reference/lexical_analysis.html#whitespace-between-tokens)479    - [2.2. Другие токены](https://python-all.ru/2.7/reference/lexical_analysis.html#other-tokens)480    - [2.3. Идентификаторы и ключевые слова](https://python-all.ru/2.7/reference/lexical_analysis.html#identifiers)481482      - [2.3.1. Ключевые слова](https://python-all.ru/2.7/reference/lexical_analysis.html#keywords)483      - [2.3.2. Зарезервированные классы идентификаторов](https://python-all.ru/2.7/reference/lexical_analysis.html#reserved-classes-of-identifiers)484    - [2.4. Литералы](https://python-all.ru/2.7/reference/lexical_analysis.html#literals)485486      - [2.4.1. Строковые литералы](https://python-all.ru/2.7/reference/lexical_analysis.html#string-literals)487      - [2.4.2. Конкатенация строковых литералов](https://python-all.ru/2.7/reference/lexical_analysis.html#string-literal-concatenation)488      - [2.4.3. Числовые литералы](https://python-all.ru/2.7/reference/lexical_analysis.html#numeric-literals)489      - [2.4.4. Целочисленные литералы и литералы длинных целых](https://python-all.ru/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals)490      - [2.4.5. Литералы с плавающей точкой](https://python-all.ru/2.7/reference/lexical_analysis.html#floating-point-literals)491      - [2.4.6. Литералы мнимых чисел](https://python-all.ru/2.7/reference/lexical_analysis.html#imaginary-literals)492    - [2.5. Операторы](https://python-all.ru/2.7/reference/lexical_analysis.html#operators)493    - [2.6. Разделители](https://python-all.ru/2.7/reference/lexical_analysis.html#delimiters)494  - [3. Модель данных](https://python-all.ru/2.7/reference/datamodel.html)495496    - [3.1. Объекты, значения и типы](https://python-all.ru/2.7/reference/datamodel.html#objects-values-and-types)497    - [3.2. Стандартная иерархия типов](https://python-all.ru/2.7/reference/datamodel.html#the-standard-type-hierarchy)498    - [3.3. Классы нового стиля и классические классы](https://python-all.ru/2.7/reference/datamodel.html#new-style-and-classic-classes)499    - [3.4. Специальные имена методов](https://python-all.ru/2.7/reference/datamodel.html#special-method-names)500501      - [3.4.1. Базовая настройка](https://python-all.ru/2.7/reference/datamodel.html#basic-customization)502      - [3.4.2. Настройка доступа к атрибутам](https://python-all.ru/2.7/reference/datamodel.html#customizing-attribute-access)503504        - [3.4.2.1. Дополнительный доступ к атрибутам для классов нового стиля](https://python-all.ru/2.7/reference/datamodel.html#more-attribute-access-for-new-style-classes)505        - [3.4.2.2. Реализация дескрипторов](https://python-all.ru/2.7/reference/datamodel.html#implementing-descriptors)506        - [3.4.2.3. Вызов дескрипторов](https://python-all.ru/2.7/reference/datamodel.html#invoking-descriptors)507        - [3.4.2.4. \_\_slots\_\_](https://python-all.ru/2.7/reference/datamodel.html#slots)508      - [3.4.3. Настройка создания классов](https://python-all.ru/2.7/reference/datamodel.html#customizing-class-creation)509      - [3.4.4. Настройка проверок экземпляров и подклассов](https://python-all.ru/2.7/reference/datamodel.html#customizing-instance-and-subclass-checks)510      - [3.4.5. Эмуляция вызываемых объектов](https://python-all.ru/2.7/reference/datamodel.html#emulating-callable-objects)511      - [3.4.6. Эмуляция контейнерных типов](https://python-all.ru/2.7/reference/datamodel.html#emulating-container-types)512      - [3.4.7. Дополнительные методы для эмуляции типов последовательностей](https://python-all.ru/2.7/reference/datamodel.html#additional-methods-for-emulation-of-sequence-types)513      - [3.4.8. Эмуляция числовых типов](https://python-all.ru/2.7/reference/datamodel.html#emulating-numeric-types)514      - [3.4.9. Правила приведения типов](https://python-all.ru/2.7/reference/datamodel.html#coercion-rules)515      - [3.4.10. Контекстные менеджеры оператора with](https://python-all.ru/2.7/reference/datamodel.html#with-statement-context-managers)516      - [3.4.11. Поиск специальных методов для классов старого стиля](https://python-all.ru/2.7/reference/datamodel.html#special-method-lookup-for-old-style-classes)517      - [3.4.12. Поиск специальных методов для классов нового стиля](https://python-all.ru/2.7/reference/datamodel.html#special-method-lookup-for-new-style-classes)518  - [4. Модель выполнения](https://python-all.ru/2.7/reference/executionmodel.html)519520    - [4.1. Именование и связывание](https://python-all.ru/2.7/reference/executionmodel.html#naming-and-binding)521522      - [4.1.1. Взаимодействие с динамическими возможностями](https://python-all.ru/2.7/reference/executionmodel.html#interaction-with-dynamic-features)523    - [4.2. Исключения](https://python-all.ru/2.7/reference/executionmodel.html#exceptions)524  - [5. Выражения](https://python-all.ru/2.7/reference/expressions.html)525526    - [5.1. Арифметические преобразования](https://python-all.ru/2.7/reference/expressions.html#arithmetic-conversions)527    - [5.2. Атомы](https://python-all.ru/2.7/reference/expressions.html#atoms)528529      - [5.2.1. Идентификаторы (имена)](https://python-all.ru/2.7/reference/expressions.html#atom-identifiers)530      - [5.2.2. Литералы](https://python-all.ru/2.7/reference/expressions.html#literals)531      - [5.2.3. Формы в скобках](https://python-all.ru/2.7/reference/expressions.html#parenthesized-forms)532      - [5.2.4. Отображения списков](https://python-all.ru/2.7/reference/expressions.html#list-displays)533      - [5.2.5. Отображения множеств и словарей](https://python-all.ru/2.7/reference/expressions.html#displays-for-sets-and-dictionaries)534      - [5.2.6. Генераторные выражения](https://python-all.ru/2.7/reference/expressions.html#generator-expressions)535      - [5.2.7. Отображения словарей](https://python-all.ru/2.7/reference/expressions.html#dictionary-displays)536      - [5.2.8. Отображения множеств](https://python-all.ru/2.7/reference/expressions.html#set-displays)537      - [5.2.9. Преобразования строк](https://python-all.ru/2.7/reference/expressions.html#string-conversions)538      - [5.2.10. Выражения yield](https://python-all.ru/2.7/reference/expressions.html#yield-expressions)539540        - [5.2.10.1. Методы генератор-итератора](https://python-all.ru/2.7/reference/expressions.html#generator-iterator-methods)541    - [5.3. Первичные элементы](https://python-all.ru/2.7/reference/expressions.html#primaries)542543      - [5.3.1. Ссылки на атрибуты](https://python-all.ru/2.7/reference/expressions.html#attribute-references)544      - [5.3.2. Индексация](https://python-all.ru/2.7/reference/expressions.html#subscriptions)545      - [5.3.3. Срезы](https://python-all.ru/2.7/reference/expressions.html#slicings)546      - [5.3.4. Вызовы](https://python-all.ru/2.7/reference/expressions.html#calls)547    - [5.4. Оператор возведения в степень](https://python-all.ru/2.7/reference/expressions.html#the-power-operator)548    - [5.5. Унарные арифметические и побитовые операции](https://python-all.ru/2.7/reference/expressions.html#unary-arithmetic-and-bitwise-operations)549    - [5.6. Бинарные арифметические операции](https://python-all.ru/2.7/reference/expressions.html#binary-arithmetic-operations)550    - [5.7. Операции сдвига](https://python-all.ru/2.7/reference/expressions.html#shifting-operations)551    - [5.8. Бинарные побитовые операции](https://python-all.ru/2.7/reference/expressions.html#binary-bitwise-operations)552    - [5.9. Сравнения](https://python-all.ru/2.7/reference/expressions.html#comparisons)553554      - [5.9.1. Сравнения значений](https://python-all.ru/2.7/reference/expressions.html#value-comparisons)555      - [5.9.2. Операции проверки принадлежности](https://python-all.ru/2.7/reference/expressions.html#membership-test-operations)556      - [5.9.3. Сравнения идентичности](https://python-all.ru/2.7/reference/expressions.html#is-not)557    - [5.10. Булевы операции](https://python-all.ru/2.7/reference/expressions.html#boolean-operations)558    - [5.11. Условные выражения](https://python-all.ru/2.7/reference/expressions.html#conditional-expressions)559    - [5.12. Лямбда-выражения](https://python-all.ru/2.7/reference/expressions.html#lambda)560    - [5.13. Списки выражений](https://python-all.ru/2.7/reference/expressions.html#expression-lists)561    - [5.14. Порядок вычисления](https://python-all.ru/2.7/reference/expressions.html#evaluation-order)562    - [5.15. Приоритет операторов](https://python-all.ru/2.7/reference/expressions.html#operator-precedence)563  - [6. Простые инструкции](https://python-all.ru/2.7/reference/simple_stmts.html)564565    - [6.1. Инструкции-выражения](https://python-all.ru/2.7/reference/simple_stmts.html#expression-statements)566    - [6.2. Инструкции присваивания](https://python-all.ru/2.7/reference/simple_stmts.html#assignment-statements)567568      - [6.2.1. Инструкции присваивания с операцией](https://python-all.ru/2.7/reference/simple_stmts.html#augmented-assignment-statements)569    - [6.3. Оператор `assert`](https://python-all.ru/2.7/reference/simple_stmts.html#the-assert-statement)570    - [6.4. Оператор `pass`](https://python-all.ru/2.7/reference/simple_stmts.html#the-pass-statement)571    - [6.5. Оператор `del`](https://python-all.ru/2.7/reference/simple_stmts.html#the-del-statement)572    - [6.6. Оператор `print`](https://python-all.ru/2.7/reference/simple_stmts.html#the-print-statement)573    - [6.7. Оператор `return`](https://python-all.ru/2.7/reference/simple_stmts.html#the-return-statement)574    - [6.8. Оператор `yield`](https://python-all.ru/2.7/reference/simple_stmts.html#the-yield-statement)575    - [6.9. Оператор `raise`](https://python-all.ru/2.7/reference/simple_stmts.html#the-raise-statement)576    - [6.10. Оператор `break`](https://python-all.ru/2.7/reference/simple_stmts.html#the-break-statement)577    - [6.11. Оператор `continue`](https://python-all.ru/2.7/reference/simple_stmts.html#the-continue-statement)578    - [6.12. Оператор `import`](https://python-all.ru/2.7/reference/simple_stmts.html#the-import-statement)579580      - [6.12.1. Операторы future](https://python-all.ru/2.7/reference/simple_stmts.html#future-statements)581    - [6.13. Оператор `global`](https://python-all.ru/2.7/reference/simple_stmts.html#the-global-statement)582    - [6.14. Оператор `exec`](https://python-all.ru/2.7/reference/simple_stmts.html#the-exec-statement)583  - [7. Составные инструкции](https://python-all.ru/2.7/reference/compound_stmts.html)584585    - [7.1. Оператор `if`](https://python-all.ru/2.7/reference/compound_stmts.html#the-if-statement)586    - [7.2. Оператор `while`](https://python-all.ru/2.7/reference/compound_stmts.html#the-while-statement)587    - [7.3. Инструкция `for`](https://python-all.ru/2.7/reference/compound_stmts.html#the-for-statement)588    - [7.4. Инструкция `try`](https://python-all.ru/2.7/reference/compound_stmts.html#the-try-statement)589    - [7.5. Инструкция `with`](https://python-all.ru/2.7/reference/compound_stmts.html#the-with-statement)590    - [7.6. Определения функций](https://python-all.ru/2.7/reference/compound_stmts.html#function-definitions)591    - [7.7. Определения классов](https://python-all.ru/2.7/reference/compound_stmts.html#class-definitions)592  - [8. Компоненты верхнего уровня](https://python-all.ru/2.7/reference/toplevel_components.html)593594    - [8.1. Полные программы Python](https://python-all.ru/2.7/reference/toplevel_components.html#complete-python-programs)595    - [8.2. Ввод из файла](https://python-all.ru/2.7/reference/toplevel_components.html#file-input)596    - [8.3. Интерактивный ввод](https://python-all.ru/2.7/reference/toplevel_components.html#interactive-input)597    - [8.4. Ввод выражений](https://python-all.ru/2.7/reference/toplevel_components.html#expression-input)598  - [9. Полная спецификация грамматики](https://python-all.ru/2.7/reference/grammar.html)599- [Стандартная библиотека Python](https://python-all.ru/2.7/library/index.html)600601  - [1. Введение](https://python-all.ru/2.7/library/intro.html)602  - [2. Встроенные функции](https://python-all.ru/2.7/library/functions.html)603  - [3. Необязательные встроенные функции](https://python-all.ru/2.7/library/functions.html#non-essential-built-in-functions)604  - [4. Встроенные константы](https://python-all.ru/2.7/library/constants.html)605606    - [4.1. Константы, добавленные модулем `site`](https://python-all.ru/2.7/library/constants.html#constants-added-by-the-site-module)607  - [5. Встроенные типы](https://python-all.ru/2.7/library/stdtypes.html)608609    - [5.1. Проверка истинности](https://python-all.ru/2.7/library/stdtypes.html#truth-value-testing)610    - [5.2. Булевы операции – `and`, `or`, `not`](https://python-all.ru/2.7/library/stdtypes.html#boolean-operations-and-or-not)611    - [5.3. Сравнения](https://python-all.ru/2.7/library/stdtypes.html#comparisons)612    - [5.4. Числовые типы – `int`, `float`, `long`, `complex`](https://python-all.ru/2.7/library/stdtypes.html#numeric-types-int-float-long-complex)613614      - [5.4.1. Побитовые операции над целыми типами](https://python-all.ru/2.7/library/stdtypes.html#bitwise-operations-on-integer-types)615      - [5.4.2. Дополнительные методы целочисленных типов](https://python-all.ru/2.7/library/stdtypes.html#additional-methods-on-integer-types)616      - [5.4.3. Дополнительные методы Float](https://python-all.ru/2.7/library/stdtypes.html#additional-methods-on-float)617    - [5.5. Типы итераторов](https://python-all.ru/2.7/library/stdtypes.html#iterator-types)618619      - [5.5.1. Типы генераторов](https://python-all.ru/2.7/library/stdtypes.html#generator-types)620    - [5.6. Типы последовательностей – `str`, `unicode`, `list`, `tuple`, `bytearray`, `buffer`, `xrange`](https://python-all.ru/2.7/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange)621622      - [5.6.1. Методы строк](https://python-all.ru/2.7/library/stdtypes.html#string-methods)623      - [5.6.2. Операции форматирования строк](https://python-all.ru/2.7/library/stdtypes.html#string-formatting-operations)624      - [5.6.3. Тип XRange](https://python-all.ru/2.7/library/stdtypes.html#xrange-type)625      - [5.6.4. Изменяемые типы последовательностей](https://python-all.ru/2.7/library/stdtypes.html#mutable-sequence-types)626    - [5.7. Типы множеств – `set`, `frozenset`](https://python-all.ru/2.7/library/stdtypes.html#set-types-set-frozenset)627    - [5.8. Типы отображений – `dict`](https://python-all.ru/2.7/library/stdtypes.html#mapping-types-dict)628629      - [5.8.1. Объекты представления словаря](https://python-all.ru/2.7/library/stdtypes.html#dictionary-view-objects)630    - [5.9. Файловые объекты](https://python-all.ru/2.7/library/stdtypes.html#file-objects)631    - [5.10. Тип memoryview](https://python-all.ru/2.7/library/stdtypes.html#memoryview-type)632    - [5.11. Типы менеджеров контекста](https://python-all.ru/2.7/library/stdtypes.html#context-manager-types)633    - [5.12. Прочие встроенные типы](https://python-all.ru/2.7/library/stdtypes.html#other-built-in-types)634635      - [5.12.1. Модули](https://python-all.ru/2.7/library/stdtypes.html#modules)636      - [5.12.2. Классы и экземпляры классов](https://python-all.ru/2.7/library/stdtypes.html#classes-and-class-instances)637      - [5.12.3. Функции](https://python-all.ru/2.7/library/stdtypes.html#functions)638      - [5.12.4. Методы](https://python-all.ru/2.7/library/stdtypes.html#methods)639      - [5.12.5. Объекты кода](https://python-all.ru/2.7/library/stdtypes.html#code-objects)640      - [5.12.6. Объекты типа](https://python-all.ru/2.7/library/stdtypes.html#type-objects)641      - [5.12.7. Объект Null](https://python-all.ru/2.7/library/stdtypes.html#the-null-object)642      - [5.12.8. Объект многоточия](https://python-all.ru/2.7/library/stdtypes.html#the-ellipsis-object)643      - [5.12.9. Объект NotImplemented](https://python-all.ru/2.7/library/stdtypes.html#the-notimplemented-object)644      - [5.12.10. Булевы значения](https://python-all.ru/2.7/library/stdtypes.html#boolean-values)645      - [5.12.11. Внутренние объекты](https://python-all.ru/2.7/library/stdtypes.html#internal-objects)646    - [5.13. Специальные атрибуты](https://python-all.ru/2.7/library/stdtypes.html#special-attributes)647  - [6. Встроенные исключения](https://python-all.ru/2.7/library/exceptions.html)648649    - [6.1. Иерархия исключений](https://python-all.ru/2.7/library/exceptions.html#exception-hierarchy)650  - [7. Сервисы строк](https://python-all.ru/2.7/library/strings.html)651652    - [7.1. `string` – Общие операции со строками](https://python-all.ru/2.7/library/string.html)653654      - [7.1.1. Константы строк](https://python-all.ru/2.7/library/string.html#string-constants)655      - [7.1.2. Пользовательское форматирование строк](https://python-all.ru/2.7/library/string.html#custom-string-formatting)656      - [7.1.3. Синтаксис строк форматирования](https://python-all.ru/2.7/library/string.html#format-string-syntax)657658        - [7.1.3.1. Мини-язык спецификации форматирования](https://python-all.ru/2.7/library/string.html#format-specification-mini-language)659        - [7.1.3.2. Примеры форматирования](https://python-all.ru/2.7/library/string.html#format-examples)660      - [7.1.4. Шаблонные строки](https://python-all.ru/2.7/library/string.html#template-strings)661      - [7.1.5. Строковые функции](https://python-all.ru/2.7/library/string.html#string-functions)662      - [7.1.6. Устаревшие строковые функции](https://python-all.ru/2.7/library/string.html#deprecated-string-functions)663    - [7.2. `re` – Операции с регулярными выражениями](https://python-all.ru/2.7/library/re.html)664665      - [7.2.1. Синтаксис регулярных выражений](https://python-all.ru/2.7/library/re.html#regular-expression-syntax)666      - [7.2.2. Содержимое модуля](https://python-all.ru/2.7/library/re.html#module-contents)667      - [7.2.3. Объекты регулярных выражений](https://python-all.ru/2.7/library/re.html#regular-expression-objects)668      - [7.2.4. Объекты совпадений](https://python-all.ru/2.7/library/re.html#match-objects)669      - [7.2.5. Примеры](https://python-all.ru/2.7/library/re.html#examples)670671        - [7.2.5.1. Проверка пары](https://python-all.ru/2.7/library/re.html#checking-for-a-pair)672        - [7.2.5.2. Имитация scanf()](https://python-all.ru/2.7/library/re.html#simulating-scanf)673        - [7.2.5.3. search() и match()](https://python-all.ru/2.7/library/re.html#search-vs-match)674        - [7.2.5.4. Создание телефонной книги](https://python-all.ru/2.7/library/re.html#making-a-phonebook)675        - [7.2.5.5. Обработка текста](https://python-all.ru/2.7/library/re.html#text-munging)676        - [7.2.5.6. Поиск всех наречий](https://python-all.ru/2.7/library/re.html#finding-all-adverbs)677        - [7.2.5.7. Поиск всех наречий и их позиций](https://python-all.ru/2.7/library/re.html#finding-all-adverbs-and-their-positions)678        - [7.2.5.8. Сырые строки](https://python-all.ru/2.7/library/re.html#raw-string-notation)679    - [7.3. `struct` – Интерпретация строк как упакованных двоичных данных](https://python-all.ru/2.7/library/struct.html)680681      - [7.3.1. Функции и исключения](https://python-all.ru/2.7/library/struct.html#functions-and-exceptions)682      - [7.3.2. Строки формата](https://python-all.ru/2.7/library/struct.html#format-strings)683684        - [7.3.2.1. Порядок байтов, размер и выравнивание](https://python-all.ru/2.7/library/struct.html#byte-order-size-and-alignment)685        - [7.3.2.2. Символы формата](https://python-all.ru/2.7/library/struct.html#format-characters)686        - [7.3.2.3. Примеры](https://python-all.ru/2.7/library/struct.html#examples)687      - [7.3.3. Классы](https://python-all.ru/2.7/library/struct.html#classes)688    - [7.4. `difflib` – Вспомогательные функции для вычисления дельт](https://python-all.ru/2.7/library/difflib.html)689690      - [7.4.1. Объекты SequenceMatcher](https://python-all.ru/2.7/library/difflib.html#sequencematcher-objects)691      - [7.4.2. Примеры SequenceMatcher](https://python-all.ru/2.7/library/difflib.html#sequencematcher-examples)692      - [7.4.3. Объекты Differ](https://python-all.ru/2.7/library/difflib.html#differ-objects)693      - [7.4.4. Пример Differ](https://python-all.ru/2.7/library/difflib.html#differ-example)694      - [7.4.5. Интерфейс командной строки для difflib](https://python-all.ru/2.7/library/difflib.html#a-command-line-interface-to-difflib)695    - [7.5. `StringIO` – Чтение и запись строк как файлов](https://python-all.ru/2.7/library/stringio.html)696    - [7.6. `cStringIO` – Более быстрая версия `StringIO`](https://python-all.ru/2.7/library/stringio.html#module-cStringIO)697    - [7.7. `textwrap` – Перенос и заполнение текста](https://python-all.ru/2.7/library/textwrap.html)698    - [7.8. `codecs` – Реестр кодеков и базовые классы](https://python-all.ru/2.7/library/codecs.html)699700      - [7.8.1. Базовые классы кодеков](https://python-all.ru/2.7/library/codecs.html#codec-base-classes)701702        - [7.8.1.1. Объекты кодеков](https://python-all.ru/2.7/library/codecs.html#codec-objects)703        - [7.8.1.2. Объекты IncrementalEncoder](https://python-all.ru/2.7/library/codecs.html#incrementalencoder-objects)704        - [7.8.1.3. Объекты IncrementalDecoder](https://python-all.ru/2.7/library/codecs.html#incrementaldecoder-objects)705        - [7.8.1.4. Объекты StreamWriter](https://python-all.ru/2.7/library/codecs.html#streamwriter-objects)706        - [7.8.1.5. Объекты StreamReader](https://python-all.ru/2.7/library/codecs.html#streamreader-objects)707        - [7.8.1.6. Объекты StreamReaderWriter](https://python-all.ru/2.7/library/codecs.html#streamreaderwriter-objects)708        - [7.8.1.7. Объекты StreamRecoder](https://python-all.ru/2.7/library/codecs.html#streamrecoder-objects)709      - [7.8.2. Кодировки и Unicode](https://python-all.ru/2.7/library/codecs.html#encodings-and-unicode)710      - [7.8.3. Стандартные кодировки](https://python-all.ru/2.7/library/codecs.html#standard-encodings)711      - [7.8.4. Специфические для Python кодировки](https://python-all.ru/2.7/library/codecs.html#python-specific-encodings)712      - [7.8.5. `encodings.idna` – Интернационализированные доменные имена в приложениях](https://python-all.ru/2.7/library/codecs.html#module-encodings.idna)713      - [7.8.6. `encodings.utf_8_sig` – Кодек UTF-8 с сигнатурой BOM](https://python-all.ru/2.7/library/codecs.html#module-encodings.utf_8_sig)714    - [7.9. `unicodedata` – База данных Unicode](https://python-all.ru/2.7/library/unicodedata.html)715    - [7.10. `stringprep` – Подготовка интернет-строк](https://python-all.ru/2.7/library/stringprep.html)716    - [7.11. `fpformat` – Преобразования чисел с плавающей точкой](https://python-all.ru/2.7/library/fpformat.html)717  - [8. Типы данных](https://python-all.ru/2.7/library/datatypes.html)718719    - [8.1. `datetime` – Базовые типы даты и времени](https://python-all.ru/2.7/library/datetime.html)720721      - [8.1.1. Доступные типы](https://python-all.ru/2.7/library/datetime.html#available-types)722      - [8.1.2. `timedelta` Объекты](https://python-all.ru/2.7/library/datetime.html#timedelta-objects)723      - [8.1.3. `date` Объекты](https://python-all.ru/2.7/library/datetime.html#date-objects)724      - [8.1.4. `datetime` Объекты](https://python-all.ru/2.7/library/datetime.html#datetime-objects)725      - [8.1.5. `time` Объекты](https://python-all.ru/2.7/library/datetime.html#time-objects)726      - [8.1.6. `tzinfo` Объекты](https://python-all.ru/2.7/library/datetime.html#tzinfo-objects)727      - [8.1.7. `strftime()` и `strptime()` Поведение](https://python-all.ru/2.7/library/datetime.html#strftime-and-strptime-behavior)728    - [8.2. `calendar` – Общие функции, связанные с календарём](https://python-all.ru/2.7/library/calendar.html)729    - [8.3. `collections` – Высокопроизводительные типы данных контейнеров](https://python-all.ru/2.7/library/collections.html)730731      - [8.3.1. `Counter` объекты](https://python-all.ru/2.7/library/collections.html#counter-objects)732      - [8.3.2. `deque` объекты](https://python-all.ru/2.7/library/collections.html#deque-objects)733734        - [8.3.2.1. `deque` Рецепты](https://python-all.ru/2.7/library/collections.html#deque-recipes)735      - [8.3.3. `defaultdict` объекты](https://python-all.ru/2.7/library/collections.html#defaultdict-objects)736737        - [8.3.3.1. `defaultdict` Примеры](https://python-all.ru/2.7/library/collections.html#defaultdict-examples)738      - [8.3.4. `namedtuple()` Фабричная функция для кортежей с именованными полями](https://python-all.ru/2.7/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields)739      - [8.3.5. `OrderedDict` объекты](https://python-all.ru/2.7/library/collections.html#ordereddict-objects)740741        - [8.3.5.1. `OrderedDict` Примеры и рецепты](https://python-all.ru/2.7/library/collections.html#ordereddict-examples-and-recipes)742      - [8.3.6. Абстрактные базовые классы коллекций](https://python-all.ru/2.7/library/collections.html#collections-abstract-base-classes)743    - [8.4. `heapq` – Алгоритм очереди на куче](https://python-all.ru/2.7/library/heapq.html)744745      - [8.4.1. Основные примеры](https://python-all.ru/2.7/library/heapq.html#basic-examples)746      - [8.4.2. Замечания по реализации очереди с приоритетом](https://python-all.ru/2.7/library/heapq.html#priority-queue-implementation-notes)747      - [8.4.3. Теория](https://python-all.ru/2.7/library/heapq.html#theory)748    - [8.5. `bisect` – Алгоритм бинарного поиска](https://python-all.ru/2.7/library/bisect.html)749750      - [8.5.1. Поиск в отсортированных списках](https://python-all.ru/2.7/library/bisect.html#searching-sorted-lists)751      - [8.5.2. Другие примеры](https://python-all.ru/2.7/library/bisect.html#other-examples)752    - [8.6. `array` – Эффективные массивы числовых значений](https://python-all.ru/2.7/library/array.html)753    - [8.7. `sets` – Неупорядоченные коллекции уникальных элементов](https://python-all.ru/2.7/library/sets.html)754755      - [8.7.1. Объекты множеств](https://python-all.ru/2.7/library/sets.html#set-objects)756      - [8.7.2. Пример](https://python-all.ru/2.7/library/sets.html#example)757      - [8.7.3. Протокол автоматического преобразования в неизменяемое](https://python-all.ru/2.7/library/sets.html#protocol-for-automatic-conversion-to-immutable)758      - [8.7.4. Сравнение со встроенными типами `set`](https://python-all.ru/2.7/library/sets.html#comparison-to-the-built-in-set-types)759    - [8.8. `sched` – Планировщик событий](https://python-all.ru/2.7/library/sched.html)760761      - [8.8.1. Объекты планировщика](https://python-all.ru/2.7/library/sched.html#scheduler-objects)762    - [8.9. `mutex` – Поддержка взаимного исключения](https://python-all.ru/2.7/library/mutex.html)763764      - [8.9.1. Объекты мьютекса](https://python-all.ru/2.7/library/mutex.html#mutex-objects)765    - [8.10. `Queue` – Класс синхронизированной очереди](https://python-all.ru/2.7/library/queue.html)766767      - [8.10.1. Объекты очереди](https://python-all.ru/2.7/library/queue.html#queue-objects)768    - [8.11. `weakref` – Слабые ссылки](https://python-all.ru/2.7/library/weakref.html)769770      - [8.11.1. Объекты слабых ссылок](https://python-all.ru/2.7/library/weakref.html#weak-reference-objects)771      - [8.11.2. Пример](https://python-all.ru/2.7/library/weakref.html#example)772    - [8.12. `UserDict` – Класс-обёртка для объектов словаря](https://python-all.ru/2.7/library/userdict.html)773    - [8.13. `UserList` – Класс-обёртка для объектов списка](https://python-all.ru/2.7/library/userdict.html#module-UserList)774    - [8.14. `UserString` – Класс-обёртка для строковых объектов](https://python-all.ru/2.7/library/userdict.html#module-UserString)775    - [8.15. `types` – Имена встроенных типов](https://python-all.ru/2.7/library/types.html)776    - [8.16. `new` – Создание внутренних объектов времени выполнения](https://python-all.ru/2.7/library/new.html)777    - [8.17. `copy` – Операции поверхностного и глубокого копирования](https://python-all.ru/2.7/library/copy.html)778    - [8.18. `pprint` – Форматированный вывод данных](https://python-all.ru/2.7/library/pprint.html)779780      - [8.18.1. Объекты PrettyPrinter](https://python-all.ru/2.7/library/pprint.html#prettyprinter-objects)781      - [8.18.2. Пример pprint](https://python-all.ru/2.7/library/pprint.html#pprint-example)782    - [8.19. `repr` – альтернативная реализация `repr()`](https://python-all.ru/2.7/library/repr.html)783784      - [8.19.1. Объекты Repr](https://python-all.ru/2.7/library/repr.html#repr-objects)785      - [8.19.2. Создание подклассов объектов Repr](https://python-all.ru/2.7/library/repr.html#subclassing-repr-objects)786  - [9. Модули числовых и математических функций](https://python-all.ru/2.7/library/numeric.html)787788    - [9.1. `numbers` – Числовые абстрактные базовые классы](https://python-all.ru/2.7/library/numbers.html)789790      - [9.1.1. Числовая иерархия](https://python-all.ru/2.7/library/numbers.html#the-numeric-tower)791      - [9.1.2. Замечания для разработчиков типов](https://python-all.ru/2.7/library/numbers.html#notes-for-type-implementors)792793        - [9.1.2.1. Добавление других числовых ABC](https://python-all.ru/2.7/library/numbers.html#adding-more-numeric-abcs)794        - [9.1.2.2. Реализация арифметических операций](https://python-all.ru/2.7/library/numbers.html#implementing-the-arithmetic-operations)795    - [9.2. `math` – Математические функции](https://python-all.ru/2.7/library/math.html)796797      - [9.2.1. Теоретико-числовые функции и функции представления](https://python-all.ru/2.7/library/math.html#number-theoretic-and-representation-functions)798      - [9.2.2. Степенные и логарифмические функции](https://python-all.ru/2.7/library/math.html#power-and-logarithmic-functions)799      - [9.2.3. Тригонометрические функции](https://python-all.ru/2.7/library/math.html#trigonometric-functions)800      - [9.2.4. Преобразование углов](https://python-all.ru/2.7/library/math.html#angular-conversion)801      - [9.2.5. Гиперболические функции](https://python-all.ru/2.7/library/math.html#hyperbolic-functions)802      - [9.2.6. Специальные функции](https://python-all.ru/2.7/library/math.html#special-functions)803      - [9.2.7. Константы](https://python-all.ru/2.7/library/math.html#constants)804    - [9.3. `cmath` – Математические функции для комплексных чисел](https://python-all.ru/2.7/library/cmath.html)805806      - [9.3.1. Преобразование в полярные координаты и обратно](https://python-all.ru/2.7/library/cmath.html#conversions-to-and-from-polar-coordinates)807      - [9.3.2. Степенные и логарифмические функции](https://python-all.ru/2.7/library/cmath.html#power-and-logarithmic-functions)808      - [9.3.3. Тригонометрические функции](https://python-all.ru/2.7/library/cmath.html#trigonometric-functions)809      - [9.3.4. Гиперболические функции](https://python-all.ru/2.7/library/cmath.html#hyperbolic-functions)810      - [9.3.5. Функции классификации](https://python-all.ru/2.7/library/cmath.html#classification-functions)811      - [9.3.6. Константы](https://python-all.ru/2.7/library/cmath.html#constants)812    - [9.4. `decimal` – Десятичная арифметика с фиксированной и плавающей точкой](https://python-all.ru/2.7/library/decimal.html)813814      - [9.4.1. Краткое руководство](https://python-all.ru/2.7/library/decimal.html#quick-start-tutorial)815      - [9.4.2. Объекты Decimal](https://python-all.ru/2.7/library/decimal.html#decimal-objects)816817        - [9.4.2.1. Логические операнды](https://python-all.ru/2.7/library/decimal.html#logical-operands)818      - [9.4.3. Объекты контекста](https://python-all.ru/2.7/library/decimal.html#context-objects)819      - [9.4.4. Сигналы](https://python-all.ru/2.7/library/decimal.html#signals)820      - [9.4.5. Примечания по числам с плавающей запятой](https://python-all.ru/2.7/library/decimal.html#floating-point-notes)821822        - [9.4.5.1. Уменьшение погрешности округления с помощью повышенной точности](https://python-all.ru/2.7/library/decimal.html#mitigating-round-off-error-with-increased-precision)823        - [9.4.5.2. Особые значения](https://python-all.ru/2.7/library/decimal.html#special-values)824      - [9.4.6. Работа с потоками](https://python-all.ru/2.7/library/decimal.html#working-with-threads)825      - [9.4.7. Рецепты](https://python-all.ru/2.7/library/decimal.html#recipes)826      - [9.4.8. Часто задаваемые вопросы по Decimal](https://python-all.ru/2.7/library/decimal.html#decimal-faq)827    - [9.5. `fractions` – Рациональные числа](https://python-all.ru/2.7/library/fractions.html)828    - [9.6. `random` – Генерация псевдослучайных чисел](https://python-all.ru/2.7/library/random.html)829    - [9.7. `itertools` – функции, создающие итераторы для эффективного циклического обхода](https://python-all.ru/2.7/library/itertools.html)830831      - [9.7.1. Функции модуля itertools](https://python-all.ru/2.7/library/itertools.html#itertool-functions)832      - [9.7.2. Рецепты](https://python-all.ru/2.7/library/itertools.html#recipes)833    - [9.8. `functools` – функции высшего порядка и операции над вызываемыми объектами](https://python-all.ru/2.7/library/functools.html)834835      - [9.8.1. Объекты `partial`](https://python-all.ru/2.7/library/functools.html#partial-objects)836    - [9.9. `operator` – стандартные операторы как функции](https://python-all.ru/2.7/library/operator.html)837838      - [9.9.1. Сопоставление операторов с функциями](https://python-all.ru/2.7/library/operator.html#mapping-operators-to-functions)839  - [10. Доступ к файлам и каталогам](https://python-all.ru/2.7/library/filesys.html)840841    - [10.1. `os.path` – распространённые манипуляции с путями](https://python-all.ru/2.7/library/os.path.html)842    - [10.2. `fileinput` – итерация по строкам из нескольких входных потоков](https://python-all.ru/2.7/library/fileinput.html)843    - [10.3. `stat` – интерпретация результатов `stat()`](https://python-all.ru/2.7/library/stat.html)844    - [10.4. `statvfs` – константы, используемые с `os.statvfs()`](https://python-all.ru/2.7/library/statvfs.html)845    - [10.5. `filecmp` – сравнение файлов и каталогов](https://python-all.ru/2.7/library/filecmp.html)846847      - [10.5.1. Класс `dircmp`](https://python-all.ru/2.7/library/filecmp.html#the-dircmp-class)848    - [10.6. `tempfile` – создание временных файлов и каталогов](https://python-all.ru/2.7/library/tempfile.html)849    - [10.7. `glob` – развёртывание шаблонов имён путей в стиле Unix](https://python-all.ru/2.7/library/glob.html)850    - [10.8. `fnmatch` – сопоставление с шаблонами имён файлов Unix](https://python-all.ru/2.7/library/fnmatch.html)851    - [10.9. `linecache` – произвольный доступ к строкам текста](https://python-all.ru/2.7/library/linecache.html)852    - [10.10. `shutil` – высокоуровневые файловые операции](https://python-all.ru/2.7/library/shutil.html)853854      - [10.10.1. Операции с каталогами и файлами](https://python-all.ru/2.7/library/shutil.html#directory-and-files-operations)855856        - [10.10.1.1. Пример copytree](https://python-all.ru/2.7/library/shutil.html#copytree-example)857      - [10.10.2. Операции архивирования](https://python-all.ru/2.7/library/shutil.html#archiving-operations)858859        - [10.10.2.1. Пример архивирования](https://python-all.ru/2.7/library/shutil.html#archiving-example)860    - [10.11. `dircache` – кэшированные списки каталогов](https://python-all.ru/2.7/library/dircache.html)861    - [10.12. `macpath` – функции манипуляции с путями Mac OS 9](https://python-all.ru/2.7/library/macpath.html)862  - [11. Устойчивое сохранение данных](https://python-all.ru/2.7/library/persistence.html)863864    - [11.1. `pickle` – сериализация объектов Python](https://python-all.ru/2.7/library/pickle.html)865866      - [11.1.1. Отношение к другим модулям Python](https://python-all.ru/2.7/library/pickle.html#relationship-to-other-python-modules)867      - [11.1.2. Формат потока данных](https://python-all.ru/2.7/library/pickle.html#data-stream-format)868      - [11.1.3. Использование](https://python-all.ru/2.7/library/pickle.html#usage)869      - [11.1.4. Что можно сериализовать и десериализовать?](https://python-all.ru/2.7/library/pickle.html#what-can-be-pickled-and-unpickled)870      - [11.1.5. Протокол pickle](https://python-all.ru/2.7/library/pickle.html#the-pickle-protocol)871872        - [11.1.5.1. Упаковка и распаковка обычных экземпляров классов](https://python-all.ru/2.7/library/pickle.html#pickling-and-unpickling-normal-class-instances)873        - [11.1.5.2. Упаковка и распаковка расширенных типов](https://python-all.ru/2.7/library/pickle.html#pickling-and-unpickling-extension-types)874        - [11.1.5.3. Упаковка и распаковка внешних объектов](https://python-all.ru/2.7/library/pickle.html#pickling-and-unpickling-external-objects)875      - [11.1.6. Создание подклассов Unpickler](https://python-all.ru/2.7/library/pickle.html#subclassing-unpicklers)876      - [11.1.7. Пример](https://python-all.ru/2.7/library/pickle.html#example)877    - [11.2. `cPickle` – Более быстрый `pickle`](https://python-all.ru/2.7/library/pickle.html#module-cPickle)878    - [11.3. `copy_reg` – Регистрация вспомогательных функций `pickle`](https://python-all.ru/2.7/library/copy_reg.html)879880      - [11.3.1. Пример](https://python-all.ru/2.7/library/copy_reg.html#example)881    - [11.4. `shelve` – Сохранение объектов Python](https://python-all.ru/2.7/library/shelve.html)882883      - [11.4.1. Ограничения](https://python-all.ru/2.7/library/shelve.html#restrictions)884      - [11.4.2. Пример](https://python-all.ru/2.7/library/shelve.html#example)885    - [11.5. `marshal` – Внутренняя сериализация объектов Python](https://python-all.ru/2.7/library/marshal.html)886    - [11.6. `anydbm` – Общий доступ к базам данных в стиле DBM](https://python-all.ru/2.7/library/anydbm.html)887    - [11.7. `whichdb` – Определение модуля DBM, создавшего базу данных](https://python-all.ru/2.7/library/whichdb.html)888    - [11.8. `dbm` – Простой интерфейс «базы данных»](https://python-all.ru/2.7/library/dbm.html)889    - [11.9. `gdbm` – Реализация dbm от GNU](https://python-all.ru/2.7/library/gdbm.html)890    - [11.10. `dbhash` – Интерфейс в стиле DBM к библиотеке баз данных BSD](https://python-all.ru/2.7/library/dbhash.html)891892      - [11.10.1. Объекты базы данных](https://python-all.ru/2.7/library/dbhash.html#database-objects)893    - [11.11. `bsddb` – Интерфейс к библиотеке Berkeley DB](https://python-all.ru/2.7/library/bsddb.html)894895      - [11.11.1. Объекты Hash, BTree и Record](https://python-all.ru/2.7/library/bsddb.html#hash-btree-and-record-objects)896    - [11.12. `dumbdbm` – Переносимая реализация DBM](https://python-all.ru/2.7/library/dumbdbm.html)897898      - [11.12.1. Объекты Dumbdbm](https://python-all.ru/2.7/library/dumbdbm.html#dumbdbm-objects)899    - [11.13. `sqlite3` – Интерфейс DB-API 2.0 для баз данных SQLite](https://python-all.ru/2.7/library/sqlite3.html)900901      - [11.13.1. Функции и константы модуля](https://python-all.ru/2.7/library/sqlite3.html#module-functions-and-constants)902      - [11.13.2. Объекты соединения](https://python-all.ru/2.7/library/sqlite3.html#connection-objects)903      - [11.13.3. Объекты курсора](https://python-all.ru/2.7/library/sqlite3.html#cursor-objects)904      - [11.13.4. Объекты строки](https://python-all.ru/2.7/library/sqlite3.html#row-objects)905      - [11.13.5. Типы SQLite и Python](https://python-all.ru/2.7/library/sqlite3.html#sqlite-and-python-types)906907        - [11.13.5.1. Введение](https://python-all.ru/2.7/library/sqlite3.html#introduction)908        - [11.13.5.2. Использование адаптеров для хранения дополнительных типов Python в базах данных SQLite](https://python-all.ru/2.7/library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases)909910          - [11.13.5.2.1. Адаптация объекта самостоятельно](https://python-all.ru/2.7/library/sqlite3.html#letting-your-object-adapt-itself)911          - [11.13.5.2.2. Регистрация вызываемого адаптера](https://python-all.ru/2.7/library/sqlite3.html#registering-an-adapter-callable)912        - [11.13.5.3. Преобразование значений SQLite в пользовательские типы Python](https://python-all.ru/2.7/library/sqlite3.html#converting-sqlite-values-to-custom-python-types)913        - [11.13.5.4. Стандартные адаптеры и преобразователи](https://python-all.ru/2.7/library/sqlite3.html#default-adapters-and-converters)914      - [11.13.6. Управление транзакциями](https://python-all.ru/2.7/library/sqlite3.html#controlling-transactions)915      - [11.13.7. Эффективное использование `sqlite3`](https://python-all.ru/2.7/library/sqlite3.html#using-sqlite3-efficiently)916917        - [11.13.7.1. Использование сокращённых методов](https://python-all.ru/2.7/library/sqlite3.html#using-shortcut-methods)918        - [11.13.7.2. Доступ к столбцам по имени вместо индекса](https://python-all.ru/2.7/library/sqlite3.html#accessing-columns-by-name-instead-of-by-index)919        - [11.13.7.3. Использование соединения как менеджера контекста](https://python-all.ru/2.7/library/sqlite3.html#using-the-connection-as-a-context-manager)920      - [11.13.8. Типичные проблемы](https://python-all.ru/2.7/library/sqlite3.html#common-issues)921922        - [11.13.8.1. Многопоточность](https://python-all.ru/2.7/library/sqlite3.html#multithreading)923  - [12. Сжатие и архивирование данных](https://python-all.ru/2.7/library/archiving.html)924925    - [12.1. `zlib` – Сжатие, совместимое с **gzip**](https://python-all.ru/2.7/library/zlib.html)926    - [12.2. `gzip` – Поддержка файлов **gzip**](https://python-all.ru/2.7/library/gzip.html)927928      - [12.2.1. Примеры использования](https://python-all.ru/2.7/library/gzip.html#examples-of-usage)929    - [12.3. `bz2` – Сжатие, совместимое с **bzip2**](https://python-all.ru/2.7/library/bz2.html)930931      - [12.3.1. Сжатие и распаковка файлов](https://python-all.ru/2.7/library/bz2.html#de-compression-of-files)932      - [12.3.2. Последовательное сжатие и распаковка](https://python-all.ru/2.7/library/bz2.html#sequential-de-compression)933      - [12.3.3. Одноразовое сжатие и распаковка](https://python-all.ru/2.7/library/bz2.html#one-shot-de-compression)934    - [12.4. `zipfile` – Работа с ZIP-архивами](https://python-all.ru/2.7/library/zipfile.html)935936      - [12.4.1. Объекты ZipFile](https://python-all.ru/2.7/library/zipfile.html#zipfile-objects)937      - [12.4.2. Объекты PyZipFile](https://python-all.ru/2.7/library/zipfile.html#pyzipfile-objects)938      - [12.4.3. Объекты ZipInfo](https://python-all.ru/2.7/library/zipfile.html#zipinfo-objects)939      - [12.4.4. Интерфейс командной строки](https://python-all.ru/2.7/library/zipfile.html#command-line-interface)940941        - [12.4.4.1. Параметры командной строки](https://python-all.ru/2.7/library/zipfile.html#command-line-options)942    - [12.5. `tarfile` – Чтение и запись tar-архивов](https://python-all.ru/2.7/library/tarfile.html)943944      - [12.5.1. Объекты TarFile](https://python-all.ru/2.7/library/tarfile.html#tarfile-objects)945      - [12.5.2. Объекты TarInfo](https://python-all.ru/2.7/library/tarfile.html#tarinfo-objects)946      - [12.5.3. Примеры](https://python-all.ru/2.7/library/tarfile.html#examples)947      - [12.5.4. Поддерживаемые форматы tar](https://python-all.ru/2.7/library/tarfile.html#supported-tar-formats)948      - [12.5.5. Проблемы с Unicode](https://python-all.ru/2.7/library/tarfile.html#unicode-issues)949  - [13. Форматы файлов](https://python-all.ru/2.7/library/fileformats.html)950951    - [13.1. `csv` – Чтение и запись CSV-файлов](https://python-all.ru/2.7/library/csv.html)952953      - [13.1.1. Содержимое модуля](https://python-all.ru/2.7/library/csv.html#module-contents)954      - [13.1.2. Диалекты и параметры форматирования](https://python-all.ru/2.7/library/csv.html#dialects-and-formatting-parameters)955      - [13.1.3. Объекты Reader](https://python-all.ru/2.7/library/csv.html#reader-objects)956      - [13.1.4. Объекты Writer](https://python-all.ru/2.7/library/csv.html#writer-objects)957      - [13.1.5. Примеры](https://python-all.ru/2.7/library/csv.html#examples)958    - [13.2. `ConfigParser` – Парсер конфигурационных файлов](https://python-all.ru/2.7/library/configparser.html)959960      - [13.2.1. Объекты RawConfigParser](https://python-all.ru/2.7/library/configparser.html#rawconfigparser-objects)961      - [13.2.2. Объекты ConfigParser](https://python-all.ru/2.7/library/configparser.html#configparser-objects)962      - [13.2.3. Объекты SafeConfigParser](https://python-all.ru/2.7/library/configparser.html#safeconfigparser-objects)963      - [13.2.4. Примеры](https://python-all.ru/2.7/library/configparser.html#examples)964    - [13.3. `robotparser` – Парсер для robots.txt](https://python-all.ru/2.7/library/robotparser.html)965    - [13.4. `netrc` – Обработка файлов netrc](https://python-all.ru/2.7/library/netrc.html)966967      - [13.4.1. Объекты netrc](https://python-all.ru/2.7/library/netrc.html#netrc-objects)968    - [13.5. `xdrlib` – Кодирование и декодирование данных XDR](https://python-all.ru/2.7/library/xdrlib.html)969970      - [13.5.1. Объекты Packer](https://python-all.ru/2.7/library/xdrlib.html#packer-objects)971      - [13.5.2. Объекты Unpacker](https://python-all.ru/2.7/library/xdrlib.html#unpacker-objects)972      - [13.5.3. Исключения](https://python-all.ru/2.7/library/xdrlib.html#exceptions)973    - [13.6. `plistlib` – Генерация и разбор файлов Mac OS X `.plist`](https://python-all.ru/2.7/library/plistlib.html)974975      - [13.6.1. Примеры](https://python-all.ru/2.7/library/plistlib.html#examples)976  - [14. Криптографические сервисы](https://python-all.ru/2.7/library/crypto.html)977978    - [14.1. `hashlib` – Безопасные хеши и дайджесты сообщений](https://python-all.ru/2.7/library/hashlib.html)979980      - [14.1.1. Вывод ключа](https://python-all.ru/2.7/library/hashlib.html#key-derivation)981    - [14.2. `hmac` – Хеширование с ключом для аутентификации сообщений](https://python-all.ru/2.7/library/hmac.html)982    - [14.3. `md5` – Алгоритм дайджеста сообщений MD5](https://python-all.ru/2.7/library/md5.html)983    - [14.4. `sha` – Алгоритм дайджеста сообщений SHA-1](https://python-all.ru/2.7/library/sha.html)984  - [15. Общие службы операционной системы](https://python-all.ru/2.7/library/allos.html)985986    - [15.1. `os` – Различные интерфейсы операционной системы](https://python-all.ru/2.7/library/os.html)987988      - [15.1.1. Параметры процесса](https://python-all.ru/2.7/library/os.html#process-parameters)989      - [15.1.2. Создание файловых объектов](https://python-all.ru/2.7/library/os.html#file-object-creation)990      - [15.1.3. Операции с файловыми дескрипторами](https://python-all.ru/2.7/library/os.html#file-descriptor-operations)991992        - [15.1.3.1. `open()` константы флагов](https://python-all.ru/2.7/library/os.html#open-flag-constants)993      - [15.1.4. Файлы и каталоги](https://python-all.ru/2.7/library/os.html#files-and-directories)994      - [15.1.5. Управление процессами](https://python-all.ru/2.7/library/os.html#process-management)995      - [15.1.6. Различная системная информация](https://python-all.ru/2.7/library/os.html#miscellaneous-system-information)996      - [15.1.7. Разные функции](https://python-all.ru/2.7/library/os.html#miscellaneous-functions)997    - [15.2. `io` – Основные инструменты для работы с потоками данных](https://python-all.ru/2.7/library/io.html)998999      - [15.2.1. Интерфейс модуля](https://python-all.ru/2.7/library/io.html#module-interface)1000      - [15.2.2. Базовые классы ввода-вывода](https://python-all.ru/2.7/library/io.html#i-o-base-classes)1001      - [15.2.3. Низкоуровневый файловый ввод-вывод](https://python-all.ru/2.7/library/io.html#raw-file-i-o)1002      - [15.2.4. Буферизованные потоки данных](https://python-all.ru/2.7/library/io.html#buffered-streams)1003      - [15.2.5. Текстовый ввод-вывод](https://python-all.ru/2.7/library/io.html#text-i-o)1004      - [15.2.6. Продвинутые темы](https://python-all.ru/2.7/library/io.html#advanced-topics)10051006        - [15.2.6.1. Производительность](https://python-all.ru/2.7/library/io.html#performance)10071008          - [15.2.6.1.1. Двоичный ввод-вывод](https://python-all.ru/2.7/library/io.html#binary-i-o)1009          - [15.2.6.1.2. Текстовый ввод-вывод](https://python-all.ru/2.7/library/io.html#id1)1010        - [15.2.6.2. Многопоточность](https://python-all.ru/2.7/library/io.html#multi-threading)1011        - [15.2.6.3. Реентерабельность](https://python-all.ru/2.7/library/io.html#reentrancy)1012    - [15.3. `time` – Время и его преобразования](https://python-all.ru/2.7/library/time.html)1013    - [15.4. `argparse` – Парсер параметров командной строки, аргументов и подкоманд](https://python-all.ru/2.7/library/argparse.html)10141015      - [15.4.1. Пример](https://python-all.ru/2.7/library/argparse.html#example)10161017        - [15.4.1.1. Создание парсера](https://python-all.ru/2.7/library/argparse.html#creating-a-parser)1018        - [15.4.1.2. Добавление аргументов](https://python-all.ru/2.7/library/argparse.html#adding-arguments)1019        - [15.4.1.3. Разбор аргументов](https://python-all.ru/2.7/library/argparse.html#parsing-arguments)1020      - [15.4.2. Объекты ArgumentParser](https://python-all.ru/2.7/library/argparse.html#argumentparser-objects)10211022        - [15.4.2.1. prog](https://python-all.ru/2.7/library/argparse.html#prog)1023        - [15.4.2.2. usage](https://python-all.ru/2.7/library/argparse.html#usage)1024        - [15.4.2.3. description](https://python-all.ru/2.7/library/argparse.html#description)1025        - [15.4.2.4. epilog](https://python-all.ru/2.7/library/argparse.html#epilog)1026        - [15.4.2.5. parents](https://python-all.ru/2.7/library/argparse.html#parents)1027        - [15.4.2.6. formatter\_class](https://python-all.ru/2.7/library/argparse.html#formatter-class)1028        - [15.4.2.7. prefix\_chars](https://python-all.ru/2.7/library/argparse.html#prefix-chars)1029        - [15.4.2.8. fromfile\_prefix\_chars](https://python-all.ru/2.7/library/argparse.html#fromfile-prefix-chars)1030        - [15.4.2.9. argument\_default](https://python-all.ru/2.7/library/argparse.html#argument-default)1031        - [15.4.2.10. conflict\_handler](https://python-all.ru/2.7/library/argparse.html#conflict-handler)1032        - [15.4.2.11. add\_help](https://python-all.ru/2.7/library/argparse.html#add-help)1033      - [15.4.3. Метод add\_argument()](https://python-all.ru/2.7/library/argparse.html#the-add-argument-method)10341035        - [15.4.3.1. name или flags](https://python-all.ru/2.7/library/argparse.html#name-or-flags)1036        - [15.4.3.2. action](https://python-all.ru/2.7/library/argparse.html#action)1037        - [15.4.3.3. nargs](https://python-all.ru/2.7/library/argparse.html#nargs)1038        - [15.4.3.4. const](https://python-all.ru/2.7/library/argparse.html#const)1039        - [15.4.3.5. default](https://python-all.ru/2.7/library/argparse.html#default)1040        - [15.4.3.6. type](https://python-all.ru/2.7/library/argparse.html#type)1041        - [15.4.3.7. choices](https://python-all.ru/2.7/library/argparse.html#choices)1042        - [15.4.3.8. required](https://python-all.ru/2.7/library/argparse.html#required)1043        - [15.4.3.9. help](https://python-all.ru/2.7/library/argparse.html#help)1044        - [15.4.3.10. metavar](https://python-all.ru/2.7/library/argparse.html#metavar)1045        - [15.4.3.11. dest](https://python-all.ru/2.7/library/argparse.html#dest)1046        - [15.4.3.12. Классы действий](https://python-all.ru/2.7/library/argparse.html#action-classes)1047      - [15.4.4. Метод parse\_args()](https://python-all.ru/2.7/library/argparse.html#the-parse-args-method)10481049        - [15.4.4.1. Синтаксис значений опций](https://python-all.ru/2.7/library/argparse.html#option-value-syntax)1050        - [15.4.4.2. Недопустимые аргументы](https://python-all.ru/2.7/library/argparse.html#invalid-arguments)1051        - [15.4.4.3. Аргументы, содержащие `-`](https://python-all.ru/2.7/library/argparse.html#arguments-containing)1052        - [15.4.4.4. Сокращения аргументов (префиксное сопоставление)](https://python-all.ru/2.7/library/argparse.html#argument-abbreviations-prefix-matching)1053        - [15.4.4.5. Дополнительные возможности `sys.argv`](https://python-all.ru/2.7/library/argparse.html#beyond-sys-argv)1054        - [15.4.4.6. Объект Namespace](https://python-all.ru/2.7/library/argparse.html#the-namespace-object)1055      - [15.4.5. Другие утилиты](https://python-all.ru/2.7/library/argparse.html#other-utilities)10561057        - [15.4.5.1. Подкоманды](https://python-all.ru/2.7/library/argparse.html#sub-commands)1058        - [15.4.5.2. Объекты FileType](https://python-all.ru/2.7/library/argparse.html#filetype-objects)1059        - [15.4.5.3. Группы аргументов](https://python-all.ru/2.7/library/argparse.html#argument-groups)1060        - [15.4.5.4. Взаимное исключение](https://python-all.ru/2.7/library/argparse.html#mutual-exclusion)1061        - [15.4.5.5. Значения по умолчанию парсера](https://python-all.ru/2.7/library/argparse.html#parser-defaults)1062        - [15.4.5.6. Вывод справки](https://python-all.ru/2.7/library/argparse.html#printing-help)1063        - [15.4.5.7. Частичный разбор](https://python-all.ru/2.7/library/argparse.html#partial-parsing)1064        - [15.4.5.8. Настройка разбора файлов](https://python-all.ru/2.7/library/argparse.html#customizing-file-parsing)1065        - [15.4.5.9. Методы завершения](https://python-all.ru/2.7/library/argparse.html#exiting-methods)1066      - [15.4.6. Обновление кода optparse](https://python-all.ru/2.7/library/argparse.html#upgrading-optparse-code)1067    - [15.5. `optparse` – Парсер аргументов командной строки](https://python-all.ru/2.7/library/optparse.html)10681069      - [15.5.1. Общие сведения](https://python-all.ru/2.7/library/optparse.html#background)10701071        - [15.5.1.1. Терминология](https://python-all.ru/2.7/library/optparse.html#terminology)1072        - [15.5.1.2. Для чего нужны параметры?](https://python-all.ru/2.7/library/optparse.html#what-are-options-for)1073        - [15.5.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/2.7/library/optparse.html#what-are-positional-arguments-for)1074      - [15.5.2. Учебное пособие](https://python-all.ru/2.7/library/optparse.html#tutorial)10751076        - [15.5.2.1. Действия параметров](https://python-all.ru/2.7/library/optparse.html#understanding-option-actions)1077        - [15.5.2.2. Действие store](https://python-all.ru/2.7/library/optparse.html#the-store-action)1078        - [15.5.2.3. Обработка булевых (флаговых) параметров](https://python-all.ru/2.7/library/optparse.html#handling-boolean-flag-options)1079        - [15.5.2.4. Прочие действия](https://python-all.ru/2.7/library/optparse.html#other-actions)1080        - [15.5.2.5. Значения по умолчанию](https://python-all.ru/2.7/library/optparse.html#default-values)1081        - [15.5.2.6. Генерация справки](https://python-all.ru/2.7/library/optparse.html#generating-help)10821083          - [15.5.2.6.1. Группировка параметров](https://python-all.ru/2.7/library/optparse.html#grouping-options)1084        - [15.5.2.7. Вывод строки версии](https://python-all.ru/2.7/library/optparse.html#printing-a-version-string)1085        - [15.5.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/2.7/library/optparse.html#how-optparse-handles-errors)1086        - [15.5.2.9. Собираем всё вместе](https://python-all.ru/2.7/library/optparse.html#putting-it-all-together)1087      - [15.5.3. Справочное руководство](https://python-all.ru/2.7/library/optparse.html#reference-guide)10881089        - [15.5.3.1. Создание парсера](https://python-all.ru/2.7/library/optparse.html#creating-the-parser)1090        - [15.5.3.2. Заполнение парсера](https://python-all.ru/2.7/library/optparse.html#populating-the-parser)1091        - [15.5.3.3. Определение параметров](https://python-all.ru/2.7/library/optparse.html#defining-options)1092        - [15.5.3.4. Атрибуты параметров](https://python-all.ru/2.7/library/optparse.html#option-attributes)1093        - [15.5.3.5. Стандартные действия параметров](https://python-all.ru/2.7/library/optparse.html#standard-option-actions)1094        - [15.5.3.6. Стандартные типы параметров](https://python-all.ru/2.7/library/optparse.html#standard-option-types)1095        - [15.5.3.7. Разбор аргументов](https://python-all.ru/2.7/library/optparse.html#parsing-arguments)1096        - [15.5.3.8. Запросы и изменение парсера параметров](https://python-all.ru/2.7/library/optparse.html#querying-and-manipulating-your-option-parser)1097        - [15.5.3.9. Конфликты между параметрами](https://python-all.ru/2.7/library/optparse.html#conflicts-between-options)1098        - [15.5.3.10. Очистка](https://python-all.ru/2.7/library/optparse.html#cleanup)1099        - [15.5.3.11. Прочие методы](https://python-all.ru/2.7/library/optparse.html#other-methods)1100      - [15.5.4. Колбэки параметров](https://python-all.ru/2.7/library/optparse.html#option-callbacks)11011102        - [15.5.4.1. Определение параметра-колбэка](https://python-all.ru/2.7/library/optparse.html#defining-a-callback-option)1103        - [15.5.4.2. Как вызываются колбэки](https://python-all.ru/2.7/library/optparse.html#how-callbacks-are-called)1104        - [15.5.4.3. Возбуждение ошибок в колбэке](https://python-all.ru/2.7/library/optparse.html#raising-errors-in-a-callback)1105        - [15.5.4.4. Пример колбэка 1: тривиальный колбэк](https://python-all.ru/2.7/library/optparse.html#callback-example-1-trivial-callback)1106        - [15.5.4.5. Пример колбэка 2: проверка порядка опций](https://python-all.ru/2.7/library/optparse.html#callback-example-2-check-option-order)1107        - [15.5.4.6. Пример колбэка 3: проверка порядка опций (обобщённая)](https://python-all.ru/2.7/library/optparse.html#callback-example-3-check-option-order-generalized)1108        - [15.5.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/2.7/library/optparse.html#callback-example-4-check-arbitrary-condition)1109        - [15.5.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/2.7/library/optparse.html#callback-example-5-fixed-arguments)1110        - [15.5.4.9. Пример колбэка 6: переменные аргументы](https://python-all.ru/2.7/library/optparse.html#callback-example-6-variable-arguments)1111      - [15.5.5. Расширение `optparse`](https://python-all.ru/2.7/library/optparse.html#extending-optparse)11121113        - [15.5.5.1. Добавление новых типов](https://python-all.ru/2.7/library/optparse.html#adding-new-types)1114        - [15.5.5.2. Добавление новых действий](https://python-all.ru/2.7/library/optparse.html#adding-new-actions)1115    - [15.6. `getopt` – Парсер опций командной строки в стиле C](https://python-all.ru/2.7/library/getopt.html)1116    - [15.7. `logging` – Средство журналирования для Python](https://python-all.ru/2.7/library/logging.html)11171118      - [15.7.1. Объекты Logger](https://python-all.ru/2.7/library/logging.html#logger-objects)1119      - [15.7.2. Уровни журналирования](https://python-all.ru/2.7/library/logging.html#logging-levels)1120      - [15.7.3. Объекты обработчиков](https://python-all.ru/2.7/library/logging.html#handler-objects)1121      - [15.7.4. Объекты форматирования](https://python-all.ru/2.7/library/logging.html#formatter-objects)1122      - [15.7.5. Объекты фильтрации](https://python-all.ru/2.7/library/logging.html#filter-objects)1123      - [15.7.6. Объекты LogRecord](https://python-all.ru/2.7/library/logging.html#logrecord-objects)1124      - [15.7.7. Атрибуты LogRecord](https://python-all.ru/2.7/library/logging.html#logrecord-attributes)1125      - [15.7.8. Объекты LoggerAdapter](https://python-all.ru/2.7/library/logging.html#loggeradapter-objects)1126      - [15.7.9. Потокобезопасность](https://python-all.ru/2.7/library/logging.html#thread-safety)1127      - [15.7.10. Функции уровня модуля](https://python-all.ru/2.7/library/logging.html#module-level-functions)1128      - [15.7.11. Интеграция с модулем warnings](https://python-all.ru/2.7/library/logging.html#integration-with-the-warnings-module)1129    - [15.8. `logging.config` – Конфигурация журналирования](https://python-all.ru/2.7/library/logging.config.html)11301131      - [15.8.1. Функции конфигурации](https://python-all.ru/2.7/library/logging.config.html#configuration-functions)1132      - [15.8.2. Схема словаря конфигурации](https://python-all.ru/2.7/library/logging.config.html#configuration-dictionary-schema)11331134        - [15.8.2.1. Подробности схемы словаря](https://python-all.ru/2.7/library/logging.config.html#dictionary-schema-details)1135        - [15.8.2.2. Инкрементальная конфигурация](https://python-all.ru/2.7/library/logging.config.html#incremental-configuration)1136        - [15.8.2.3. Связи объектов](https://python-all.ru/2.7/library/logging.config.html#object-connections)1137        - [15.8.2.4. Определяемые пользователем объекты](https://python-all.ru/2.7/library/logging.config.html#user-defined-objects)1138        - [15.8.2.5. Доступ к внешним объектам](https://python-all.ru/2.7/library/logging.config.html#access-to-external-objects)1139        - [15.8.2.6. Доступ к внутренним объектам](https://python-all.ru/2.7/library/logging.config.html#access-to-internal-objects)1140        - [15.8.2.7. Разрешение импорта и пользовательские импортёры](https://python-all.ru/2.7/library/logging.config.html#import-resolution-and-custom-importers)1141      - [15.8.3. Формат конфигурационного файла](https://python-all.ru/2.7/library/logging.config.html#configuration-file-format)1142    - [15.9. `logging.handlers` – Обработчики журналирования](https://python-all.ru/2.7/library/logging.handlers.html)11431144      - [15.9.1. StreamHandler](https://python-all.ru/2.7/library/logging.handlers.html#streamhandler)1145      - [15.9.2. FileHandler](https://python-all.ru/2.7/library/logging.handlers.html#filehandler)1146      - [15.9.3. NullHandler](https://python-all.ru/2.7/library/logging.handlers.html#nullhandler)1147      - [15.9.4. WatchedFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#watchedfilehandler)1148      - [15.9.5. RotatingFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#rotatingfilehandler)1149      - [15.9.6. TimedRotatingFileHandler](https://python-all.ru/2.7/library/logging.handlers.html#timedrotatingfilehandler)1150      - [15.9.7. SocketHandler](https://python-all.ru/2.7/library/logging.handlers.html#sockethandler)1151      - [15.9.8. DatagramHandler](https://python-all.ru/2.7/library/logging.handlers.html#datagramhandler)1152      - [15.9.9. SysLogHandler](https://python-all.ru/2.7/library/logging.handlers.html#sysloghandler)1153      - [15.9.10. NTEventLogHandler](https://python-all.ru/2.7/library/logging.handlers.html#nteventloghandler)1154      - [15.9.11. SMTPHandler](https://python-all.ru/2.7/library/logging.handlers.html#smtphandler)1155      - [15.9.12. MemoryHandler](https://python-all.ru/2.7/library/logging.handlers.html#memoryhandler)1156      - [15.9.13. HTTPHandler](https://python-all.ru/2.7/library/logging.handlers.html#httphandler)1157    - [15.10. `getpass` – Переносимый ввод пароля](https://python-all.ru/2.7/library/getpass.html)1158    - [15.11. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/2.7/library/curses.html)11591160      - [15.11.1. Функции](https://python-all.ru/2.7/library/curses.html#functions)1161      - [15.11.2. Объекты окон](https://python-all.ru/2.7/library/curses.html#window-objects)1162      - [15.11.3. Константы](https://python-all.ru/2.7/library/curses.html#constants)1163    - [15.12. `curses.textpad` – Виджет ввода текста для программ с curses](https://python-all.ru/2.7/library/curses.html#module-curses.textpad)11641165      - [15.12.1. Объекты Textbox](https://python-all.ru/2.7/library/curses.html#textbox-objects)1166    - [15.13. `curses.ascii` – Утилиты для символов ASCII](https://python-all.ru/2.7/library/curses.ascii.html)1167    - [15.14. `curses.panel` – Расширение стека панелей для curses](https://python-all.ru/2.7/library/curses.panel.html)11681169      - [15.14.1. Функции](https://python-all.ru/2.7/library/curses.panel.html#functions)1170      - [15.14.2. Объекты панелей](https://python-all.ru/2.7/library/curses.panel.html#panel-objects)1171    - [15.15. `platform` – Доступ к идентификационным данным нижележащей платформы](https://python-all.ru/2.7/library/platform.html)11721173      - [15.15.1. Кроссплатформенные](https://python-all.ru/2.7/library/platform.html#cross-platform)1174      - [15.15.2. Платформа Java](https://python-all.ru/2.7/library/platform.html#java-platform)1175      - [15.15.3. Платформа Windows](https://python-all.ru/2.7/library/platform.html#windows-platform)11761177        - [15.15.3.1. Особенности Win95/98](https://python-all.ru/2.7/library/platform.html#win95-98-specific)1178      - [15.15.4. Платформа Mac OS](https://python-all.ru/2.7/library/platform.html#mac-os-platform)1179      - [15.15.5. Платформы Unix](https://python-all.ru/2.7/library/platform.html#unix-platforms)1180    - [15.16. `errno` – Стандартные системные символы errno](https://python-all.ru/2.7/library/errno.html)1181    - [15.17. `ctypes` – Библиотека внешних функций для Python](https://python-all.ru/2.7/library/ctypes.html)11821183      - [15.17.1. Руководство по ctypes](https://python-all.ru/2.7/library/ctypes.html#ctypes-tutorial)11841185        - [15.17.1.1. Загрузка динамически подключаемых библиотек](https://python-all.ru/2.7/library/ctypes.html#loading-dynamic-link-libraries)1186        - [15.17.1.2. Доступ к функциям из загруженных DLL](https://python-all.ru/2.7/library/ctypes.html#accessing-functions-from-loaded-dlls)1187        - [15.17.1.3. Вызов функций](https://python-all.ru/2.7/library/ctypes.html#calling-functions)1188        - [15.17.1.4. Базовые типы данных](https://python-all.ru/2.7/library/ctypes.html#fundamental-data-types)1189        - [15.17.1.5. Вызов функций (продолжение)](https://python-all.ru/2.7/library/ctypes.html#calling-functions-continued)1190        - [15.17.1.6. Вызов функций с собственными пользовательскими типами данных](https://python-all.ru/2.7/library/ctypes.html#calling-functions-with-your-own-custom-data-types)1191        - [15.17.1.7. Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/2.7/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)1192        - [15.17.1.8. Типы возвращаемых значений](https://python-all.ru/2.7/library/ctypes.html#return-types)1193        - [15.17.1.9. Передача указателей (или передача параметров по ссылке)](https://python-all.ru/2.7/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)1194        - [15.17.1.10. Структуры и объединения](https://python-all.ru/2.7/library/ctypes.html#structures-and-unions)1195        - [15.17.1.11. Выравнивание структур/объединений и порядок байтов](https://python-all.ru/2.7/library/ctypes.html#structure-union-alignment-and-byte-order)1196        - [15.17.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/2.7/library/ctypes.html#bit-fields-in-structures-and-unions)1197        - [15.17.1.13. Массивы](https://python-all.ru/2.7/library/ctypes.html#arrays)1198        - [15.17.1.14. Указатели](https://python-all.ru/2.7/library/ctypes.html#pointers)1199        - [15.17.1.15. Преобразования типов](https://python-all.ru/2.7/library/ctypes.html#type-conversions)1200        - [15.17.1.16. Неполные типы](https://python-all.ru/2.7/library/ctypes.html#incomplete-types)1201        - [15.17.1.17. Функции обратного вызова](https://python-all.ru/2.7/library/ctypes.html#callback-functions)1202        - [15.17.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/2.7/library/ctypes.html#accessing-values-exported-from-dlls)1203        - [15.17.1.19. Неожиданности](https://python-all.ru/2.7/library/ctypes.html#surprises)1204        - [15.17.1.20. Типы данных переменного размера](https://python-all.ru/2.7/library/ctypes.html#variable-sized-data-types)1205      - [15.17.2. Справочник по ctypes](https://python-all.ru/2.7/library/ctypes.html#ctypes-reference)12061207        - [15.17.2.1. Поиск разделяемых библиотек](https://python-all.ru/2.7/library/ctypes.html#finding-shared-libraries)1208        - [15.17.2.2. Загрузка разделяемых библиотек](https://python-all.ru/2.7/library/ctypes.html#loading-shared-libraries)1209        - [15.17.2.3. Внешние функции](https://python-all.ru/2.7/library/ctypes.html#foreign-functions)1210        - [15.17.2.4. Прототипы функций](https://python-all.ru/2.7/library/ctypes.html#function-prototypes)1211        - [15.17.2.5. Вспомогательные функции](https://python-all.ru/2.7/library/ctypes.html#utility-functions)1212        - [15.17.2.6. Типы данных](https://python-all.ru/2.7/library/ctypes.html#data-types)1213        - [15.17.2.7. Базовые типы данных](https://python-all.ru/2.7/library/ctypes.html#ctypes-fundamental-data-types-2)1214        - [15.17.2.8. Структурированные типы данных](https://python-all.ru/2.7/library/ctypes.html#structured-data-types)1215        - [15.17.2.9. Массивы и указатели](https://python-all.ru/2.7/library/ctypes.html#arrays-and-pointers)1216  - [16. Дополнительные службы операционной системы](https://python-all.ru/2.7/library/someos.html)12171218    - [16.1. `select` – Ожидание завершения ввода-вывода](https://python-all.ru/2.7/library/select.html)12191220      - [16.1.1. Объекты опроса по переднему фронту и по уровню (epoll)](https://python-all.ru/2.7/library/select.html#edge-and-level-trigger-polling-epoll-objects)1221      - [16.1.2. Объекты опроса](https://python-all.ru/2.7/library/select.html#polling-objects)1222      - [16.1.3. Объекты kqueue](https://python-all.ru/2.7/library/select.html#kqueue-objects)1223      - [16.1.4. Объекты kevent](https://python-all.ru/2.7/library/select.html#kevent-objects)1224    - [16.2. `threading` – Интерфейс потоков высокого уровня](https://python-all.ru/2.7/library/threading.html)12251226      - [16.2.1. Объекты потоков](https://python-all.ru/2.7/library/threading.html#thread-objects)1227      - [16.2.2. Объекты блокировок](https://python-all.ru/2.7/library/threading.html#lock-objects)1228      - [16.2.3. Объекты RLock](https://python-all.ru/2.7/library/threading.html#rlock-objects)1229      - [16.2.4. Объекты Condition](https://python-all.ru/2.7/library/threading.html#condition-objects)1230      - [16.2.5. Объекты семафоров](https://python-all.ru/2.7/library/threading.html#semaphore-objects)12311232        - [16.2.5.1. `Semaphore` Пример](https://python-all.ru/2.7/library/threading.html#semaphore-example)1233      - [16.2.6. Объекты событий](https://python-all.ru/2.7/library/threading.html#event-objects)1234      - [16.2.7. Объекты таймеров](https://python-all.ru/2.7/library/threading.html#timer-objects)1235      - [16.2.8. Использование блокировок, условий и семафоров в операторе `with`](https://python-all.ru/2.7/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement)1236      - [16.2.9. Импорт в многопоточном коде](https://python-all.ru/2.7/library/threading.html#importing-in-threaded-code)1237    - [16.3. `thread` – Множественные потоки управления](https://python-all.ru/2.7/library/thread.html)1238    - [16.4. `dummy_threading` – Прямая замена модуля `threading`](https://python-all.ru/2.7/library/dummy_threading.html)1239    - [16.5. `dummy_thread` – Прямая замена модуля `thread`](https://python-all.ru/2.7/library/dummy_thread.html)1240    - [16.6. `multiprocessing` – Интерфейс «потоков» на основе процессов](https://python-all.ru/2.7/library/multiprocessing.html)12411242      - [16.6.1. Введение](https://python-all.ru/2.7/library/multiprocessing.html#introduction)12431244        - [16.6.1.1. Класс `Process`](https://python-all.ru/2.7/library/multiprocessing.html#the-process-class)1245        - [16.6.1.2. Обмен объектами между процессами](https://python-all.ru/2.7/library/multiprocessing.html#exchanging-objects-between-processes)1246        - [16.6.1.3. Синхронизация между процессами](https://python-all.ru/2.7/library/multiprocessing.html#synchronization-between-processes)1247        - [16.6.1.4. Совместное использование состояния между процессами](https://python-all.ru/2.7/library/multiprocessing.html#sharing-state-between-processes)1248        - [16.6.1.5. Использование пула рабочих процессов](https://python-all.ru/2.7/library/multiprocessing.html#using-a-pool-of-workers)1249      - [16.6.2. Справочник](https://python-all.ru/2.7/library/multiprocessing.html#reference)12501251        - [16.6.2.1. `Process` и исключения](https://python-all.ru/2.7/library/multiprocessing.html#process-and-exceptions)1252        - [16.6.2.2. Каналы и очереди](https://python-all.ru/2.7/library/multiprocessing.html#pipes-and-queues)1253        - [16.6.2.3. Разное](https://python-all.ru/2.7/library/multiprocessing.html#miscellaneous)1254        - [16.6.2.4. Объекты соединений](https://python-all.ru/2.7/library/multiprocessing.html#connection-objects)1255        - [16.6.2.5. Примитивы синхронизации](https://python-all.ru/2.7/library/multiprocessing.html#synchronization-primitives)1256        - [16.6.2.6. Разделяемые объекты `ctypes`](https://python-all.ru/2.7/library/multiprocessing.html#shared-ctypes-objects)12571258          - [16.6.2.6.1. Модуль `multiprocessing.sharedctypes`](https://python-all.ru/2.7/library/multiprocessing.html#module-multiprocessing.sharedctypes)1259        - [16.6.2.7. Менеджеры](https://python-all.ru/2.7/library/multiprocessing.html#managers)12601261          - [16.6.2.7.1. Настраиваемые менеджеры](https://python-all.ru/2.7/library/multiprocessing.html#customized-managers)1262          - [16.6.2.7.2. Использование удалённого менеджера](https://python-all.ru/2.7/library/multiprocessing.html#using-a-remote-manager)1263        - [16.6.2.8. Прокси-объекты](https://python-all.ru/2.7/library/multiprocessing.html#proxy-objects)12641265          - [16.6.2.8.1. Очистка](https://python-all.ru/2.7/library/multiprocessing.html#cleanup)1266        - [16.6.2.9. Пулы процессов](https://python-all.ru/2.7/library/multiprocessing.html#module-multiprocessing.pool)1267        - [16.6.2.10. Прослушиватели и клиенты](https://python-all.ru/2.7/library/multiprocessing.html#module-multiprocessing.connection)12681269          - [16.6.2.10.1. Форматы адресов](https://python-all.ru/2.7/library/multiprocessing.html#address-formats)1270        - [16.6.2.11. Ключи аутентификации](https://python-all.ru/2.7/library/multiprocessing.html#authentication-keys)1271        - [16.6.2.12. Логирование](https://python-all.ru/2.7/library/multiprocessing.html#logging)1272        - [16.6.2.13. Модуль `multiprocessing.dummy`](https://python-all.ru/2.7/library/multiprocessing.html#module-multiprocessing.dummy)1273      - [16.6.3. Рекомендации по программированию](https://python-all.ru/2.7/library/multiprocessing.html#programming-guidelines)12741275        - [16.6.3.1. Все платформы](https://python-all.ru/2.7/library/multiprocessing.html#all-platforms)1276        - [16.6.3.2. Windows](https://python-all.ru/2.7/library/multiprocessing.html#windows)1277      - [16.6.4. Примеры](https://python-all.ru/2.7/library/multiprocessing.html#examples)1278    - [16.7. `mmap` – Поддержка файлов с отображением в память](https://python-all.ru/2.7/library/mmap.html)1279    - [16.8. `readline` – Интерфейс GNU readline](https://python-all.ru/2.7/library/readline.html)12801281      - [16.8.1. Файл инициализации](https://python-all.ru/2.7/library/readline.html#init-file)1282      - [16.8.2. Буфер строки](https://python-all.ru/2.7/library/readline.html#line-buffer)1283      - [16.8.3. Файл истории](https://python-all.ru/2.7/library/readline.html#history-file)1284      - [16.8.4. Список истории](https://python-all.ru/2.7/library/readline.html#history-list)1285      - [16.8.5. Хуки запуска](https://python-all.ru/2.7/library/readline.html#startup-hooks)1286      - [16.8.6. Автодополнение](https://python-all.ru/2.7/library/readline.html#completion)1287      - [16.8.7. Пример](https://python-all.ru/2.7/library/readline.html#example)1288    - [16.9. `rlcompleter` – Функция автодополнения для GNU readline](https://python-all.ru/2.7/library/rlcompleter.html)12891290      - [16.9.1. Объекты автодополнения](https://python-all.ru/2.7/library/rlcompleter.html#completer-objects)1291  - [17. Межпроцессное взаимодействие и сетевые возможности](https://python-all.ru/2.7/library/ipc.html)12921293    - [17.1. `subprocess` – Управление подпроцессами](https://python-all.ru/2.7/library/subprocess.html)12941295      - [17.1.1. Использование модуля `subprocess`](https://python-all.ru/2.7/library/subprocess.html#using-the-subprocess-module)12961297        - [17.1.1.1. Часто используемые аргументы](https://python-all.ru/2.7/library/subprocess.html#frequently-used-arguments)1298        - [17.1.1.2. Конструктор Popen](https://python-all.ru/2.7/library/subprocess.html#popen-constructor)1299        - [17.1.1.3. Исключения](https://python-all.ru/2.7/library/subprocess.html#exceptions)1300        - [17.1.1.4. Безопасность](https://python-all.ru/2.7/library/subprocess.html#security)1301      - [17.1.2. Объекты Popen](https://python-all.ru/2.7/library/subprocess.html#popen-objects)1302      - [17.1.3. Вспомогательные функции Popen для Windows](https://python-all.ru/2.7/library/subprocess.html#windows-popen-helpers)13031304        - [17.1.3.1. Константы](https://python-all.ru/2.7/library/subprocess.html#constants)1305      - [17.1.4. Замена старых функций модулем `subprocess`](https://python-all.ru/2.7/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)13061307        - [17.1.4.1. Замена обратных кавычек оболочки /bin/sh](https://python-all.ru/2.7/library/subprocess.html#replacing-bin-sh-shell-backquote)1308        - [17.1.4.2. Замена конвейера оболочки](https://python-all.ru/2.7/library/subprocess.html#replacing-shell-pipeline)1309        - [17.1.4.3. Замена `os.system()`](https://python-all.ru/2.7/library/subprocess.html#replacing-os-system)1310        - [17.1.4.4. Замена семейства `os.spawn`](https://python-all.ru/2.7/library/subprocess.html#replacing-the-os-spawn-family)1311        - [17.1.4.5. Замена `os.popen()`, `os.popen2()`, `os.popen3()`](https://python-all.ru/2.7/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3)1312        - [17.1.4.6. Замена функций из модуля `popen2`](https://python-all.ru/2.7/library/subprocess.html#replacing-functions-from-the-popen2-module)1313      - [17.1.5. Примечания](https://python-all.ru/2.7/library/subprocess.html#notes)13141315        - [17.1.5.1. Преобразование последовательности аргументов в строку в Windows](https://python-all.ru/2.7/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows)1316    - [17.2. `socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/2.7/library/socket.html)13171318      - [17.2.1. Объекты сокетов](https://python-all.ru/2.7/library/socket.html#socket-objects)1319      - [17.2.2. Пример](https://python-all.ru/2.7/library/socket.html#example)1320    - [17.3. `ssl` – Обёртка TLS/SSL для объектов сокетов](https://python-all.ru/2.7/library/ssl.html)13211322      - [17.3.1. Функции, константы и исключения](https://python-all.ru/2.7/library/ssl.html#functions-constants-and-exceptions)13231324        - [17.3.1.1. Создание сокетов](https://python-all.ru/2.7/library/ssl.html#socket-creation)1325        - [17.3.1.2. Создание контекста](https://python-all.ru/2.7/library/ssl.html#context-creation)1326        - [17.3.1.3. Генерация случайных чисел](https://python-all.ru/2.7/library/ssl.html#random-generation)1327        - [17.3.1.4. Обработка сертификатов](https://python-all.ru/2.7/library/ssl.html#certificate-handling)1328        - [17.3.1.5. Константы](https://python-all.ru/2.7/library/ssl.html#constants)1329      - [17.3.2. SSL-сокеты](https://python-all.ru/2.7/library/ssl.html#ssl-sockets)1330      - [17.3.3. SSL-контексты](https://python-all.ru/2.7/library/ssl.html#ssl-contexts)1331      - [17.3.4. Сертификаты](https://python-all.ru/2.7/library/ssl.html#certificates)13321333        - [17.3.4.1. Цепочки сертификатов](https://python-all.ru/2.7/library/ssl.html#certificate-chains)1334        - [17.3.4.2. Сертификаты CA](https://python-all.ru/2.7/library/ssl.html#ca-certificates)1335        - [17.3.4.3. Совмещённые ключ и сертификат](https://python-all.ru/2.7/library/ssl.html#combined-key-and-certificate)1336        - [17.3.4.4. Самоподписанные сертификаты](https://python-all.ru/2.7/library/ssl.html#self-signed-certificates)1337      - [17.3.5. Примеры](https://python-all.ru/2.7/library/ssl.html#examples)13381339        - [17.3.5.1. Проверка поддержки SSL](https://python-all.ru/2.7/library/ssl.html#testing-for-ssl-support)1340        - [17.3.5.2. Работа на стороне клиента](https://python-all.ru/2.7/library/ssl.html#client-side-operation)1341        - [17.3.5.3. Работа на стороне сервера](https://python-all.ru/2.7/library/ssl.html#server-side-operation)1342      - [17.3.6. Замечания по неблокирующим сокетам](https://python-all.ru/2.7/library/ssl.html#notes-on-non-blocking-sockets)1343      - [17.3.7. Вопросы безопасности](https://python-all.ru/2.7/library/ssl.html#security-considerations)13441345        - [17.3.7.1. Лучшие значения по умолчанию](https://python-all.ru/2.7/library/ssl.html#best-defaults)1346        - [17.3.7.2. Ручная настройка](https://python-all.ru/2.7/library/ssl.html#manual-settings)13471348          - [17.3.7.2.1. Проверка сертификатов](https://python-all.ru/2.7/library/ssl.html#verifying-certificates)1349          - [17.3.7.2.2. Версии протоколов](https://python-all.ru/2.7/library/ssl.html#protocol-versions)1350          - [17.3.7.2.3. Выбор шифров](https://python-all.ru/2.7/library/ssl.html#cipher-selection)1351        - [17.3.7.3. Многопроцессная обработка](https://python-all.ru/2.7/library/ssl.html#multi-processing)1352      - [17.3.8. Поддержка LibreSSL](https://python-all.ru/2.7/library/ssl.html#libressl-support)1353    - [17.4. `signal` – Установка обработчиков для асинхронных событий](https://python-all.ru/2.7/library/signal.html)13541355      - [17.4.1. Пример](https://python-all.ru/2.7/library/signal.html#example)1356    - [17.5. `popen2` – Подпроцессы с доступными потоками ввода-вывода](https://python-all.ru/2.7/library/popen2.html)13571358      - [17.5.1. Объекты Popen3 и Popen4](https://python-all.ru/2.7/library/popen2.html#popen3-and-popen4-objects)1359      - [17.5.2. Проблемы управления потоком](https://python-all.ru/2.7/library/popen2.html#flow-control-issues)1360    - [17.6. `asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/2.7/library/asyncore.html)13611362      - [17.6.1. Пример asyncore: простой HTTP-клиент](https://python-all.ru/2.7/library/asyncore.html#asyncore-example-basic-http-client)1363      - [17.6.2. Пример asyncore: простой эхо-сервер](https://python-all.ru/2.7/library/asyncore.html#asyncore-example-basic-echo-server)1364    - [17.7. `asynchat` – Асинхронный обработчик команд/ответов сокетов](https://python-all.ru/2.7/library/asynchat.html)13651366      - [17.7.1. asynchat – вспомогательные классы](https://python-all.ru/2.7/library/asynchat.html#asynchat-auxiliary-classes)1367      - [17.7.2. Пример asynchat](https://python-all.ru/2.7/library/asynchat.html#asynchat-example)1368  - [18. Обработка интернет-данных](https://python-all.ru/2.7/library/netdata.html)13691370    - [18.1. `email` – Пакет для работы с электронной почтой и MIME](https://python-all.ru/2.7/library/email.html)13711372      - [18.1.1. `email.message`: Представление сообщения электронной почты](https://python-all.ru/2.7/library/email.message.html)1373      - [18.1.2. `email.parser`: Разбор сообщений электронной почты](https://python-all.ru/2.7/library/email.parser.html)13741375        - [18.1.2.1. API FeedParser](https://python-all.ru/2.7/library/email.parser.html#feedparser-api)1376        - [18.1.2.2. API класса Parser](https://python-all.ru/2.7/library/email.parser.html#parser-class-api)1377        - [18.1.2.3. Дополнительные замечания](https://python-all.ru/2.7/library/email.parser.html#additional-notes)1378      - [18.1.3. `email.generator`: Генерация MIME-документов](https://python-all.ru/2.7/library/email.generator.html)1379      - [18.1.4. `email.mime`: Создание объектов email и MIME с нуля](https://python-all.ru/2.7/library/email.mime.html)1380      - [18.1.5. `email.header`: Интернационализированные заголовки](https://python-all.ru/2.7/library/email.header.html)1381      - [18.1.6. `email.charset`: Представление наборов символов](https://python-all.ru/2.7/library/email.charset.html)1382      - [18.1.7. `email.encoders`: Кодировщики](https://python-all.ru/2.7/library/email.encoders.html)1383      - [18.1.8. `email.errors`: Классы исключений и дефектов](https://python-all.ru/2.7/library/email.errors.html)1384      - [18.1.9. `email.utils`: Прочие утилиты](https://python-all.ru/2.7/library/email.utils.html)1385      - [18.1.10. `email.iterators`: Итераторы](https://python-all.ru/2.7/library/email.iterators.html)1386      - [18.1.11. `email`: Примеры](https://python-all.ru/2.7/library/email-examples.html)1387      - [18.1.12. История пакета](https://python-all.ru/2.7/library/email.html#package-history)1388      - [18.1.13. Отличия от `mimelib`](https://python-all.ru/2.7/library/email.html#differences-from-mimelib)1389    - [18.2. `json` – Кодировщик и декодировщик JSON](https://python-all.ru/2.7/library/json.html)13901391      - [18.2.1. Базовое использование](https://python-all.ru/2.7/library/json.html#basic-usage)1392      - [18.2.2. Кодировщики и декодировщики](https://python-all.ru/2.7/library/json.html#encoders-and-decoders)1393      - [18.2.3. Соответствие стандартам и совместимость](https://python-all.ru/2.7/library/json.html#standard-compliance-and-interoperability)13941395        - [18.2.3.1. Кодировки символов](https://python-all.ru/2.7/library/json.html#character-encodings)1396        - [18.2.3.2. Бесконечные и NaN числовые значения](https://python-all.ru/2.7/library/json.html#infinite-and-nan-number-values)1397        - [18.2.3.3. Повторяющиеся имена внутри объекта](https://python-all.ru/2.7/library/json.html#repeated-names-within-an-object)1398        - [18.2.3.4. Значения верхнего уровня, не являющиеся объектом или массивом](https://python-all.ru/2.7/library/json.html#top-level-non-object-non-array-values)1399        - [18.2.3.5. Ограничения реализации](https://python-all.ru/2.7/library/json.html#implementation-limitations)1400    - [18.3. `mailcap` – Обработка файлов mailcap](https://python-all.ru/2.7/library/mailcap.html)1401    - [18.4. `mailbox` – Управление почтовыми ящиками в различных форматах](https://python-all.ru/2.7/library/mailbox.html)14021403      - [18.4.1. Объекты `Mailbox`](https://python-all.ru/2.7/library/mailbox.html#mailbox-objects)14041405        - [18.4.1.1. `Maildir`](https://python-all.ru/2.7/library/mailbox.html#maildir)1406        - [18.4.1.2. `mbox`](https://python-all.ru/2.7/library/mailbox.html#mbox)1407        - [18.4.1.3. `MH`](https://python-all.ru/2.7/library/mailbox.html#mh)1408        - [18.4.1.4. `Babyl`](https://python-all.ru/2.7/library/mailbox.html#babyl)1409        - [18.4.1.5. `MMDF`](https://python-all.ru/2.7/library/mailbox.html#mmdf)1410      - [18.4.2. Объекты `Message`](https://python-all.ru/2.7/library/mailbox.html#message-objects)14111412        - [18.4.2.1. `MaildirMessage`](https://python-all.ru/2.7/library/mailbox.html#maildirmessage)1413        - [18.4.2.2. `mboxMessage`](https://python-all.ru/2.7/library/mailbox.html#mboxmessage)1414        - [18.4.2.3. `MHMessage`](https://python-all.ru/2.7/library/mailbox.html#mhmessage)1415        - [18.4.2.4. `BabylMessage`](https://python-all.ru/2.7/library/mailbox.html#babylmessage)1416        - [18.4.2.5. `MMDFMessage`](https://python-all.ru/2.7/library/mailbox.html#mmdfmessage)1417      - [18.4.3. Исключения](https://python-all.ru/2.7/library/mailbox.html#exceptions)1418      - [18.4.4. Устаревшие классы и методы](https://python-all.ru/2.7/library/mailbox.html#deprecated-classes-and-methods)1419      - [18.4.5. Примеры](https://python-all.ru/2.7/library/mailbox.html#examples)1420    - [18.5. `mhlib` – Доступ к почтовым ящикам MH](https://python-all.ru/2.7/library/mhlib.html)14211422      - [18.5.1. Объекты MH](https://python-all.ru/2.7/library/mhlib.html#mh-objects)1423      - [18.5.2. Объекты папок](https://python-all.ru/2.7/library/mhlib.html#folder-objects)1424      - [18.5.3. Объекты сообщений](https://python-all.ru/2.7/library/mhlib.html#message-objects)1425    - [18.6. `mimetools` – Инструменты для разбора MIME-сообщений](https://python-all.ru/2.7/library/mimetools.html)14261427      - [18.6.1. Дополнительные методы объектов сообщений](https://python-all.ru/2.7/library/mimetools.html#additional-methods-of-message-objects)1428    - [18.7. `mimetypes` – Сопоставление имён файлов с MIME-типами](https://python-all.ru/2.7/library/mimetypes.html)14291430      - [18.7.1. Объекты MimeTypes](https://python-all.ru/2.7/library/mimetypes.html#mimetypes-objects)1431    - [18.8. `MimeWriter` – Универсальный инструмент для записи MIME-файлов](https://python-all.ru/2.7/library/mimewriter.html)14321433      - [18.8.1. Объекты MimeWriter](https://python-all.ru/2.7/library/mimewriter.html#mimewriter-objects)1434    - [18.9. `mimify` – Обработка MIME почтовых сообщений](https://python-all.ru/2.7/library/mimify.html)1435    - [18.10. `multifile` – Поддержка файлов с отдельными частями](https://python-all.ru/2.7/library/multifile.html)14361437      - [18.10.1. Объекты MultiFile](https://python-all.ru/2.7/library/multifile.html#multifile-objects)1438      - [18.10.2. Пример `MultiFile`](https://python-all.ru/2.7/library/multifile.html#multifile-example)1439    - [18.11. `rfc822` – Разбор заголовков почтовых сообщений RFC 2822](https://python-all.ru/2.7/library/rfc822.html)14401441      - [18.11.1. Объекты Message](https://python-all.ru/2.7/library/rfc822.html#message-objects)1442      - [18.11.2. Объекты AddressList](https://python-all.ru/2.7/library/rfc822.html#addresslist-objects)1443    - [18.12. `base64` – Кодирование данных Base16, Base32, Base64 по RFC 3548](https://python-all.ru/2.7/library/base64.html)1444    - [18.13. `binhex` – Кодирование и декодирование файлов binhex4](https://python-all.ru/2.7/library/binhex.html)14451446      - [18.13.1. Примечания](https://python-all.ru/2.7/library/binhex.html#notes)1447    - [18.14. `binascii` – Преобразование между двоичным и ASCII](https://python-all.ru/2.7/library/binascii.html)1448    - [18.15. `quopri` – Кодирование и декодирование MIME-данных в формате quoted-printable](https://python-all.ru/2.7/library/quopri.html)1449    - [18.16. `uu` – Кодирование и декодирование файлов uuencode](https://python-all.ru/2.7/library/uu.html)1450  - [19. Инструменты обработки структурированной разметки](https://python-all.ru/2.7/library/markup.html)14511452    - [19.1. `HTMLParser` – Простой анализатор HTML и XHTML](https://python-all.ru/2.7/library/htmlparser.html)14531454      - [19.1.1. Пример приложения для парсинга HTML](https://python-all.ru/2.7/library/htmlparser.html#example-html-parser-application)1455      - [19.1.2. Методы `HTMLParser`](https://python-all.ru/2.7/library/htmlparser.html#htmlparser-methods)1456      - [19.1.3. Примеры](https://python-all.ru/2.7/library/htmlparser.html#examples)1457    - [19.2. `sgmllib` – Простой анализатор SGML](https://python-all.ru/2.7/library/sgmllib.html)1458    - [19.3. `htmllib` – Анализатор HTML-документов](https://python-all.ru/2.7/library/htmllib.html)14591460      - [19.3.1. Объекты HTMLParser](https://python-all.ru/2.7/library/htmllib.html#htmlparser-objects)1461    - [19.4. `htmlentitydefs` – Определения общих HTML-сущностей](https://python-all.ru/2.7/library/htmllib.html#module-htmlentitydefs)1462    - [19.5. Модули обработки XML](https://python-all.ru/2.7/library/xml.html)1463    - [19.6. Уязвимости XML](https://python-all.ru/2.7/library/xml.html#xml-vulnerabilities)14641465      - [19.6.1. Пакеты defused](https://python-all.ru/2.7/library/xml.html#defused-packages)1466    - [19.7. `xml.etree.ElementTree` – XML API ElementTree](https://python-all.ru/2.7/library/xml.etree.elementtree.html)14671468      - [19.7.1. Учебное руководство](https://python-all.ru/2.7/library/xml.etree.elementtree.html#tutorial)14691470        - [19.7.1.1. XML-дерево и элементы](https://python-all.ru/2.7/library/xml.etree.elementtree.html#xml-tree-and-elements)1471        - [19.7.1.2. Разбор XML](https://python-all.ru/2.7/library/xml.etree.elementtree.html#parsing-xml)1472        - [19.7.1.3. Поиск значимых элементов](https://python-all.ru/2.7/library/xml.etree.elementtree.html#finding-interesting-elements)1473        - [19.7.1.4. Изменение XML-файла](https://python-all.ru/2.7/library/xml.etree.elementtree.html#modifying-an-xml-file)1474        - [19.7.1.5. Построение XML-документов](https://python-all.ru/2.7/library/xml.etree.elementtree.html#building-xml-documents)1475        - [19.7.1.6. Разбор XML с пространствами имён](https://python-all.ru/2.7/library/xml.etree.elementtree.html#parsing-xml-with-namespaces)1476        - [19.7.1.7. Дополнительные ресурсы](https://python-all.ru/2.7/library/xml.etree.elementtree.html#additional-resources)1477      - [19.7.2. Поддержка XPath](https://python-all.ru/2.7/library/xml.etree.elementtree.html#xpath-support)14781479        - [19.7.2.1. Пример](https://python-all.ru/2.7/library/xml.etree.elementtree.html#example)1480        - [19.7.2.2. Поддерживаемый синтаксис XPath](https://python-all.ru/2.7/library/xml.etree.elementtree.html#supported-xpath-syntax)1481      - [19.7.3. Справочник](https://python-all.ru/2.7/library/xml.etree.elementtree.html#reference)14821483        - [19.7.3.1. Функции](https://python-all.ru/2.7/library/xml.etree.elementtree.html#functions)1484        - [19.7.3.2. Объекты Element](https://python-all.ru/2.7/library/xml.etree.elementtree.html#element-objects)1485        - [19.7.3.3. Объекты ElementTree](https://python-all.ru/2.7/library/xml.etree.elementtree.html#elementtree-objects)1486        - [19.7.3.4. Объекты QName](https://python-all.ru/2.7/library/xml.etree.elementtree.html#qname-objects)1487        - [19.7.3.5. Объекты TreeBuilder](https://python-all.ru/2.7/library/xml.etree.elementtree.html#treebuilder-objects)1488        - [19.7.3.6. Объекты XMLParser](https://python-all.ru/2.7/library/xml.etree.elementtree.html#xmlparser-objects)1489    - [19.8. `xml.dom` – API объектной модели документа](https://python-all.ru/2.7/library/xml.dom.html)14901491      - [19.8.1. Содержимое модуля](https://python-all.ru/2.7/library/xml.dom.html#module-contents)1492      - [19.8.2. Объекты в DOM](https://python-all.ru/2.7/library/xml.dom.html#objects-in-the-dom)14931494        - [19.8.2.1. Объекты DOMImplementation](https://python-all.ru/2.7/library/xml.dom.html#domimplementation-objects)1495        - [19.8.2.2. Объекты Node](https://python-all.ru/2.7/library/xml.dom.html#node-objects)1496        - [19.8.2.3. Объекты NodeList](https://python-all.ru/2.7/library/xml.dom.html#nodelist-objects)1497        - [19.8.2.4. Объекты DocumentType](https://python-all.ru/2.7/library/xml.dom.html#documenttype-objects)1498        - [19.8.2.5. Объекты Document](https://python-all.ru/2.7/library/xml.dom.html#document-objects)1499        - [19.8.2.6. Объекты Element](https://python-all.ru/2.7/library/xml.dom.html#element-objects)1500        - [19.8.2.7. Объекты Attr](https://python-all.ru/2.7/library/xml.dom.html#attr-objects)1501        - [19.8.2.8. Объекты NamedNodeMap](https://python-all.ru/2.7/library/xml.dom.html#namednodemap-objects)1502        - [19.8.2.9. Объекты Comment](https://python-all.ru/2.7/library/xml.dom.html#comment-objects)1503        - [19.8.2.10. Объекты Text и CDATASection](https://python-all.ru/2.7/library/xml.dom.html#text-and-cdatasection-objects)1504        - [19.8.2.11. Объекты ProcessingInstruction](https://python-all.ru/2.7/library/xml.dom.html#processinginstruction-objects)1505        - [19.8.2.12. Исключения](https://python-all.ru/2.7/library/xml.dom.html#exceptions)1506      - [19.8.3. Соответствие](https://python-all.ru/2.7/library/xml.dom.html#conformance)15071508        - [19.8.3.1. Отображение типов](https://python-all.ru/2.7/library/xml.dom.html#type-mapping)1509        - [19.8.3.2. Методы доступа](https://python-all.ru/2.7/library/xml.dom.html#accessor-methods)1510    - [19.9. `xml.dom.minidom` – Минимальная реализация DOM](https://python-all.ru/2.7/library/xml.dom.minidom.html)15111512      - [19.9.1. Объекты DOM](https://python-all.ru/2.7/library/xml.dom.minidom.html#dom-objects)1513      - [19.9.2. Пример DOM](https://python-all.ru/2.7/library/xml.dom.minidom.html#dom-example)1514      - [19.9.3. minidom и стандарт DOM](https://python-all.ru/2.7/library/xml.dom.minidom.html#minidom-and-the-dom-standard)1515    - [19.10. `xml.dom.pulldom` – Поддержка построения частичных деревьев DOM](https://python-all.ru/2.7/library/xml.dom.pulldom.html)15161517      - [19.10.1. Объекты DOMEventStream](https://python-all.ru/2.7/library/xml.dom.pulldom.html#domeventstream-objects)1518    - [19.11. `xml.sax` – Поддержка парсеров SAX2](https://python-all.ru/2.7/library/xml.sax.html)15191520      - [19.11.1. Объекты SAXException](https://python-all.ru/2.7/library/xml.sax.html#saxexception-objects)1521    - [19.12. `xml.sax.handler` – Базовые классы для обработчиков SAX](https://python-all.ru/2.7/library/xml.sax.handler.html)15221523      - [19.12.1. Объекты ContentHandler](https://python-all.ru/2.7/library/xml.sax.handler.html#contenthandler-objects)1524      - [19.12.2. Объекты DTDHandler](https://python-all.ru/2.7/library/xml.sax.handler.html#dtdhandler-objects)1525      - [19.12.3. Объекты EntityResolver](https://python-all.ru/2.7/library/xml.sax.handler.html#entityresolver-objects)1526      - [19.12.4. Объекты ErrorHandler](https://python-all.ru/2.7/library/xml.sax.handler.html#errorhandler-objects)1527    - [19.13. `xml.sax.saxutils` – Утилиты SAX](https://python-all.ru/2.7/library/xml.sax.utils.html)1528    - [19.14. `xml.sax.xmlreader` – Интерфейс для XML-парсеров](https://python-all.ru/2.7/library/xml.sax.reader.html)15291530      - [19.14.1. Объекты XMLReader](https://python-all.ru/2.7/library/xml.sax.reader.html#xmlreader-objects)1531      - [19.14.2. Объекты IncrementalParser](https://python-all.ru/2.7/library/xml.sax.reader.html#incrementalparser-objects)1532      - [19.14.3. Объекты Locator](https://python-all.ru/2.7/library/xml.sax.reader.html#locator-objects)1533      - [19.14.4. Объекты InputSource](https://python-all.ru/2.7/library/xml.sax.reader.html#inputsource-objects)1534      - [19.14.5. Интерфейс `Attributes`](https://python-all.ru/2.7/library/xml.sax.reader.html#the-attributes-interface)1535      - [19.14.6. Интерфейс `AttributesNS`](https://python-all.ru/2.7/library/xml.sax.reader.html#the-attributesns-interface)1536    - [19.15. `xml.parsers.expat` – Быстрый разбор XML с помощью Expat](https://python-all.ru/2.7/library/pyexpat.html)15371538      - [19.15.1. Объекты XMLParser](https://python-all.ru/2.7/library/pyexpat.html#xmlparser-objects)1539      - [19.15.2. Исключения ExpatError](https://python-all.ru/2.7/library/pyexpat.html#expaterror-exceptions)1540      - [19.15.3. Пример](https://python-all.ru/2.7/library/pyexpat.html#example)1541      - [19.15.4. Описания моделей содержимого](https://python-all.ru/2.7/library/pyexpat.html#content-model-descriptions)1542      - [19.15.5. Константы ошибок Expat](https://python-all.ru/2.7/library/pyexpat.html#expat-error-constants)1543  - [20. Интернет-протоколы и поддержка](https://python-all.ru/2.7/library/internet.html)15441545    - [20.1. `webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/2.7/library/webbrowser.html)15461547      - [20.1.1. Объекты контроллера браузера](https://python-all.ru/2.7/library/webbrowser.html#browser-controller-objects)1548    - [20.2. `cgi` – Поддержка Common Gateway Interface](https://python-all.ru/2.7/library/cgi.html)15491550      - [20.2.1. Введение](https://python-all.ru/2.7/library/cgi.html#introduction)1551      - [20.2.2. Использование модуля cgi](https://python-all.ru/2.7/library/cgi.html#using-the-cgi-module)1552      - [20.2.3. Интерфейс высокого уровня](https://python-all.ru/2.7/library/cgi.html#higher-level-interface)1553      - [20.2.4. Устаревшие классы](https://python-all.ru/2.7/library/cgi.html#old-classes)1554      - [20.2.5. Функции](https://python-all.ru/2.7/library/cgi.html#functions)1555      - [20.2.6. Забота о безопасности](https://python-all.ru/2.7/library/cgi.html#caring-about-security)1556      - [20.2.7. Установка CGI-скрипта в системе Unix](https://python-all.ru/2.7/library/cgi.html#installing-your-cgi-script-on-a-unix-system)1557      - [20.2.8. Тестирование CGI-сценария](https://python-all.ru/2.7/library/cgi.html#testing-your-cgi-script)1558      - [20.2.9. Отладка CGI-сценариев](https://python-all.ru/2.7/library/cgi.html#debugging-cgi-scripts)1559      - [20.2.10. Типичные проблемы и их решения](https://python-all.ru/2.7/library/cgi.html#common-problems-and-solutions)1560    - [20.3. `cgitb` – Менеджер трассировки для CGI-сценариев](https://python-all.ru/2.7/library/cgitb.html)1561    - [20.4. `wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/2.7/library/wsgiref.html)15621563      - [20.4.1. `wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/2.7/library/wsgiref.html#module-wsgiref.util)1564      - [20.4.2. `wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/2.7/library/wsgiref.html#module-wsgiref.headers)1565      - [20.4.3. `wsgiref.simple_server` – Простой HTTP-сервер WSGI](https://python-all.ru/2.7/library/wsgiref.html#module-wsgiref.simple_server)1566      - [20.4.4. `wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/2.7/library/wsgiref.html#module-wsgiref.validate)1567      - [20.4.5. `wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/2.7/library/wsgiref.html#module-wsgiref.handlers)1568      - [20.4.6. Примеры](https://python-all.ru/2.7/library/wsgiref.html#examples)1569    - [20.5. `urllib` – Открытие произвольных ресурсов по URL](https://python-all.ru/2.7/library/urllib.html)15701571      - [20.5.1. Интерфейс высокого уровня](https://python-all.ru/2.7/library/urllib.html#high-level-interface)1572      - [20.5.2. Вспомогательные функции](https://python-all.ru/2.7/library/urllib.html#utility-functions)1573      - [20.5.3. Объекты-открыватели URL](https://python-all.ru/2.7/library/urllib.html#url-opener-objects)1574      - [20.5.4. `urllib` Ограничения](https://python-all.ru/2.7/library/urllib.html#urllib-restrictions)1575      - [20.5.5. Примеры](https://python-all.ru/2.7/library/urllib.html#examples)1576    - [20.6. `urllib2` – Расширяемая библиотека для открытия URL](https://python-all.ru/2.7/library/urllib2.html)15771578      - [20.6.1. Объекты запроса](https://python-all.ru/2.7/library/urllib2.html#request-objects)1579      - [20.6.2. Объекты OpenerDirector](https://python-all.ru/2.7/library/urllib2.html#openerdirector-objects)1580      - [20.6.3. Объекты BaseHandler](https://python-all.ru/2.7/library/urllib2.html#basehandler-objects)1581      - [20.6.4. Объекты HTTPRedirectHandler](https://python-all.ru/2.7/library/urllib2.html#httpredirecthandler-objects)1582      - [20.6.5. Объекты HTTPCookieProcessor](https://python-all.ru/2.7/library/urllib2.html#httpcookieprocessor-objects)1583      - [20.6.6. Объекты ProxyHandler](https://python-all.ru/2.7/library/urllib2.html#proxyhandler-objects)1584      - [20.6.7. Объекты HTTPPasswordMgr](https://python-all.ru/2.7/library/urllib2.html#httppasswordmgr-objects)1585      - [20.6.8. Объекты AbstractBasicAuthHandler](https://python-all.ru/2.7/library/urllib2.html#abstractbasicauthhandler-objects)1586      - [20.6.9. Объекты HTTPBasicAuthHandler](https://python-all.ru/2.7/library/urllib2.html#httpbasicauthhandler-objects)1587      - [20.6.10. Объекты ProxyBasicAuthHandler](https://python-all.ru/2.7/library/urllib2.html#proxybasicauthhandler-objects)1588      - [20.6.11. Объекты AbstractDigestAuthHandler](https://python-all.ru/2.7/library/urllib2.html#abstractdigestauthhandler-objects)1589      - [20.6.12. Объекты HTTPDigestAuthHandler](https://python-all.ru/2.7/library/urllib2.html#httpdigestauthhandler-objects)1590      - [20.6.13. Объекты ProxyDigestAuthHandler](https://python-all.ru/2.7/library/urllib2.html#proxydigestauthhandler-objects)1591      - [20.6.14. Объекты HTTPHandler](https://python-all.ru/2.7/library/urllib2.html#httphandler-objects)1592      - [20.6.15. Объекты HTTPSHandler](https://python-all.ru/2.7/library/urllib2.html#httpshandler-objects)1593      - [20.6.16. Объекты FileHandler](https://python-all.ru/2.7/library/urllib2.html#filehandler-objects)1594      - [20.6.17. Объекты FTPHandler](https://python-all.ru/2.7/library/urllib2.html#ftphandler-objects)1595      - [20.6.18. Объекты CacheFTPHandler](https://python-all.ru/2.7/library/urllib2.html#cacheftphandler-objects)1596      - [20.6.19. Объекты UnknownHandler](https://python-all.ru/2.7/library/urllib2.html#unknownhandler-objects)1597      - [20.6.20. Объекты HTTPErrorProcessor](https://python-all.ru/2.7/library/urllib2.html#httperrorprocessor-objects)1598      - [20.6.21. Примеры](https://python-all.ru/2.7/library/urllib2.html#examples)1599    - [20.7. `httplib` – Клиент протокола HTTP](https://python-all.ru/2.7/library/httplib.html)16001601      - [20.7.1. Объекты HTTPConnection](https://python-all.ru/2.7/library/httplib.html#httpconnection-objects)1602      - [20.7.2. Объекты HTTPResponse](https://python-all.ru/2.7/library/httplib.html#httpresponse-objects)1603      - [20.7.3. Примеры](https://python-all.ru/2.7/library/httplib.html#examples)1604    - [20.8. `ftplib` – Клиент протокола FTP](https://python-all.ru/2.7/library/ftplib.html)16051606      - [20.8.1. Объекты FTP](https://python-all.ru/2.7/library/ftplib.html#ftp-objects)1607      - [20.8.2. Объекты FTP\_TLS](https://python-all.ru/2.7/library/ftplib.html#ftp-tls-objects)1608    - [20.9. `poplib` – Клиент протокола POP3](https://python-all.ru/2.7/library/poplib.html)16091610      - [20.9.1. Объекты POP3](https://python-all.ru/2.7/library/poplib.html#pop3-objects)1611      - [20.9.2. Пример POP3](https://python-all.ru/2.7/library/poplib.html#pop3-example)1612    - [20.10. `imaplib` – Клиент протокола IMAP4](https://python-all.ru/2.7/library/imaplib.html)16131614      - [20.10.1. Объекты IMAP4](https://python-all.ru/2.7/library/imaplib.html#imap4-objects)1615      - [20.10.2. Пример IMAP4](https://python-all.ru/2.7/library/imaplib.html#imap4-example)1616    - [20.11. `nntplib` – Клиент протокола NNTP](https://python-all.ru/2.7/library/nntplib.html)16171618      - [20.11.1. Объекты NNTP](https://python-all.ru/2.7/library/nntplib.html#nntp-objects)1619    - [20.12. `smtplib` – Клиент протокола SMTP](https://python-all.ru/2.7/library/smtplib.html)16201621      - [20.12.1. Объекты SMTP](https://python-all.ru/2.7/library/smtplib.html#smtp-objects)1622      - [20.12.2. Пример SMTP](https://python-all.ru/2.7/library/smtplib.html#smtp-example)1623    - [20.13. `smtpd` – Сервер SMTP](https://python-all.ru/2.7/library/smtpd.html)16241625      - [20.13.1. Объекты SMTPServer](https://python-all.ru/2.7/library/smtpd.html#smtpserver-objects)1626      - [20.13.2. Объекты DebuggingServer](https://python-all.ru/2.7/library/smtpd.html#debuggingserver-objects)1627      - [20.13.3. Объекты PureProxy](https://python-all.ru/2.7/library/smtpd.html#pureproxy-objects)1628      - [20.13.4. Объекты MailmanProxy](https://python-all.ru/2.7/library/smtpd.html#mailmanproxy-objects)1629    - [20.14. `telnetlib` – Telnet-клиент](https://python-all.ru/2.7/library/telnetlib.html)16301631      - [20.14.1. Объекты Telnet](https://python-all.ru/2.7/library/telnetlib.html#telnet-objects)1632      - [20.14.2. Пример Telnet](https://python-all.ru/2.7/library/telnetlib.html#telnet-example)1633    - [20.15. `uuid` – объекты UUID в соответствии с RFC 4122](https://python-all.ru/2.7/library/uuid.html)16341635      - [20.15.1. Пример](https://python-all.ru/2.7/library/uuid.html#example)1636    - [20.16. `urlparse` – разбор URL на компоненты](https://python-all.ru/2.7/library/urlparse.html)16371638      - [20.16.1. Результаты `urlparse()` и `urlsplit()`](https://python-all.ru/2.7/library/urlparse.html#results-of-urlparse-and-urlsplit)1639    - [20.17. `SocketServer` – каркас для сетевых серверов](https://python-all.ru/2.7/library/socketserver.html)16401641      - [20.17.1. Примечания по созданию сервера](https://python-all.ru/2.7/library/socketserver.html#server-creation-notes)1642      - [20.17.2. Объекты сервера](https://python-all.ru/2.7/library/socketserver.html#server-objects)1643      - [20.17.3. Объекты обработчика запросов](https://python-all.ru/2.7/library/socketserver.html#request-handler-objects)1644      - [20.17.4. Примеры](https://python-all.ru/2.7/library/socketserver.html#examples)16451646        - [20.17.4.1. `SocketServer.TCPServer` Пример](https://python-all.ru/2.7/library/socketserver.html#socketserver-tcpserver-example)1647        - [20.17.4.2. `SocketServer.UDPServer` Пример](https://python-all.ru/2.7/library/socketserver.html#socketserver-udpserver-example)1648        - [20.17.4.3. Асинхронные примеси](https://python-all.ru/2.7/library/socketserver.html#asynchronous-mixins)1649    - [20.18. `BaseHTTPServer` – базовый HTTP-сервер](https://python-all.ru/2.7/library/basehttpserver.html)16501651      - [20.18.1. Дополнительные примеры](https://python-all.ru/2.7/library/basehttpserver.html#more-examples)1652    - [20.19. `SimpleHTTPServer` – простой обработчик HTTP-запросов](https://python-all.ru/2.7/library/simplehttpserver.html)1653    - [20.20. `CGIHTTPServer` – обработчик HTTP-запросов с поддержкой CGI](https://python-all.ru/2.7/library/cgihttpserver.html)1654    - [20.21. `cookielib` – управление cookie для HTTP-клиентов](https://python-all.ru/2.7/library/cookielib.html)16551656      - [20.21.1. Объекты CookieJar и FileCookieJar](https://python-all.ru/2.7/library/cookielib.html#cookiejar-and-filecookiejar-objects)1657      - [20.21.2. Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/2.7/library/cookielib.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)1658      - [20.21.3. Объекты CookiePolicy](https://python-all.ru/2.7/library/cookielib.html#cookiepolicy-objects)1659      - [20.21.4. Объекты DefaultCookiePolicy](https://python-all.ru/2.7/library/cookielib.html#defaultcookiepolicy-objects)1660      - [20.21.5. Объекты Cookie](https://python-all.ru/2.7/library/cookielib.html#cookie-objects)1661      - [20.21.6. Примеры](https://python-all.ru/2.7/library/cookielib.html#examples)1662    - [20.22. `Cookie` – управление состоянием HTTP](https://python-all.ru/2.7/library/cookie.html)16631664      - [20.22.1. Объекты Cookie](https://python-all.ru/2.7/library/cookie.html#cookie-objects)1665      - [20.22.2. Объекты Morsel](https://python-all.ru/2.7/library/cookie.html#morsel-objects)1666      - [20.22.3. Пример](https://python-all.ru/2.7/library/cookie.html#example)1667    - [20.23. `xmlrpclib` – клиентский доступ к XML-RPC](https://python-all.ru/2.7/library/xmlrpclib.html)16681669      - [20.23.1. Объекты ServerProxy](https://python-all.ru/2.7/library/xmlrpclib.html#serverproxy-objects)1670      - [20.23.2. Объекты Boolean](https://python-all.ru/2.7/library/xmlrpclib.html#boolean-objects)1671      - [20.23.3. Объекты DateTime](https://python-all.ru/2.7/library/xmlrpclib.html#datetime-objects)1672      - [20.23.4. Объекты Binary](https://python-all.ru/2.7/library/xmlrpclib.html#binary-objects)1673      - [20.23.5. Объекты Fault](https://python-all.ru/2.7/library/xmlrpclib.html#fault-objects)1674      - [20.23.6. Объекты ProtocolError](https://python-all.ru/2.7/library/xmlrpclib.html#protocolerror-objects)1675      - [20.23.7. Объекты MultiCall](https://python-all.ru/2.7/library/xmlrpclib.html#multicall-objects)1676      - [20.23.8. Вспомогательные функции](https://python-all.ru/2.7/library/xmlrpclib.html#convenience-functions)1677      - [20.23.9. Пример использования клиента](https://python-all.ru/2.7/library/xmlrpclib.html#example-of-client-usage)1678      - [20.23.10. Пример использования клиента и сервера](https://python-all.ru/2.7/library/xmlrpclib.html#example-of-client-and-server-usage)1679    - [20.24. `SimpleXMLRPCServer` – Базовый сервер XML-RPC](https://python-all.ru/2.7/library/simplexmlrpcserver.html)16801681      - [20.24.1. Объекты SimpleXMLRPCServer](https://python-all.ru/2.7/library/simplexmlrpcserver.html#simplexmlrpcserver-objects)16821683        - [20.24.1.1. Пример SimpleXMLRPCServer](https://python-all.ru/2.7/library/simplexmlrpcserver.html#simplexmlrpcserver-example)1684      - [20.24.2. CGIXMLRPCRequestHandler](https://python-all.ru/2.7/library/simplexmlrpcserver.html#cgixmlrpcrequesthandler)1685    - [20.25. `DocXMLRPCServer` – Самодокументирующийся сервер XML-RPC](https://python-all.ru/2.7/library/docxmlrpcserver.html)16861687      - [20.25.1. Объекты DocXMLRPCServer](https://python-all.ru/2.7/library/docxmlrpcserver.html#docxmlrpcserver-objects)1688      - [20.25.2. DocCGIXMLRPCRequestHandler](https://python-all.ru/2.7/library/docxmlrpcserver.html#doccgixmlrpcrequesthandler)1689  - [21. Мультимедийные службы](https://python-all.ru/2.7/library/mm.html)16901691    - [21.1. `audioop` – Работа с необработанными аудиоданными](https://python-all.ru/2.7/library/audioop.html)1692    - [21.2. `imageop` – Работа с необработанными данными изображений](https://python-all.ru/2.7/library/imageop.html)1693    - [21.3. `aifc` – Чтение и запись файлов AIFF и AIFC](https://python-all.ru/2.7/library/aifc.html)1694    - [21.4. `sunau` – Чтение и запись файлов Sun AU](https://python-all.ru/2.7/library/sunau.html)16951696      - [21.4.1. Объекты AU\_read](https://python-all.ru/2.7/library/sunau.html#au-read-objects)1697      - [21.4.2. Объекты AU\_write](https://python-all.ru/2.7/library/sunau.html#au-write-objects)1698    - [21.5. `wave` – Чтение и запись файлов WAV](https://python-all.ru/2.7/library/wave.html)16991700      - [21.5.1. Объекты Wave\_read](https://python-all.ru/2.7/library/wave.html#wave-read-objects)1701      - [21.5.2. Объекты Wave\_write](https://python-all.ru/2.7/library/wave.html#wave-write-objects)1702    - [21.6. `chunk` – Чтение чанковых данных IFF](https://python-all.ru/2.7/library/chunk.html)1703    - [21.7. `colorsys` – Преобразования между цветовыми системами](https://python-all.ru/2.7/library/colorsys.html)1704    - [21.8. `imghdr` – Определение типа изображения](https://python-all.ru/2.7/library/imghdr.html)1705    - [21.9. `sndhdr` – Определение типа звукового файла](https://python-all.ru/2.7/library/sndhdr.html)1706    - [21.10. `ossaudiodev` – Доступ к аудиоустройствам, совместимым с OSS](https://python-all.ru/2.7/library/ossaudiodev.html)17071708      - [21.10.1. Объекты аудиоустройств](https://python-all.ru/2.7/library/ossaudiodev.html#audio-device-objects)1709      - [21.10.2. Объекты микшерных устройств](https://python-all.ru/2.7/library/ossaudiodev.html#mixer-device-objects)1710  - [22. Интернационализация](https://python-all.ru/2.7/library/i18n.html)17111712    - [22.1. `gettext` – Службы многоязычной интернационализации](https://python-all.ru/2.7/library/gettext.html)17131714      - [22.1.1. API GNU **gettext**](https://python-all.ru/2.7/library/gettext.html#gnu-gettext-api)1715      - [22.1.2. API на основе классов](https://python-all.ru/2.7/library/gettext.html#class-based-api)17161717        - [22.1.2.1. Класс `NullTranslations`](https://python-all.ru/2.7/library/gettext.html#the-nulltranslations-class)1718        - [22.1.2.2. Класс `GNUTranslations`](https://python-all.ru/2.7/library/gettext.html#the-gnutranslations-class)1719        - [22.1.2.3. Поддержка каталогов сообщений Solaris](https://python-all.ru/2.7/library/gettext.html#solaris-message-catalog-support)1720        - [22.1.2.4. Конструктор Catalog](https://python-all.ru/2.7/library/gettext.html#the-catalog-constructor)1721      - [22.1.3. Интернационализация программ и модулей](https://python-all.ru/2.7/library/gettext.html#internationalizing-your-programs-and-modules)17221723        - [22.1.3.1. Локализация модуля](https://python-all.ru/2.7/library/gettext.html#localizing-your-module)1724        - [22.1.3.2. Локализация приложения](https://python-all.ru/2.7/library/gettext.html#localizing-your-application)1725        - [22.1.3.3. Смена языка на лету](https://python-all.ru/2.7/library/gettext.html#changing-languages-on-the-fly)1726        - [22.1.3.4. Отложенные переводы](https://python-all.ru/2.7/library/gettext.html#deferred-translations)1727        - [22.1.3.5. `gettext()` vs. `lgettext()`](https://python-all.ru/2.7/library/gettext.html#gettext-vs-lgettext)1728      - [22.1.4. Благодарности](https://python-all.ru/2.7/library/gettext.html#acknowledgements)1729    - [22.2. `locale` – Службы интернационализации](https://python-all.ru/2.7/library/locale.html)17301731      - [22.2.1. Предыстория, подробности, советы и предостережения](https://python-all.ru/2.7/library/locale.html#background-details-hints-tips-and-caveats)1732      - [22.2.2. Для разработчиков расширений и программ, встраивающих Python](https://python-all.ru/2.7/library/locale.html#for-extension-writers-and-programs-that-embed-python)1733      - [22.2.3. Доступ к каталогам сообщений](https://python-all.ru/2.7/library/locale.html#access-to-message-catalogs)1734  - [23. Каркасы программ](https://python-all.ru/2.7/library/frameworks.html)17351736    - [23.1. `cmd` – Поддержка построчных командных интерпретаторов](https://python-all.ru/2.7/library/cmd.html)17371738      - [23.1.1. Объекты Cmd](https://python-all.ru/2.7/library/cmd.html#cmd-objects)1739    - [23.2. `shlex` – Простой лексический анализ](https://python-all.ru/2.7/library/shlex.html)17401741      - [23.2.1. Объекты shlex](https://python-all.ru/2.7/library/shlex.html#shlex-objects)1742      - [23.2.2. Правила разбора](https://python-all.ru/2.7/library/shlex.html#parsing-rules)1743  - [24. Графические пользовательские интерфейсы с Tk](https://python-all.ru/2.7/library/tk.html)17441745    - [24.1. `Tkinter` – Интерфейс Python к Tcl/Tk](https://python-all.ru/2.7/library/tkinter.html)17461747      - [24.1.1. Модули Tkinter](https://python-all.ru/2.7/library/tkinter.html#tkinter-modules)1748      - [24.1.2. Жизненный спасатель Tkinter](https://python-all.ru/2.7/library/tkinter.html#tkinter-life-preserver)17491750        - [24.1.2.1. Как использовать этот раздел](https://python-all.ru/2.7/library/tkinter.html#how-to-use-this-section)1751        - [24.1.2.2. Простая программа Hello World](https://python-all.ru/2.7/library/tkinter.html#a-simple-hello-world-program)1752      - [24.1.3. Очень быстрый взгляд на Tcl/Tk](https://python-all.ru/2.7/library/tkinter.html#a-very-quick-look-at-tcl-tk)1753      - [24.1.4. Отображение базового Tk в Tkinter](https://python-all.ru/2.7/library/tkinter.html#mapping-basic-tk-into-tkinter)1754      - [24.1.5. Как связаны Tk и Tkinter](https://python-all.ru/2.7/library/tkinter.html#how-tk-and-tkinter-are-related)1755      - [24.1.6. Удобный справочник](https://python-all.ru/2.7/library/tkinter.html#handy-reference)17561757        - [24.1.6.1. Настройка параметров](https://python-all.ru/2.7/library/tkinter.html#setting-options)1758        - [24.1.6.2. Упаковщик](https://python-all.ru/2.7/library/tkinter.html#the-packer)1759        - [24.1.6.3. Параметры упаковщика](https://python-all.ru/2.7/library/tkinter.html#packer-options)1760        - [24.1.6.4. Привязка переменных виджетов](https://python-all.ru/2.7/library/tkinter.html#coupling-widget-variables)1761        - [24.1.6.5. Менеджер окон](https://python-all.ru/2.7/library/tkinter.html#the-window-manager)1762        - [24.1.6.6. Типы данных параметров Tk](https://python-all.ru/2.7/library/tkinter.html#tk-option-data-types)1763        - [24.1.6.7. Привязки и события](https://python-all.ru/2.7/library/tkinter.html#bindings-and-events)1764        - [24.1.6.8. Параметр index](https://python-all.ru/2.7/library/tkinter.html#the-index-parameter)1765        - [24.1.6.9. Изображения](https://python-all.ru/2.7/library/tkinter.html#images)1766      - [24.1.7. Обработчики файлов](https://python-all.ru/2.7/library/tkinter.html#file-handlers)1767    - [24.2. `ttk` – Тематические виджеты Tk](https://python-all.ru/2.7/library/ttk.html)17681769      - [24.2.1. Использование Ttk](https://python-all.ru/2.7/library/ttk.html#using-ttk)1770      - [24.2.2. Виджеты Ttk](https://python-all.ru/2.7/library/ttk.html#ttk-widgets)1771      - [24.2.3. Виджет](https://python-all.ru/2.7/library/ttk.html#widget)17721773        - [24.2.3.1. Стандартные параметры](https://python-all.ru/2.7/library/ttk.html#standard-options)1774        - [24.2.3.2. Параметры прокручиваемого виджета](https://python-all.ru/2.7/library/ttk.html#scrollable-widget-options)1775        - [24.2.3.3. Параметры метки](https://python-all.ru/2.7/library/ttk.html#label-options)1776        - [24.2.3.4. Параметры совместимости](https://python-all.ru/2.7/library/ttk.html#compatibility-options)1777        - [24.2.3.5. Состояния виджетов](https://python-all.ru/2.7/library/ttk.html#widget-states)1778        - [24.2.3.6. ttk.Widget](https://python-all.ru/2.7/library/ttk.html#ttk-widget)1779      - [24.2.4. Combobox](https://python-all.ru/2.7/library/ttk.html#combobox)17801781        - [24.2.4.1. Параметры](https://python-all.ru/2.7/library/ttk.html#options)1782        - [24.2.4.2. Виртуальные события](https://python-all.ru/2.7/library/ttk.html#virtual-events)1783        - [24.2.4.3. ttk.Combobox](https://python-all.ru/2.7/library/ttk.html#ttk-combobox)1784      - [24.2.5. Notebook](https://python-all.ru/2.7/library/ttk.html#notebook)17851786        - [24.2.5.1. Параметры](https://python-all.ru/2.7/library/ttk.html#id1)1787        - [24.2.5.2. Параметры вкладок](https://python-all.ru/2.7/library/ttk.html#tab-options)1788        - [24.2.5.3. Идентификаторы вкладок](https://python-all.ru/2.7/library/ttk.html#tab-identifiers)1789        - [24.2.5.4. Виртуальные события](https://python-all.ru/2.7/library/ttk.html#id2)1790        - [24.2.5.5. ttk.Notebook](https://python-all.ru/2.7/library/ttk.html#ttk-notebook)1791      - [24.2.6. Progressbar](https://python-all.ru/2.7/library/ttk.html#progressbar)17921793        - [24.2.6.1. Параметры](https://python-all.ru/2.7/library/ttk.html#id3)1794        - [24.2.6.2. ttk.Progressbar](https://python-all.ru/2.7/library/ttk.html#ttk-progressbar)1795      - [24.2.7. Separator](https://python-all.ru/2.7/library/ttk.html#separator)17961797        - [24.2.7.1. Параметры](https://python-all.ru/2.7/library/ttk.html#id4)1798      - [24.2.8. Sizegrip](https://python-all.ru/2.7/library/ttk.html#sizegrip)17991800        - [24.2.8.1. Примечания для конкретных платформ](https://python-all.ru/2.7/library/ttk.html#platform-specific-notes)1801        - [24.2.8.2. Ошибки](https://python-all.ru/2.7/library/ttk.html#bugs)1802      - [24.2.9. Treeview](https://python-all.ru/2.7/library/ttk.html#treeview)18031804        - [24.2.9.1. Параметры](https://python-all.ru/2.7/library/ttk.html#id5)1805        - [24.2.9.2. Параметры элементов](https://python-all.ru/2.7/library/ttk.html#item-options)1806        - [24.2.9.3. Параметры тегов](https://python-all.ru/2.7/library/ttk.html#tag-options)1807        - [24.2.9.4. Идентификаторы столбцов](https://python-all.ru/2.7/library/ttk.html#column-identifiers)1808        - [24.2.9.5. Виртуальные события](https://python-all.ru/2.7/library/ttk.html#id6)1809        - [24.2.9.6. ttk.Treeview](https://python-all.ru/2.7/library/ttk.html#ttk-treeview)1810      - [24.2.10. Стилизация Ttk](https://python-all.ru/2.7/library/ttk.html#ttk-styling)18111812        - [24.2.10.1. Макеты](https://python-all.ru/2.7/library/ttk.html#layouts)1813    - [24.3. `Tix` – Расширения виджетов для Tk](https://python-all.ru/2.7/library/tix.html)18141815      - [24.3.1. Использование Tix](https://python-all.ru/2.7/library/tix.html#using-tix)1816      - [24.3.2. Виджеты Tix](https://python-all.ru/2.7/library/tix.html#tix-widgets)18171818        - [24.3.2.1. Базовые виджеты](https://python-all.ru/2.7/library/tix.html#basic-widgets)1819        - [24.3.2.2. Селекторы файлов](https://python-all.ru/2.7/library/tix.html#file-selectors)1820        - [24.3.2.3. Иерархический ListBox](https://python-all.ru/2.7/library/tix.html#hierarchical-listbox)1821        - [24.3.2.4. Табличный ListBox](https://python-all.ru/2.7/library/tix.html#tabular-listbox)1822        - [24.3.2.5. Виджеты-менеджеры](https://python-all.ru/2.7/library/tix.html#manager-widgets)1823        - [24.3.2.6. Типы изображений](https://python-all.ru/2.7/library/tix.html#image-types)1824        - [24.3.2.7. Прочие виджеты](https://python-all.ru/2.7/library/tix.html#miscellaneous-widgets)1825        - [24.3.2.8. Менеджер геометрии Form](https://python-all.ru/2.7/library/tix.html#form-geometry-manager)1826      - [24.3.3. Команды Tix](https://python-all.ru/2.7/library/tix.html#tix-commands)1827    - [24.4. `ScrolledText` – Виджет с прокруткой текста](https://python-all.ru/2.7/library/scrolledtext.html)1828    - [24.5. `turtle` – Графика Turtle для Tk](https://python-all.ru/2.7/library/turtle.html)18291830      - [24.5.1. Введение](https://python-all.ru/2.7/library/turtle.html#introduction)1831      - [24.5.2. Обзор доступных методов Turtle и Screen](https://python-all.ru/2.7/library/turtle.html#overview-over-available-turtle-and-screen-methods)18321833        - [24.5.2.1. Методы Turtle](https://python-all.ru/2.7/library/turtle.html#turtle-methods)1834        - [24.5.2.2. Методы TurtleScreen/Screen](https://python-all.ru/2.7/library/turtle.html#methods-of-turtlescreen-screen)1835      - [24.5.3. Методы RawTurtle/Turtle и соответствующие функции](https://python-all.ru/2.7/library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions)18361837        - [24.5.3.1. Движение Turtle](https://python-all.ru/2.7/library/turtle.html#turtle-motion)1838        - [24.5.3.2. Состояние Turtle](https://python-all.ru/2.7/library/turtle.html#tell-turtle-s-state)1839        - [24.5.3.3. Настройки измерения](https://python-all.ru/2.7/library/turtle.html#settings-for-measurement)1840        - [24.5.3.4. Управление пером](https://python-all.ru/2.7/library/turtle.html#pen-control)18411842          - [24.5.3.4.1. Состояние рисования](https://python-all.ru/2.7/library/turtle.html#drawing-state)1843          - [24.5.3.4.2. Управление цветом](https://python-all.ru/2.7/library/turtle.html#color-control)1844          - [24.5.3.4.3. Заливка](https://python-all.ru/2.7/library/turtle.html#filling)1845          - [24.5.3.4.4. Дополнительное управление рисованием](https://python-all.ru/2.7/library/turtle.html#more-drawing-control)1846        - [24.5.3.5. Состояние черепашки](https://python-all.ru/2.7/library/turtle.html#turtle-state)18471848          - [24.5.3.5.1. Видимость](https://python-all.ru/2.7/library/turtle.html#visibility)1849          - [24.5.3.5.2. Внешний вид](https://python-all.ru/2.7/library/turtle.html#appearance)1850        - [24.5.3.6. Использование событий](https://python-all.ru/2.7/library/turtle.html#using-events)1851        - [24.5.3.7. Специальные методы черепашки](https://python-all.ru/2.7/library/turtle.html#special-turtle-methods)1852        - [24.5.3.8. Экскурс об использовании составных форм](https://python-all.ru/2.7/library/turtle.html#excursus-about-the-use-of-compound-shapes)1853      - [24.5.4. Методы TurtleScreen/Screen и соответствующие функции](https://python-all.ru/2.7/library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions)18541855        - [24.5.4.1. Управление окном](https://python-all.ru/2.7/library/turtle.html#window-control)1856        - [24.5.4.2. Управление анимацией](https://python-all.ru/2.7/library/turtle.html#animation-control)1857        - [24.5.4.3. Использование событий экрана](https://python-all.ru/2.7/library/turtle.html#using-screen-events)1858        - [24.5.4.4. Настройки и специальные методы](https://python-all.ru/2.7/library/turtle.html#settings-and-special-methods)1859        - [24.5.4.5. Методы, специфичные для Screen (не наследуемые от TurtleScreen)](https://python-all.ru/2.7/library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen)1860      - [24.5.5. Публичные классы модуля `turtle`](https://python-all.ru/2.7/library/turtle.html#the-public-classes-of-the-module-turtle)1861      - [24.5.6. Справка и конфигурация](https://python-all.ru/2.7/library/turtle.html#help-and-configuration)18621863        - [24.5.6.1. Как пользоваться справкой](https://python-all.ru/2.7/library/turtle.html#how-to-use-help)1864        - [24.5.6.2. Перевод строк документации на разные языки](https://python-all.ru/2.7/library/turtle.html#translation-of-docstrings-into-different-languages)1865        - [24.5.6.3. Как настроить Screen и Turtles](https://python-all.ru/2.7/library/turtle.html#how-to-configure-screen-and-turtles)1866      - [24.5.7. Демонстрационные скрипты](https://python-all.ru/2.7/library/turtle.html#demo-scripts)1867    - [24.6. IDLE](https://python-all.ru/2.7/library/idle.html)18681869      - [24.6.1. Меню](https://python-all.ru/2.7/library/idle.html#menus)18701871        - [24.6.1.1. Меню «Файл» (оболочка и редактор)](https://python-all.ru/2.7/library/idle.html#file-menu-shell-and-editor)1872        - [24.6.1.2. Меню «Правка» (оболочка и редактор)](https://python-all.ru/2.7/library/idle.html#edit-menu-shell-and-editor)1873        - [24.6.1.3. Меню «Формат» (только окно редактора)](https://python-all.ru/2.7/library/idle.html#format-menu-editor-window-only)1874        - [24.6.1.4. Меню «Выполнить» (только окно редактора)](https://python-all.ru/2.7/library/idle.html#run-menu-editor-window-only)1875        - [24.6.1.5. Меню «Оболочка» (только окно оболочки)](https://python-all.ru/2.7/library/idle.html#shell-menu-shell-window-only)1876        - [24.6.1.6. Меню «Отладка» (только окно оболочки)](https://python-all.ru/2.7/library/idle.html#debug-menu-shell-window-only)1877        - [24.6.1.7. Меню «Параметры» (оболочка и редактор)](https://python-all.ru/2.7/library/idle.html#options-menu-shell-and-editor)1878        - [24.6.1.8. Меню «Окно» (оболочка и редактор)](https://python-all.ru/2.7/library/idle.html#window-menu-shell-and-editor)1879        - [24.6.1.9. Меню «Справка» (оболочка и редактор)](https://python-all.ru/2.7/library/idle.html#help-menu-shell-and-editor)1880        - [24.6.1.10. Контекстные меню](https://python-all.ru/2.7/library/idle.html#context-menus)1881      - [24.6.2. Редактирование и навигация](https://python-all.ru/2.7/library/idle.html#editing-and-navigation)18821883        - [24.6.2.1. Автоматический отступ](https://python-all.ru/2.7/library/idle.html#automatic-indentation)1884        - [24.6.2.2. Автодополнение](https://python-all.ru/2.7/library/idle.html#completions)1885        - [24.6.2.3. Подсказки к вызовам](https://python-all.ru/2.7/library/idle.html#calltips)1886        - [24.6.2.4. Окно оболочки Python](https://python-all.ru/2.7/library/idle.html#python-shell-window)1887        - [24.6.2.5. Цвета текста](https://python-all.ru/2.7/library/idle.html#text-colors)1888      - [24.6.3. Запуск и выполнение кода](https://python-all.ru/2.7/library/idle.html#startup-and-code-execution)18891890        - [24.6.3.1. Использование командной строки](https://python-all.ru/2.7/library/idle.html#command-line-usage)1891        - [24.6.3.2. Отличия IDLE от консоли](https://python-all.ru/2.7/library/idle.html#idle-console-differences)1892        - [24.6.3.3. Запуск без подпроцесса](https://python-all.ru/2.7/library/idle.html#running-without-a-subprocess)1893      - [24.6.4. Справка и настройки](https://python-all.ru/2.7/library/idle.html#help-and-preferences)18941895        - [24.6.4.1. Дополнительные источники справки](https://python-all.ru/2.7/library/idle.html#additional-help-sources)1896        - [24.6.4.2. Настройка параметров](https://python-all.ru/2.7/library/idle.html#setting-preferences)1897        - [24.6.4.3. Расширения](https://python-all.ru/2.7/library/idle.html#extensions)1898    - [24.7. Другие пакеты графического интерфейса пользователя](https://python-all.ru/2.7/library/othergui.html)1899  - [25. Инструменты разработки](https://python-all.ru/2.7/library/development.html)19001901    - [25.1. `pydoc` – генератор документации и справочная система](https://python-all.ru/2.7/library/pydoc.html)1902    - [25.2. `doctest` – тестирование интерактивных примеров Python](https://python-all.ru/2.7/library/doctest.html)19031904      - [25.2.1. Простое использование: проверка примеров в docstrings](https://python-all.ru/2.7/library/doctest.html#simple-usage-checking-examples-in-docstrings)1905      - [25.2.2. Простое использование: проверка примеров в текстовом файле](https://python-all.ru/2.7/library/doctest.html#simple-usage-checking-examples-in-a-text-file)1906      - [25.2.3. Как это работает](https://python-all.ru/2.7/library/doctest.html#how-it-works)19071908        - [25.2.3.1. Какие docstrings проверяются?](https://python-all.ru/2.7/library/doctest.html#which-docstrings-are-examined)1909        - [25.2.3.2. Как распознаются примеры в строках документации?](https://python-all.ru/2.7/library/doctest.html#how-are-docstring-examples-recognized)1910        - [25.2.3.3. Каков контекст выполнения?](https://python-all.ru/2.7/library/doctest.html#what-s-the-execution-context)1911        - [25.2.3.4. А что насчёт исключений?](https://python-all.ru/2.7/library/doctest.html#what-about-exceptions)1912        - [25.2.3.5. Флаги параметров](https://python-all.ru/2.7/library/doctest.html#option-flags)1913        - [25.2.3.6. Директивы](https://python-all.ru/2.7/library/doctest.html#directives)1914        - [25.2.3.7. Предупреждения](https://python-all.ru/2.7/library/doctest.html#warnings)1915      - [25.2.4. Базовый API](https://python-all.ru/2.7/library/doctest.html#basic-api)1916      - [25.2.5. API модуля unittest](https://python-all.ru/2.7/library/doctest.html#unittest-api)1917      - [25.2.6. Продвинутый API](https://python-all.ru/2.7/library/doctest.html#advanced-api)19181919        - [25.2.6.1. Объекты DocTest](https://python-all.ru/2.7/library/doctest.html#doctest-objects)1920        - [25.2.6.2. Объекты Example](https://python-all.ru/2.7/library/doctest.html#example-objects)1921        - [25.2.6.3. Объекты DocTestFinder](https://python-all.ru/2.7/library/doctest.html#doctestfinder-objects)1922        - [25.2.6.4. Объекты DocTestParser](https://python-all.ru/2.7/library/doctest.html#doctestparser-objects)1923        - [25.2.6.5. Объекты DocTestRunner](https://python-all.ru/2.7/library/doctest.html#doctestrunner-objects)1924        - [25.2.6.6. Объекты OutputChecker](https://python-all.ru/2.7/library/doctest.html#outputchecker-objects)1925      - [25.2.7. Отладка](https://python-all.ru/2.7/library/doctest.html#debugging)1926      - [25.2.8. Разное](https://python-all.ru/2.7/library/doctest.html#soapbox)1927    - [25.3. `unittest` – фреймворк для модульного тестирования](https://python-all.ru/2.7/library/unittest.html)19281929      - [25.3.1. Простой пример](https://python-all.ru/2.7/library/unittest.html#basic-example)1930      - [25.3.2. Интерфейс командной строки](https://python-all.ru/2.7/library/unittest.html#command-line-interface)19311932        - [25.3.2.1. Параметры командной строки](https://python-all.ru/2.7/library/unittest.html#command-line-options)1933      - [25.3.3. Обнаружение тестов](https://python-all.ru/2.7/library/unittest.html#test-discovery)1934      - [25.3.4. Организация тестового кода](https://python-all.ru/2.7/library/unittest.html#organizing-test-code)1935      - [25.3.5. Повторное использование старого тестового кода](https://python-all.ru/2.7/library/unittest.html#re-using-old-test-code)1936      - [25.3.6. Пропуск тестов и ожидаемые сбои](https://python-all.ru/2.7/library/unittest.html#skipping-tests-and-expected-failures)1937      - [25.3.7. Классы и функции](https://python-all.ru/2.7/library/unittest.html#classes-and-functions)19381939        - [25.3.7.1. Тестовые примеры](https://python-all.ru/2.7/library/unittest.html#test-cases)19401941          - [25.3.7.1.1. Устаревшие псевдонимы](https://python-all.ru/2.7/library/unittest.html#deprecated-aliases)1942        - [25.3.7.2. Группировка тестов](https://python-all.ru/2.7/library/unittest.html#grouping-tests)1943        - [25.3.7.3. Загрузка и запуск тестов](https://python-all.ru/2.7/library/unittest.html#loading-and-running-tests)19441945          - [25.3.7.3.1. Протокол load\_tests](https://python-all.ru/2.7/library/unittest.html#load-tests-protocol)1946      - [25.3.8. Фикстуры классов и модулей](https://python-all.ru/2.7/library/unittest.html#class-and-module-fixtures)19471948        - [25.3.8.1. setUpClass и tearDownClass](https://python-all.ru/2.7/library/unittest.html#setupclass-and-teardownclass)1949        - [25.3.8.2. setUpModule и tearDownModule](https://python-all.ru/2.7/library/unittest.html#setupmodule-and-teardownmodule)1950      - [25.3.9. Обработка сигналов](https://python-all.ru/2.7/library/unittest.html#signal-handling)1951    - [25.4. 2to3 – автоматическое преобразование кода Python 2 в 3](https://python-all.ru/2.7/library/2to3.html)19521953      - [25.4.1. Использование 2to3](https://python-all.ru/2.7/library/2to3.html#using-2to3)1954      - [25.4.2. Исправители](https://python-all.ru/2.7/library/2to3.html#fixers)1955      - [25.4.3. `lib2to3` - библиотека 2to3](https://python-all.ru/2.7/library/2to3.html#module-lib2to3)1956    - [25.5. `test` – пакет регрессионных тестов для Python](https://python-all.ru/2.7/library/test.html)19571958      - [25.5.1. Написание модульных тестов для пакета `test`](https://python-all.ru/2.7/library/test.html#writing-unit-tests-for-the-test-package)1959      - [25.5.2. Запуск тестов с помощью интерфейса командной строки](https://python-all.ru/2.7/library/test.html#running-tests-using-the-command-line-interface)1960    - [25.6. `test.support` – вспомогательные функции для тестов](https://python-all.ru/2.7/library/test.html#module-test.support)1961  - [26. Отладка и профилирование](https://python-all.ru/2.7/library/debug.html)19621963    - [26.1. `bdb` – фреймворк отладчика](https://python-all.ru/2.7/library/bdb.html)1964    - [26.2. `pdb` – отладчик Python](https://python-all.ru/2.7/library/pdb.html)1965    - [26.3. Команды отладчика](https://python-all.ru/2.7/library/pdb.html#debugger-commands)1966    - [26.4. Профилировщики Python](https://python-all.ru/2.7/library/profile.html)19671968      - [26.4.1. Введение в профилировщики](https://python-all.ru/2.7/library/profile.html#introduction-to-the-profilers)1969      - [26.4.2. Краткое руководство пользователя](https://python-all.ru/2.7/library/profile.html#instant-user-s-manual)1970      - [26.4.3. `profile` и `cProfile`. Справочник модулей](https://python-all.ru/2.7/library/profile.html#module-cProfile)1971      - [26.4.4. Класс `Stats`](https://python-all.ru/2.7/library/profile.html#the-stats-class)1972      - [26.4.5. Что такое детерминированное профилирование?](https://python-all.ru/2.7/library/profile.html#what-is-deterministic-profiling)1973      - [26.4.6. Ограничения](https://python-all.ru/2.7/library/profile.html#limitations)1974      - [26.4.7. Калибровка](https://python-all.ru/2.7/library/profile.html#calibration)1975      - [26.4.8. Использование пользовательского таймера](https://python-all.ru/2.7/library/profile.html#using-a-custom-timer)1976    - [26.5. `hotshot` – Высокопроизводительный профилировщик логирования](https://python-all.ru/2.7/library/hotshot.html)19771978      - [26.5.1. Объекты профиля](https://python-all.ru/2.7/library/hotshot.html#profile-objects)1979      - [26.5.2. Использование данных hotshot](https://python-all.ru/2.7/library/hotshot.html#module-hotshot.stats)1980      - [26.5.3. Пример использования](https://python-all.ru/2.7/library/hotshot.html#example-usage)1981    - [26.6. `timeit` – Измерение времени выполнения небольших фрагментов кода](https://python-all.ru/2.7/library/timeit.html)19821983      - [26.6.1. Базовые примеры](https://python-all.ru/2.7/library/timeit.html#basic-examples)1984      - [26.6.2. Интерфейс Python](https://python-all.ru/2.7/library/timeit.html#python-interface)1985      - [26.6.3. Интерфейс командной строки](https://python-all.ru/2.7/library/timeit.html#command-line-interface)1986      - [26.6.4. Примеры](https://python-all.ru/2.7/library/timeit.html#examples)1987    - [26.7. `trace` – Трассировка или отслеживание выполнения инструкций Python](https://python-all.ru/2.7/library/trace.html)19881989      - [26.7.1. Использование командной строки](https://python-all.ru/2.7/library/trace.html#command-line-usage)19901991        - [26.7.1.1. Основные параметры](https://python-all.ru/2.7/library/trace.html#main-options)1992        - [26.7.1.2. Модификаторы](https://python-all.ru/2.7/library/trace.html#modifiers)1993        - [26.7.1.3. Фильтры](https://python-all.ru/2.7/library/trace.html#filters)1994      - [26.7.2. Программный интерфейс](https://python-all.ru/2.7/library/trace.html#programmatic-interface)1995  - [27. Упаковка и распространение программного обеспечения](https://python-all.ru/2.7/library/distribution.html)19961997    - [27.1. `distutils` – Сборка и установка модулей Python](https://python-all.ru/2.7/library/distutils.html)1998    - [27.2. `ensurepip` – Загрузка установщика `pip`](https://python-all.ru/2.7/library/ensurepip.html)19992000      - [27.2.1. Интерфейс командной строки](https://python-all.ru/2.7/library/ensurepip.html#command-line-interface)2001      - [27.2.2. API модуля](https://python-all.ru/2.7/library/ensurepip.html#module-api)2002  - [28. Службы среды выполнения Python](https://python-all.ru/2.7/library/python.html)20032004    - [28.1. `sys` – Системно-зависимые параметры и функции](https://python-all.ru/2.7/library/sys.html)2005    - [28.2. `sysconfig` – Предоставление доступа к информации о конфигурации Python](https://python-all.ru/2.7/library/sysconfig.html)20062007      - [28.2.1. Переменные конфигурации](https://python-all.ru/2.7/library/sysconfig.html#configuration-variables)2008      - [28.2.2. Пути установки](https://python-all.ru/2.7/library/sysconfig.html#installation-paths)2009      - [28.2.3. Другие функции](https://python-all.ru/2.7/library/sysconfig.html#other-functions)2010    - [28.3. `__builtin__` – Встроенные объекты](https://python-all.ru/2.7/library/__builtin__.html)2011    - [28.4. `future_builtins` – Встроенные функции Python 3](https://python-all.ru/2.7/library/future_builtins.html)2012    - [28.5. `__main__` – Среда скрипта верхнего уровня](https://python-all.ru/2.7/library/__main__.html)2013    - [28.6. `warnings` – Управление предупреждениями](https://python-all.ru/2.7/library/warnings.html)20142015      - [28.6.1. Категории предупреждений](https://python-all.ru/2.7/library/warnings.html#warning-categories)2016      - [28.6.2. Фильтр предупреждений](https://python-all.ru/2.7/library/warnings.html#the-warnings-filter)20172018        - [28.6.2.1. Фильтры предупреждений по умолчанию](https://python-all.ru/2.7/library/warnings.html#default-warning-filters)2019      - [28.6.3. Временное подавление предупреждений](https://python-all.ru/2.7/library/warnings.html#temporarily-suppressing-warnings)2020      - [28.6.4. Тестирование предупреждений](https://python-all.ru/2.7/library/warnings.html#testing-warnings)2021      - [28.6.5. Обновление кода для новых версий Python](https://python-all.ru/2.7/library/warnings.html#updating-code-for-new-versions-of-python)2022      - [28.6.6. Доступные функции](https://python-all.ru/2.7/library/warnings.html#available-functions)2023      - [28.6.7. Доступные контекстные менеджеры](https://python-all.ru/2.7/library/warnings.html#available-context-managers)2024    - [28.7. `contextlib` – Утилиты для контекстов оператора `with`](https://python-all.ru/2.7/library/contextlib.html)2025    - [28.8. `abc` – Абстрактные базовые классы](https://python-all.ru/2.7/library/abc.html)2026    - [28.9. `atexit` – Обработчики выхода](https://python-all.ru/2.7/library/atexit.html)20272028      - [28.9.1. Пример `atexit`](https://python-all.ru/2.7/library/atexit.html#atexit-example)2029    - [28.10. `traceback` – Вывод или получение трассировки стека](https://python-all.ru/2.7/library/traceback.html)20302031      - [28.10.1. Примеры трассировки](https://python-all.ru/2.7/library/traceback.html#traceback-examples)2032    - [28.11. `__future__` – Определения оператора future](https://python-all.ru/2.7/library/__future__.html)2033    - [28.12. `gc` – Интерфейс сборщика мусора](https://python-all.ru/2.7/library/gc.html)2034    - [28.13. `inspect` – Инспекция живых объектов](https://python-all.ru/2.7/library/inspect.html)20352036      - [28.13.1. Типы и члены](https://python-all.ru/2.7/library/inspect.html#types-and-members)2037      - [28.13.2. Получение исходного кода](https://python-all.ru/2.7/library/inspect.html#retrieving-source-code)2038      - [28.13.3. Классы и функции](https://python-all.ru/2.7/library/inspect.html#classes-and-functions)2039      - [28.13.4. Стек интерпретатора](https://python-all.ru/2.7/library/inspect.html#the-interpreter-stack)2040    - [28.14. `site` – Хук конфигурации для сайта](https://python-all.ru/2.7/library/site.html)2041    - [28.15. `user` – Хук конфигурации для пользователя](https://python-all.ru/2.7/library/user.html)2042    - [28.16. `fpectl` – Управление исключениями с плавающей запятой](https://python-all.ru/2.7/library/fpectl.html)20432044      - [28.16.1. Пример](https://python-all.ru/2.7/library/fpectl.html#example)2045      - [28.16.2. Ограничения и другие соображения](https://python-all.ru/2.7/library/fpectl.html#limitations-and-other-considerations)2046  - [29. Пользовательские интерпретаторы Python](https://python-all.ru/2.7/library/custominterp.html)20472048    - [29.1. `code` – Базовые классы интерпретатора](https://python-all.ru/2.7/library/code.html)20492050      - [29.1.1. Объекты интерактивного интерпретатора](https://python-all.ru/2.7/library/code.html#interactive-interpreter-objects)2051      - [29.1.2. Объекты интерактивной консоли](https://python-all.ru/2.7/library/code.html#interactive-console-objects)2052    - [29.2. `codeop` – Компиляция кода Python](https://python-all.ru/2.7/library/codeop.html)2053  - [30. Ограниченное выполнение](https://python-all.ru/2.7/library/restricted.html)20542055    - [30.1. `rexec` – Фреймворк ограниченного выполнения](https://python-all.ru/2.7/library/rexec.html)20562057      - [30.1.1. Объекты RExec](https://python-all.ru/2.7/library/rexec.html#rexec-objects)2058      - [30.1.2. Определение ограниченных окружений](https://python-all.ru/2.7/library/rexec.html#defining-restricted-environments)2059      - [30.1.3. Пример](https://python-all.ru/2.7/library/rexec.html#an-example)2060    - [30.2. `Bastion` – Ограничение доступа к объектам](https://python-all.ru/2.7/library/bastion.html)2061  - [31. Импорт модулей](https://python-all.ru/2.7/library/modules.html)20622063    - [31.1. `imp` – Доступ к внутренним компонентам `import`](https://python-all.ru/2.7/library/imp.html)20642065      - [31.1.1. Примеры](https://python-all.ru/2.7/library/imp.html#examples)2066    - [31.2. `importlib` – Удобные обёртки для `__import__()`](https://python-all.ru/2.7/library/importlib.html)2067    - [31.3. `imputil` – Утилиты импорта](https://python-all.ru/2.7/library/imputil.html)20682069      - [31.3.1. Примеры](https://python-all.ru/2.7/library/imputil.html#examples)2070    - [31.4. `zipimport` – Импорт модулей из Zip-архивов](https://python-all.ru/2.7/library/zipimport.html)20712072      - [31.4.1. Объекты zipimporter](https://python-all.ru/2.7/library/zipimport.html#zipimporter-objects)2073      - [31.4.2. Примеры](https://python-all.ru/2.7/library/zipimport.html#examples)2074    - [31.5. `pkgutil` – Утилита расширения пакетов](https://python-all.ru/2.7/library/pkgutil.html)2075    - [31.6. `modulefinder` – Поиск модулей, используемых сценарием](https://python-all.ru/2.7/library/modulefinder.html)20762077      - [31.6.1. Пример использования `ModuleFinder`](https://python-all.ru/2.7/library/modulefinder.html#example-usage-of-modulefinder)2078    - [31.7. `runpy` – Поиск и выполнение модулей Python](https://python-all.ru/2.7/library/runpy.html)2079  - [32. Службы языка Python](https://python-all.ru/2.7/library/language.html)20802081    - [32.1. `parser` – Доступ к деревьям разбора Python](https://python-all.ru/2.7/library/parser.html)20822083      - [32.1.1. Создание объектов ST](https://python-all.ru/2.7/library/parser.html#creating-st-objects)2084      - [32.1.2. Преобразование объектов ST](https://python-all.ru/2.7/library/parser.html#converting-st-objects)2085      - [32.1.3. Запросы к объектам ST](https://python-all.ru/2.7/library/parser.html#queries-on-st-objects)2086      - [32.1.4. Исключения и обработка ошибок](https://python-all.ru/2.7/library/parser.html#exceptions-and-error-handling)2087      - [32.1.5. Объекты ST](https://python-all.ru/2.7/library/parser.html#st-objects)2088      - [32.1.6. Пример: эмуляция `compile()`](https://python-all.ru/2.7/library/parser.html#example-emulation-of-compile)2089    - [32.2. `ast` – Абстрактные синтаксические деревья](https://python-all.ru/2.7/library/ast.html)20902091      - [32.2.1. Классы узлов](https://python-all.ru/2.7/library/ast.html#node-classes)2092      - [32.2.2. Абстрактная грамматика](https://python-all.ru/2.7/library/ast.html#abstract-grammar)2093      - [32.2.3. Вспомогательные функции `ast`](https://python-all.ru/2.7/library/ast.html#ast-helpers)2094    - [32.3. `symtable` – Доступ к таблицам символов компилятора](https://python-all.ru/2.7/library/symtable.html)20952096      - [32.3.1. Генерация таблиц символов](https://python-all.ru/2.7/library/symtable.html#generating-symbol-tables)2097      - [32.3.2. Анализ таблиц символов](https://python-all.ru/2.7/library/symtable.html#examining-symbol-tables)2098    - [32.4. `symbol` – Константы, используемые с деревьями разбора Python](https://python-all.ru/2.7/library/symbol.html)2099    - [32.5. `token` – Константы, используемые с деревьями разбора Python](https://python-all.ru/2.7/library/token.html)2100    - [32.6. `keyword` – Проверка ключевых слов Python](https://python-all.ru/2.7/library/keyword.html)2101    - [32.7. `tokenize` – Токенизатор исходного кода Python](https://python-all.ru/2.7/library/tokenize.html)2102    - [32.8. `tabnanny` – Обнаружение неоднозначных отступов](https://python-all.ru/2.7/library/tabnanny.html)2103    - [32.9. `pyclbr` – Поддержка браузера классов Python](https://python-all.ru/2.7/library/pyclbr.html)21042105      - [32.9.1. Объекты классов](https://python-all.ru/2.7/library/pyclbr.html#class-objects)2106      - [32.9.2. Объекты функций](https://python-all.ru/2.7/library/pyclbr.html#function-objects)2107    - [32.10. `py_compile` – Компиляция исходных файлов Python](https://python-all.ru/2.7/library/py_compile.html)2108    - [32.11. `compileall` – Байт-компиляция библиотек Python](https://python-all.ru/2.7/library/compileall.html)21092110      - [32.11.1. Использование командной строки](https://python-all.ru/2.7/library/compileall.html#command-line-use)2111      - [32.11.2. Публичные функции](https://python-all.ru/2.7/library/compileall.html#public-functions)2112    - [32.12. `dis` – Дизассемблер байт-кода Python](https://python-all.ru/2.7/library/dis.html)21132114      - [32.12.1. Инструкции байт-кода Python](https://python-all.ru/2.7/library/dis.html#python-bytecode-instructions)2115    - [32.13. `pickletools` – Инструменты для разработчиков pickle](https://python-all.ru/2.7/library/pickletools.html)2116  - [33. Пакет компилятора Python](https://python-all.ru/2.7/library/compiler.html)21172118    - [33.1. Базовый интерфейс](https://python-all.ru/2.7/library/compiler.html#module-compiler)2119    - [33.2. Ограничения](https://python-all.ru/2.7/library/compiler.html#limitations)2120    - [33.3. Абстрактный синтаксис Python](https://python-all.ru/2.7/library/compiler.html#python-abstract-syntax)21212122      - [33.3.1. Узлы AST](https://python-all.ru/2.7/library/compiler.html#module-compiler.ast)2123      - [33.3.2. Узлы присваивания](https://python-all.ru/2.7/library/compiler.html#assignment-nodes)2124      - [33.3.3. Примеры](https://python-all.ru/2.7/library/compiler.html#examples)2125    - [33.4. Использование посетителей для обхода AST](https://python-all.ru/2.7/library/compiler.html#module-compiler.visitor)2126    - [33.5. Генерация байт-кода](https://python-all.ru/2.7/library/compiler.html#bytecode-generation)2127  - [34. Прочие службы](https://python-all.ru/2.7/library/misc.html)21282129    - [34.1. `formatter` – Общее форматирование вывода](https://python-all.ru/2.7/library/formatter.html)21302131      - [34.1.1. Интерфейс форматировщика](https://python-all.ru/2.7/library/formatter.html#the-formatter-interface)2132      - [34.1.2. Реализации форматировщика](https://python-all.ru/2.7/library/formatter.html#formatter-implementations)2133      - [34.1.3. Интерфейс записи](https://python-all.ru/2.7/library/formatter.html#the-writer-interface)2134      - [34.1.4. Реализации записи](https://python-all.ru/2.7/library/formatter.html#writer-implementations)2135  - [35. Службы, специфичные для MS Windows](https://python-all.ru/2.7/library/windows.html)21362137    - [35.1. `msilib` – Чтение и запись файлов Microsoft Installer](https://python-all.ru/2.7/library/msilib.html)21382139      - [35.1.1. Объекты базы данных](https://python-all.ru/2.7/library/msilib.html#database-objects)2140      - [35.1.2. Объекты представлений](https://python-all.ru/2.7/library/msilib.html#view-objects)2141      - [35.1.3. Объекты сводной информации](https://python-all.ru/2.7/library/msilib.html#summary-information-objects)2142      - [35.1.4. Объекты записей](https://python-all.ru/2.7/library/msilib.html#record-objects)2143      - [35.1.5. Ошибки](https://python-all.ru/2.7/library/msilib.html#errors)2144      - [35.1.6. Объекты CAB](https://python-all.ru/2.7/library/msilib.html#cab-objects)2145      - [35.1.7. Объекты каталогов](https://python-all.ru/2.7/library/msilib.html#directory-objects)2146      - [35.1.8. Возможности](https://python-all.ru/2.7/library/msilib.html#features)2147      - [35.1.9. Классы GUI](https://python-all.ru/2.7/library/msilib.html#gui-classes)2148      - [35.1.10. Предварительно вычисленные таблицы](https://python-all.ru/2.7/library/msilib.html#precomputed-tables)2149    - [35.2. `msvcrt` – Полезные подпрограммы из среды выполнения MS VC++](https://python-all.ru/2.7/library/msvcrt.html)21502151      - [35.2.1. Операции с файлами](https://python-all.ru/2.7/library/msvcrt.html#file-operations)2152      - [35.2.2. Консольный ввод/вывод](https://python-all.ru/2.7/library/msvcrt.html#console-i-o)2153      - [35.2.3. Прочие функции](https://python-all.ru/2.7/library/msvcrt.html#other-functions)2154    - [35.3. `_winreg` – Доступ к реестру Windows](https://python-all.ru/2.7/library/_winreg.html)21552156      - [35.3.1. Константы](https://python-all.ru/2.7/library/_winreg.html#constants)21572158        - [35.3.1.1. Константы HKEY\_\*](https://python-all.ru/2.7/library/_winreg.html#hkey-constants)2159        - [35.3.1.2. Права доступа](https://python-all.ru/2.7/library/_winreg.html#access-rights)21602161          - [35.3.1.2.1. Для 64-разрядной архитектуры](https://python-all.ru/2.7/library/_winreg.html#bit-specific)2162        - [35.3.1.3. Типы значений](https://python-all.ru/2.7/library/_winreg.html#value-types)2163      - [35.3.2. Объекты дескрипторов реестра](https://python-all.ru/2.7/library/_winreg.html#registry-handle-objects)2164    - [35.4. `winsound` – Интерфейс воспроизведения звука для Windows](https://python-all.ru/2.7/library/winsound.html)2165  - [36. Специфические службы Unix](https://python-all.ru/2.7/library/unix.html)21662167    - [36.1. `posix` – Самые распространённые системные вызовы POSIX](https://python-all.ru/2.7/library/posix.html)21682169      - [36.1.1. Поддержка больших файлов](https://python-all.ru/2.7/library/posix.html#large-file-support)2170      - [36.1.2. Примечательное содержимое модуля](https://python-all.ru/2.7/library/posix.html#notable-module-contents)2171    - [36.2. `pwd` – База данных паролей](https://python-all.ru/2.7/library/pwd.html)2172    - [36.3. `spwd` – База данных теневых паролей](https://python-all.ru/2.7/library/spwd.html)2173    - [36.4. `grp` – База данных групп](https://python-all.ru/2.7/library/grp.html)2174    - [36.5. `crypt` – Функция проверки паролей Unix](https://python-all.ru/2.7/library/crypt.html)2175    - [36.6. `dl` – Вызов функций C в разделяемых объектах](https://python-all.ru/2.7/library/dl.html)21762177      - [36.6.1. Объекты Dl](https://python-all.ru/2.7/library/dl.html#dl-objects)2178    - [36.7. `termios` – управление tty в стиле POSIX](https://python-all.ru/2.7/library/termios.html)21792180      - [36.7.1. Пример](https://python-all.ru/2.7/library/termios.html#example)2181    - [36.8. `tty` – функции управления терминалом](https://python-all.ru/2.7/library/tty.html)2182    - [36.9. `pty` – утилиты для работы с псевдотерминалами](https://python-all.ru/2.7/library/pty.html)2183    - [36.10. `fcntl` – системные вызовы `fcntl` и `ioctl`](https://python-all.ru/2.7/library/fcntl.html)2184    - [36.11. `pipes` – интерфейс к конвейерам оболочки](https://python-all.ru/2.7/library/pipes.html)21852186      - [36.11.1. Объекты шаблонов](https://python-all.ru/2.7/library/pipes.html#template-objects)2187    - [36.12. `posixfile` – объекты, подобные файлам, с поддержкой блокировок](https://python-all.ru/2.7/library/posixfile.html)2188    - [36.13. `resource` – информация об использовании ресурсов](https://python-all.ru/2.7/library/resource.html)21892190      - [36.13.1. Ограничения ресурсов](https://python-all.ru/2.7/library/resource.html#resource-limits)2191      - [36.13.2. Использование ресурсов](https://python-all.ru/2.7/library/resource.html#resource-usage)2192    - [36.14. `nis` – интерфейс к NIS (Yellow Pages) от Sun](https://python-all.ru/2.7/library/nis.html)2193    - [36.15. `syslog` – библиотечные процедуры syslog Unix](https://python-all.ru/2.7/library/syslog.html)21942195      - [36.15.1. Примеры](https://python-all.ru/2.7/library/syslog.html#examples)21962197        - [36.15.1.1. Простой пример](https://python-all.ru/2.7/library/syslog.html#simple-example)2198    - [36.16. `commands` – утилиты для выполнения команд](https://python-all.ru/2.7/library/commands.html)2199  - [37. Службы, специфичные для Mac OS X](https://python-all.ru/2.7/library/mac.html)22002201    - [37.1. `ic` – доступ к Internet Config в Mac OS X](https://python-all.ru/2.7/library/ic.html)22022203      - [37.1.1. Объекты IC](https://python-all.ru/2.7/library/ic.html#ic-objects)2204    - [37.2. `MacOS` – доступ к возможностям интерпретатора Mac OS](https://python-all.ru/2.7/library/macos.html)2205    - [37.3. `macostools` – удобные процедуры для работы с файлами](https://python-all.ru/2.7/library/macostools.html)2206    - [37.4. `findertools` – интерфейс **Finder** к Apple Events](https://python-all.ru/2.7/library/macostools.html#module-findertools)2207    - [37.5. `EasyDialogs` – базовые диалоги Macintosh](https://python-all.ru/2.7/library/easydialogs.html)22082209      - [37.5.1. Объекты ProgressBar](https://python-all.ru/2.7/library/easydialogs.html#progressbar-objects)2210    - [37.6. `FrameWork` – инфраструктура интерактивных приложений](https://python-all.ru/2.7/library/framework.html)22112212      - [37.6.1. Объекты Application](https://python-all.ru/2.7/library/framework.html#application-objects)2213      - [37.6.2. Объекты Window](https://python-all.ru/2.7/library/framework.html#window-objects)2214      - [37.6.3. Объект ControlsWindow](https://python-all.ru/2.7/library/framework.html#controlswindow-object)2215      - [37.6.4. Объект ScrolledWindow](https://python-all.ru/2.7/library/framework.html#scrolledwindow-object)2216      - [37.6.5. Объекты DialogWindow](https://python-all.ru/2.7/library/framework.html#dialogwindow-objects)2217    - [37.7. `autoGIL` – обработка GIL в циклах событий](https://python-all.ru/2.7/library/autogil.html)2218    - [37.8. Модули инструментария Mac OS](https://python-all.ru/2.7/library/carbon.html)22192220      - [37.8.1. `Carbon.AE` – Apple Events](https://python-all.ru/2.7/library/carbon.html#module-Carbon.AE)2221      - [37.8.2. `Carbon.AH` – Apple Help](https://python-all.ru/2.7/library/carbon.html#module-Carbon.AH)2222      - [37.8.3. `Carbon.App` – Appearance Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.App)2223      - [37.8.4. `Carbon.Appearance` – Appearance Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Appearance)2224      - [37.8.5. `Carbon.CF` – Core Foundation](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CF)2225      - [37.8.6. `Carbon.CG` – Core Graphics](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CG)2226      - [37.8.7. `Carbon.CarbonEvt` – Carbon Event Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CarbonEvt)2227      - [37.8.8. `Carbon.CarbonEvents` – Carbon Event Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CarbonEvents)2228      - [37.8.9. `Carbon.Cm` – Component Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Cm)2229      - [37.8.10. `Carbon.Components` – Component Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Components)2230      - [37.8.11. `Carbon.ControlAccessor` – Control Manager accssors](https://python-all.ru/2.7/library/carbon.html#module-Carbon.ControlAccessor)2231      - [37.8.12. `Carbon.Controls` – Control Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Controls)2232      - [37.8.13. `Carbon.CoreFounation` – CoreFounation constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CoreFounation)2233      - [37.8.14. `Carbon.CoreGraphics` – CoreGraphics constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.CoreGraphics)2234      - [37.8.15. `Carbon.Ctl` – Control Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Ctl)2235      - [37.8.16. `Carbon.Dialogs` – Dialog Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Dialogs)2236      - [37.8.17. `Carbon.Dlg` – Dialog Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Dlg)2237      - [37.8.18. `Carbon.Drag` – Drag and Drop Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Drag)2238      - [37.8.19. `Carbon.Dragconst` – Drag and Drop Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Dragconst)2239      - [37.8.20. `Carbon.Events` – Event Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Events)2240      - [37.8.21. `Carbon.Evt` – Event Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Evt)2241      - [37.8.22. `Carbon.File` – File Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.File)2242      - [37.8.23. `Carbon.Files` – File Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Files)2243      - [37.8.24. `Carbon.Fm` – Font Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Fm)2244      - [37.8.25. `Carbon.Folder` – Folder Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Folder)2245      - [37.8.26. `Carbon.Folders` – Folder Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Folders)2246      - [37.8.27. `Carbon.Fonts` – Font Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Fonts)2247      - [37.8.28. `Carbon.Help` – Help Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Help)2248      - [37.8.29. `Carbon.IBCarbon` – Carbon InterfaceBuilder](https://python-all.ru/2.7/library/carbon.html#module-Carbon.IBCarbon)2249      - [37.8.30. `Carbon.IBCarbonRuntime` – Carbon InterfaceBuilder constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.IBCarbonRuntime)2250      - [37.8.31. `Carbon.Icn` – Carbon Icon Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Icns)2251      - [37.8.32. `Carbon.Icons` – Carbon Icon Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Icons)2252      - [37.8.33. `Carbon.Launch` – Carbon Launch Services](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Launch)2253      - [37.8.34. `Carbon.LaunchServices` – Carbon Launch Services constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.LaunchServices)2254      - [37.8.35. `Carbon.List` – List Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.List)2255      - [37.8.36. `Carbon.Lists` – List Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Lists)2256      - [37.8.37. `Carbon.MacHelp` – Help Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.MacHelp)2257      - [37.8.38. `Carbon.MediaDescr` – Парсеры и генераторы для Quicktime Media descriptors](https://python-all.ru/2.7/library/carbon.html#module-Carbon.MediaDescr)2258      - [37.8.39. `Carbon.Menu` – Menu Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Menu)2259      - [37.8.40. `Carbon.Menus` – Menu Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Menus)2260      - [37.8.41. `Carbon.Mlte` – MultiLingual Text Editor](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Mlte)2261      - [37.8.42. `Carbon.OSA` – Carbon OSA Interface](https://python-all.ru/2.7/library/carbon.html#module-Carbon.OSA)2262      - [37.8.43. `Carbon.OSAconst` – Carbon OSA Interface constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.OSAconst)2263      - [37.8.44. `Carbon.QDOffscreen` – QuickDraw Offscreen constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.QDOffscreen)2264      - [37.8.45. `Carbon.Qd` – QuickDraw](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Qd)2265      - [37.8.46. `Carbon.Qdoffs` – QuickDraw Offscreen](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Qdoffs)2266      - [37.8.47. `Carbon.Qt` – QuickTime](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Qt)2267      - [37.8.48. `Carbon.QuickDraw` – QuickDraw constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.QuickDraw)2268      - [37.8.49. `Carbon.QuickTime` – QuickTime constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.QuickTime)2269      - [37.8.50. `Carbon.Res` – Resource Manager and Handles](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Res)2270      - [37.8.51. `Carbon.Resources` – Resource Manager and Handles constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Resources)2271      - [37.8.52. `Carbon.Scrap` – Scrap Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Scrap)2272      - [37.8.53. `Carbon.Snd` – Sound Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Snd)2273      - [37.8.54. `Carbon.Sound` – Sound Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Sound)2274      - [37.8.55. `Carbon.TE` – TextEdit](https://python-all.ru/2.7/library/carbon.html#module-Carbon.TE)2275      - [37.8.56. `Carbon.TextEdit` – TextEdit constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.TextEdit)2276      - [37.8.57. `Carbon.Win` – Window Manager](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Win)2277      - [37.8.58. `Carbon.Windows` – Window Manager constants](https://python-all.ru/2.7/library/carbon.html#module-Carbon.Windows)2278    - [37.9. `ColorPicker` – Диалог выбора цвета](https://python-all.ru/2.7/library/colorpicker.html)2279  - [38. MacPython OSA Modules](https://python-all.ru/2.7/library/macosa.html)22802281    - [38.1. `gensuitemodule` – Генерация пакетов-заглушек OSA](https://python-all.ru/2.7/library/gensuitemodule.html)2282    - [38.2. `aetools` – Поддержка клиента OSA](https://python-all.ru/2.7/library/aetools.html)2283    - [38.3. `aepack` – Преобразование между переменными Python и контейнерами данных AppleEvent](https://python-all.ru/2.7/library/aepack.html)2284    - [38.4. `aetypes` – Объекты AppleEvent](https://python-all.ru/2.7/library/aetypes.html)2285    - [38.5. `MiniAEFrame` – поддержка сервера Open Scripting Architecture](https://python-all.ru/2.7/library/miniaeframe.html)22862287      - [38.5.1. Объекты AEServer](https://python-all.ru/2.7/library/miniaeframe.html#aeserver-objects)2288  - [39. Службы для SGI IRIX](https://python-all.ru/2.7/library/sgi.html)22892290    - [39.1. `al` – Аудиофункции на SGI](https://python-all.ru/2.7/library/al.html)22912292      - [39.1.1. Объекты конфигурации](https://python-all.ru/2.7/library/al.html#configuration-objects)2293      - [39.1.2. Объекты портов](https://python-all.ru/2.7/library/al.html#port-objects)2294    - [39.2. `AL` – Константы, используемые с модулем `al`](https://python-all.ru/2.7/library/al.html#module-AL)2295    - [39.3. `cd` – Доступ к CD-ROM на системах SGI](https://python-all.ru/2.7/library/cd.html)22962297      - [39.3.1. Объекты проигрывателя](https://python-all.ru/2.7/library/cd.html#player-objects)2298      - [39.3.2. Объекты парсера](https://python-all.ru/2.7/library/cd.html#parser-objects)2299    - [39.4. `fl` – Библиотека FORMS для графических пользовательских интерфейсов](https://python-all.ru/2.7/library/fl.html)23002301      - [39.4.1. Функции, определённые в модуле `fl`](https://python-all.ru/2.7/library/fl.html#functions-defined-in-module-fl)2302      - [39.4.2. Объекты форм](https://python-all.ru/2.7/library/fl.html#form-objects)2303      - [39.4.3. Объекты FORMS](https://python-all.ru/2.7/library/fl.html#forms-objects)2304    - [39.5. `FL` – Константы, используемые с модулем `fl`](https://python-all.ru/2.7/library/fl.html#module-FL)2305    - [39.6. `flp` – Функции для загрузки сохранённых проектов FORMS](https://python-all.ru/2.7/library/fl.html#module-flp)2306    - [39.7. `fm` – Интерфейс *Font Manager*](https://python-all.ru/2.7/library/fm.html)2307    - [39.8. `gl` – Интерфейс *Graphics Library*](https://python-all.ru/2.7/library/gl.html)2308    - [39.9. `DEVICE` – Константы, используемые с модулем `gl`](https://python-all.ru/2.7/library/gl.html#module-DEVICE)2309    - [39.10. `GL` – Константы, используемые с модулем `gl`](https://python-all.ru/2.7/library/gl.html#module-GL)2310    - [39.11. `imgfile` – Поддержка файлов SGI imglib](https://python-all.ru/2.7/library/imgfile.html)2311    - [39.12. `jpeg` – Чтение и запись файлов JPEG](https://python-all.ru/2.7/library/jpeg.html)2312  - [40. Службы для SunOS](https://python-all.ru/2.7/library/sun.html)23132314    - [40.1. `sunaudiodev` – Доступ к аудиооборудованию Sun](https://python-all.ru/2.7/library/sunaudio.html)23152316      - [40.1.1. Объекты аудиоустройств](https://python-all.ru/2.7/library/sunaudio.html#audio-device-objects)2317    - [40.2. `SUNAUDIODEV` – Константы, используемые с `sunaudiodev`](https://python-all.ru/2.7/library/sunaudio.html#module-SUNAUDIODEV)2318  - [41. Модули без документации](https://python-all.ru/2.7/library/undoc.html)23192320    - [41.1. Разные полезные утилиты](https://python-all.ru/2.7/library/undoc.html#miscellaneous-useful-utilities)2321    - [41.2. Платформозависимые модули](https://python-all.ru/2.7/library/undoc.html#platform-specific-modules)2322    - [41.3. Мультимедиа](https://python-all.ru/2.7/library/undoc.html#multimedia)2323    - [41.4. Модули Mac OS без документации](https://python-all.ru/2.7/library/undoc.html#undocumented-mac-os-modules)23242325      - [41.4.1. `applesingle` – Декодер AppleSingle](https://python-all.ru/2.7/library/undoc.html#module-applesingle)2326      - [41.4.2. `buildtools` – Вспомогательный модуль для BuildApplet и компании](https://python-all.ru/2.7/library/undoc.html#module-buildtools)2327      - [41.4.3. `cfmfile` – Модуль ресурсов Code Fragment](https://python-all.ru/2.7/library/undoc.html#module-cfmfile)2328      - [41.4.4. `icopen` – Замена Internet Config для `open()`](https://python-all.ru/2.7/library/undoc.html#module-icopen)2329      - [41.4.5. `macerrors` – Ошибки Mac OS](https://python-all.ru/2.7/library/undoc.html#module-macerrors)2330      - [41.4.6. `macresource` – Поиск ресурсов скриптов](https://python-all.ru/2.7/library/undoc.html#module-macresource)2331      - [41.4.7. `Nav` – Вызовы NavServices](https://python-all.ru/2.7/library/undoc.html#module-Nav)2332      - [41.4.8. `PixMapWrapper` – Обёртка для объектов PixMap](https://python-all.ru/2.7/library/undoc.html#module-PixMapWrapper)2333      - [41.4.9. `videoreader` – Чтение фильмов QuickTime](https://python-all.ru/2.7/library/undoc.html#module-videoreader)2334      - [41.4.10. `W` – Виджеты на основе `FrameWork`](https://python-all.ru/2.7/library/undoc.html#module-W)2335    - [41.5. Устаревшее](https://python-all.ru/2.7/library/undoc.html#obsolete)2336    - [41.6. Расширения, специфичные для SGI](https://python-all.ru/2.7/library/undoc.html#sgi-specific-extension-modules)2337- [Расширение и встраивание интерпретатора Python](https://python-all.ru/2.7/extending/index.html)23382339  - [1. Расширение Python с помощью C или C++](https://python-all.ru/2.7/extending/extending.html)23402341    - [1.1. Простой пример](https://python-all.ru/2.7/extending/extending.html#a-simple-example)2342    - [1.2. Интермеццо: ошибки и исключения](https://python-all.ru/2.7/extending/extending.html#intermezzo-errors-and-exceptions)2343    - [1.3. Возвращение к примеру](https://python-all.ru/2.7/extending/extending.html#back-to-the-example)2344    - [1.4. Таблица методов модуля и функция инициализации](https://python-all.ru/2.7/extending/extending.html#the-module-s-method-table-and-initialization-function)2345    - [1.5. Компиляция и компоновка](https://python-all.ru/2.7/extending/extending.html#compilation-and-linkage)2346    - [1.6. Вызов функций Python из C](https://python-all.ru/2.7/extending/extending.html#calling-python-functions-from-c)2347    - [1.7. Извлечение параметров в функциях расширения](https://python-all.ru/2.7/extending/extending.html#extracting-parameters-in-extension-functions)2348    - [1.8. Именованные параметры для функций расширения](https://python-all.ru/2.7/extending/extending.html#keyword-parameters-for-extension-functions)2349    - [1.9. Построение произвольных значений](https://python-all.ru/2.7/extending/extending.html#building-arbitrary-values)2350    - [1.10. Счетчики ссылок](https://python-all.ru/2.7/extending/extending.html#reference-counts)23512352      - [1.10.1. Подсчёт ссылок в Python](https://python-all.ru/2.7/extending/extending.html#reference-counting-in-python)2353      - [1.10.2. Правила владения](https://python-all.ru/2.7/extending/extending.html#ownership-rules)2354      - [1.10.3. Тонкий лёд](https://python-all.ru/2.7/extending/extending.html#thin-ice)2355      - [1.10.4. Указатели NULL](https://python-all.ru/2.7/extending/extending.html#null-pointers)2356    - [1.11. Написание расширений на C++](https://python-all.ru/2.7/extending/extending.html#writing-extensions-in-c)2357    - [1.12. Предоставление C API для модуля расширения](https://python-all.ru/2.7/extending/extending.html#providing-a-c-api-for-an-extension-module)2358  - [2. Определение новых типов](https://python-all.ru/2.7/extending/newtypes.html)23592360    - [2.1. Основы](https://python-all.ru/2.7/extending/newtypes.html#the-basics)23612362      - [2.1.1. Добавление данных и методов в базовый пример](https://python-all.ru/2.7/extending/newtypes.html#adding-data-and-methods-to-the-basic-example)2363      - [2.1.2. Обеспечение более тонкого контроля над атрибутами данных](https://python-all.ru/2.7/extending/newtypes.html#providing-finer-control-over-data-attributes)2364      - [2.1.3. Поддержка циклической сборки мусора](https://python-all.ru/2.7/extending/newtypes.html#supporting-cyclic-garbage-collection)2365      - [2.1.4. Наследование от других типов](https://python-all.ru/2.7/extending/newtypes.html#subclassing-other-types)2366    - [2.2. Методы типов](https://python-all.ru/2.7/extending/newtypes.html#type-methods)23672368      - [2.2.1. Финализация и освобождение памяти](https://python-all.ru/2.7/extending/newtypes.html#finalization-and-de-allocation)2369      - [2.2.2. Представление объекта](https://python-all.ru/2.7/extending/newtypes.html#object-presentation)2370      - [2.2.3. Управление атрибутами](https://python-all.ru/2.7/extending/newtypes.html#attribute-management)23712372        - [2.2.3.1. Общее управление атрибутами](https://python-all.ru/2.7/extending/newtypes.html#generic-attribute-management)2373        - [2.2.3.2. Управление атрибутами, специфичными для типа](https://python-all.ru/2.7/extending/newtypes.html#type-specific-attribute-management)2374      - [2.2.4. Сравнение объектов](https://python-all.ru/2.7/extending/newtypes.html#object-comparison)2375      - [2.2.5. Поддержка абстрактных протоколов](https://python-all.ru/2.7/extending/newtypes.html#abstract-protocol-support)2376      - [2.2.6. Поддержка слабых ссылок](https://python-all.ru/2.7/extending/newtypes.html#weak-reference-support)2377      - [2.2.7. Дополнительные рекомендации](https://python-all.ru/2.7/extending/newtypes.html#more-suggestions)2378  - [3. Сборка расширений на C и C++ с помощью distutils](https://python-all.ru/2.7/extending/building.html)23792380    - [3.1. Распространение модулей расширения](https://python-all.ru/2.7/extending/building.html#distributing-your-extension-modules)2381  - [4. Сборка расширений C и C++ в Windows](https://python-all.ru/2.7/extending/windows.html)23822383    - [4.1. Подход «Кулинарная книга»](https://python-all.ru/2.7/extending/windows.html#a-cookbook-approach)2384    - [4.2. Различия между Unix и Windows](https://python-all.ru/2.7/extending/windows.html#differences-between-unix-and-windows)2385    - [4.3. Использование DLL на практике](https://python-all.ru/2.7/extending/windows.html#using-dlls-in-practice)2386  - [5. Встраивание Python в другое приложение](https://python-all.ru/2.7/extending/embedding.html)23872388    - [5.1. Встраивание на очень высоком уровне](https://python-all.ru/2.7/extending/embedding.html#very-high-level-embedding)2389    - [5.2. За пределами встраивания на очень высоком уровне: обзор](https://python-all.ru/2.7/extending/embedding.html#beyond-very-high-level-embedding-an-overview)2390    - [5.3. Чистое встраивание](https://python-all.ru/2.7/extending/embedding.html#pure-embedding)2391    - [5.4. Расширение встроенного Python](https://python-all.ru/2.7/extending/embedding.html#extending-embedded-python)2392    - [5.5. Встраивание Python в C++](https://python-all.ru/2.7/extending/embedding.html#embedding-python-in-c)2393    - [5.6. Компиляция и компоновка в системах семейства Unix](https://python-all.ru/2.7/extending/embedding.html#compiling-and-linking-under-unix-like-systems)2394- [Справочное руководство по Python/C API](https://python-all.ru/2.7/c-api/index.html)23952396  - [Введение](https://python-all.ru/2.7/c-api/intro.html)23972398    - [Заголовочные файлы](https://python-all.ru/2.7/c-api/intro.html#include-files)2399    - [Объекты, типы и счетчики ссылок](https://python-all.ru/2.7/c-api/intro.html#objects-types-and-reference-counts)24002401      - [Счётчики ссылок](https://python-all.ru/2.7/c-api/intro.html#reference-counts)24022403        - [Подробности подсчёта ссылок](https://python-all.ru/2.7/c-api/intro.html#reference-count-details)2404      - [Типы](https://python-all.ru/2.7/c-api/intro.html#types)2405    - [Исключения](https://python-all.ru/2.7/c-api/intro.html#exceptions)2406    - [Встраивание Python](https://python-all.ru/2.7/c-api/intro.html#embedding-python)2407    - [Отладочные сборки](https://python-all.ru/2.7/c-api/intro.html#debugging-builds)2408  - [Очень высокоуровневый слой](https://python-all.ru/2.7/c-api/veryhigh.html)2409  - [Подсчёт ссылок](https://python-all.ru/2.7/c-api/refcounting.html)2410  - [Обработка исключений](https://python-all.ru/2.7/c-api/exceptions.html)24112412    - [Объекты исключений Unicode](https://python-all.ru/2.7/c-api/exceptions.html#unicode-exception-objects)2413    - [Управление рекурсией](https://python-all.ru/2.7/c-api/exceptions.html#recursion-control)2414    - [Стандартные исключения](https://python-all.ru/2.7/c-api/exceptions.html#standard-exceptions)2415    - [Стандартные категории предупреждений](https://python-all.ru/2.7/c-api/exceptions.html#standard-warning-categories)2416    - [Строковые исключения](https://python-all.ru/2.7/c-api/exceptions.html#string-exceptions)2417  - [Утилиты](https://python-all.ru/2.7/c-api/utilities.html)24182419    - [Утилиты операционной системы](https://python-all.ru/2.7/c-api/sys.html)2420    - [Системные функции](https://python-all.ru/2.7/c-api/sys.html#system-functions)2421    - [Управление процессами](https://python-all.ru/2.7/c-api/sys.html#process-control)2422    - [Импорт модулей](https://python-all.ru/2.7/c-api/import.html)2423    - [Поддержка маршалинга данных](https://python-all.ru/2.7/c-api/marshal.html)2424    - [Разбор аргументов и сборка значений](https://python-all.ru/2.7/c-api/arg.html)2425    - [Преобразование и форматирование строк](https://python-all.ru/2.7/c-api/conversion.html)2426    - [Рефлексия](https://python-all.ru/2.7/c-api/reflection.html)2427    - [Реестр кодировок и вспомогательные функции](https://python-all.ru/2.7/c-api/codec.html)24282429      - [API поиска кодировок](https://python-all.ru/2.7/c-api/codec.html#codec-lookup-api)2430      - [API реестра обработчиков ошибок кодирования Unicode](https://python-all.ru/2.7/c-api/codec.html#registry-api-for-unicode-encoding-error-handlers)2431  - [Слой абстрактных объектов](https://python-all.ru/2.7/c-api/abstract.html)24322433    - [Протокол объекта](https://python-all.ru/2.7/c-api/object.html)2434    - [Протокол чисел](https://python-all.ru/2.7/c-api/number.html)2435    - [Протокол последовательностей](https://python-all.ru/2.7/c-api/sequence.html)2436    - [Протокол отображений](https://python-all.ru/2.7/c-api/mapping.html)2437    - [Протокол итератора](https://python-all.ru/2.7/c-api/iter.html)2438    - [Старый буферный протокол](https://python-all.ru/2.7/c-api/objbuffer.html)2439  - [Слой конкретных объектов](https://python-all.ru/2.7/c-api/concrete.html)24402441    - [Базовые объекты](https://python-all.ru/2.7/c-api/concrete.html#fundamental-objects)24422443      - [Объекты типов](https://python-all.ru/2.7/c-api/type.html)2444      - [Объект `None`](https://python-all.ru/2.7/c-api/none.html)2445    - [Числовые объекты](https://python-all.ru/2.7/c-api/concrete.html#numeric-objects)24462447      - [Объекты обычных целых чисел](https://python-all.ru/2.7/c-api/int.html)2448      - [Объекты логических значений](https://python-all.ru/2.7/c-api/bool.html)2449      - [Объекты длинных целых чисел](https://python-all.ru/2.7/c-api/long.html)2450      - [Объекты чисел с плавающей запятой](https://python-all.ru/2.7/c-api/float.html)2451      - [Объекты комплексных чисел](https://python-all.ru/2.7/c-api/complex.html)24522453        - [Комплексные числа как структуры C](https://python-all.ru/2.7/c-api/complex.html#complex-numbers-as-c-structures)2454        - [Комплексные числа как объекты Python](https://python-all.ru/2.7/c-api/complex.html#complex-numbers-as-python-objects)2455    - [Объекты последовательностей](https://python-all.ru/2.7/c-api/concrete.html#sequence-objects)24562457      - [Объекты массива байтов](https://python-all.ru/2.7/c-api/bytearray.html)24582459        - [Макросы проверки типа](https://python-all.ru/2.7/c-api/bytearray.html#type-check-macros)2460        - [Функции прямого API](https://python-all.ru/2.7/c-api/bytearray.html#direct-api-functions)2461        - [Макросы](https://python-all.ru/2.7/c-api/bytearray.html#macros)2462      - [Объекты строк и байтов](https://python-all.ru/2.7/c-api/string.html)2463      - [Объекты Unicode и кодеки](https://python-all.ru/2.7/c-api/unicode.html)24642465        - [Объекты Unicode](https://python-all.ru/2.7/c-api/unicode.html#unicode-objects)24662467          - [Тип Юникода](https://python-all.ru/2.7/c-api/unicode.html#unicode-type)2468          - [Свойства символов Юникода](https://python-all.ru/2.7/c-api/unicode.html#unicode-character-properties)2469          - [Простой Py\_UNICODE](https://python-all.ru/2.7/c-api/unicode.html#plain-py-unicode)2470          - [Поддержка wchar\_t](https://python-all.ru/2.7/c-api/unicode.html#wchar-t-support)2471        - [Встроенные кодеки](https://python-all.ru/2.7/c-api/unicode.html#built-in-codecs)24722473          - [Общие кодеки](https://python-all.ru/2.7/c-api/unicode.html#generic-codecs)2474          - [Кодеки UTF-8](https://python-all.ru/2.7/c-api/unicode.html#utf-8-codecs)2475          - [Кодеки UTF-32](https://python-all.ru/2.7/c-api/unicode.html#utf-32-codecs)2476          - [Кодеки UTF-16](https://python-all.ru/2.7/c-api/unicode.html#utf-16-codecs)2477          - [Кодеки UTF-7](https://python-all.ru/2.7/c-api/unicode.html#utf-7-codecs)2478          - [Кодеки Unicode-Escape](https://python-all.ru/2.7/c-api/unicode.html#unicode-escape-codecs)2479          - [Кодеки Raw-Unicode-Escape](https://python-all.ru/2.7/c-api/unicode.html#raw-unicode-escape-codecs)2480          - [Кодеки Latin-1](https://python-all.ru/2.7/c-api/unicode.html#latin-1-codecs)2481          - [Кодеки ASCII](https://python-all.ru/2.7/c-api/unicode.html#ascii-codecs)2482          - [Кодеки символьной карты](https://python-all.ru/2.7/c-api/unicode.html#character-map-codecs)2483          - [Кодеки MBCS для Windows](https://python-all.ru/2.7/c-api/unicode.html#mbcs-codecs-for-windows)2484          - [Методы и слоты](https://python-all.ru/2.7/c-api/unicode.html#methods-slots)2485        - [Методы и слот-функции](https://python-all.ru/2.7/c-api/unicode.html#methods-and-slot-functions)2486      - [Буферы и объекты memoryview](https://python-all.ru/2.7/c-api/buffer.html)24872488        - [Структура Py\_buffer нового стиля](https://python-all.ru/2.7/c-api/buffer.html#the-new-style-py-buffer-struct)2489        - [Функции для работы с буферами](https://python-all.ru/2.7/c-api/buffer.html#buffer-related-functions)2490        - [Объекты memoryview](https://python-all.ru/2.7/c-api/buffer.html#memoryview-objects)2491        - [Буферные объекты старого стиля](https://python-all.ru/2.7/c-api/buffer.html#old-style-buffer-objects)2492      - [Кортежи](https://python-all.ru/2.7/c-api/tuple.html)2493      - [Списки](https://python-all.ru/2.7/c-api/list.html)2494    - [Объекты-отображения](https://python-all.ru/2.7/c-api/concrete.html#mapping-objects)24952496      - [Объекты словарей](https://python-all.ru/2.7/c-api/dict.html)2497    - [Прочие объекты](https://python-all.ru/2.7/c-api/concrete.html#other-objects)24982499      - [Объекты классов и экземпляров](https://python-all.ru/2.7/c-api/class.html)2500      - [Объекты функций](https://python-all.ru/2.7/c-api/function.html)2501      - [Объекты методов](https://python-all.ru/2.7/c-api/method.html)2502      - [Объекты файлов](https://python-all.ru/2.7/c-api/file.html)2503      - [Объекты модулей](https://python-all.ru/2.7/c-api/module.html)2504      - [Объекты итераторов](https://python-all.ru/2.7/c-api/iterator.html)2505      - [Объекты дескрипторов](https://python-all.ru/2.7/c-api/descriptor.html)2506      - [Объекты срезов](https://python-all.ru/2.7/c-api/slice.html)2507      - [Объект Ellipsis](https://python-all.ru/2.7/c-api/slice.html#ellipsis-object)2508      - [Объекты слабых ссылок](https://python-all.ru/2.7/c-api/weakref.html)2509      - [Капсулы](https://python-all.ru/2.7/c-api/capsule.html)2510      - [CObjects](https://python-all.ru/2.7/c-api/cobject.html)2511      - [Объекты ячеек](https://python-all.ru/2.7/c-api/cell.html)2512      - [Объекты-генераторы](https://python-all.ru/2.7/c-api/gen.html)2513      - [Объекты datetime](https://python-all.ru/2.7/c-api/datetime.html)2514      - [Множества](https://python-all.ru/2.7/c-api/set.html)2515      - [Объекты кода](https://python-all.ru/2.7/c-api/code.html)2516  - [Инициализация, финализация и потоки](https://python-all.ru/2.7/c-api/init.html)25172518    - [Инициализация и финализация интерпретатора](https://python-all.ru/2.7/c-api/init.html#initializing-and-finalizing-the-interpreter)2519    - [Параметры уровня процесса](https://python-all.ru/2.7/c-api/init.html#process-wide-parameters)2520    - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/2.7/c-api/init.html#thread-state-and-the-global-interpreter-lock)25212522      - [Освобождение GIL из кода расширения](https://python-all.ru/2.7/c-api/init.html#releasing-the-gil-from-extension-code)2523      - [Потоки, созданные не в Python](https://python-all.ru/2.7/c-api/init.html#non-python-created-threads)2524      - [Высокоуровневый API](https://python-all.ru/2.7/c-api/init.html#high-level-api)2525      - [Низкоуровневый API](https://python-all.ru/2.7/c-api/init.html#low-level-api)2526    - [Поддержка под-интерпретаторов](https://python-all.ru/2.7/c-api/init.html#sub-interpreter-support)25272528      - [Ошибки и предостережения](https://python-all.ru/2.7/c-api/init.html#bugs-and-caveats)2529    - [Асинхронные уведомления](https://python-all.ru/2.7/c-api/init.html#asynchronous-notifications)2530    - [Профилирование и трассировка](https://python-all.ru/2.7/c-api/init.html#profiling-and-tracing)2531    - [Расширенная поддержка отладчика](https://python-all.ru/2.7/c-api/init.html#advanced-debugger-support)2532  - [Управление памятью](https://python-all.ru/2.7/c-api/memory.html)25332534    - [Обзор](https://python-all.ru/2.7/c-api/memory.html#overview)2535    - [Интерфейс памяти](https://python-all.ru/2.7/c-api/memory.html#memory-interface)2536    - [Аллокаторы объектов](https://python-all.ru/2.7/c-api/memory.html#object-allocators)2537    - [Аллокатор pymalloc](https://python-all.ru/2.7/c-api/memory.html#the-pymalloc-allocator)2538    - [Примеры](https://python-all.ru/2.7/c-api/memory.html#examples)2539  - [Поддержка реализации объектов](https://python-all.ru/2.7/c-api/objimpl.html)25402541    - [Выделение объектов в куче](https://python-all.ru/2.7/c-api/allocation.html)2542    - [Общие структуры объектов](https://python-all.ru/2.7/c-api/structures.html)2543    - [Объекты типов](https://python-all.ru/2.7/c-api/typeobj.html)2544    - [Структуры числовых объектов](https://python-all.ru/2.7/c-api/typeobj.html#number-object-structures)2545    - [Структуры объектов отображений](https://python-all.ru/2.7/c-api/typeobj.html#mapping-object-structures)2546    - [Структуры объектов последовательностей](https://python-all.ru/2.7/c-api/typeobj.html#sequence-object-structures)2547    - [Структуры буферных объектов](https://python-all.ru/2.7/c-api/typeobj.html#buffer-object-structures)2548    - [Поддержка циклической сборки мусора](https://python-all.ru/2.7/c-api/gcsupport.html)2549- [Распространение модулей Python](https://python-all.ru/2.7/distributing/index.html)25502551  - [Ключевые термины](https://python-all.ru/2.7/distributing/index.html#key-terms)2552  - [Открытое лицензирование и совместная работа](https://python-all.ru/2.7/distributing/index.html#open-source-licensing-and-collaboration)2553  - [Установка инструментов](https://python-all.ru/2.7/distributing/index.html#installing-the-tools)2554  - [Чтение руководства](https://python-all.ru/2.7/distributing/index.html#reading-the-guide)2555  - [Как мне…?](https://python-all.ru/2.7/distributing/index.html#how-do-i)25562557    - [… выбрать имя для проекта?](https://python-all.ru/2.7/distributing/index.html#choose-a-name-for-my-project)2558    - [… создавать и распространять бинарные расширения?](https://python-all.ru/2.7/distributing/index.html#create-and-distribute-binary-extensions)2559- [Установка модулей Python](https://python-all.ru/2.7/installing/index.html)25602561  - [Ключевые термины](https://python-all.ru/2.7/installing/index.html#key-terms)2562  - [Основы использования](https://python-all.ru/2.7/installing/index.html#basic-usage)2563  - [Как мне …?](https://python-all.ru/2.7/installing/index.html#how-do-i)25642565    - [… установить `pip` в версиях Python до Python 2.7.9?](https://python-all.ru/2.7/installing/index.html#install-pip-in-versions-of-python-prior-to-python-2-7-9)2566    - [… установить пакеты только для текущего пользователя?](https://python-all.ru/2.7/installing/index.html#install-packages-just-for-the-current-user)2567    - [… установить научные пакеты Python?](https://python-all.ru/2.7/installing/index.html#install-scientific-python-packages)2568    - [… работать с несколькими версиями Python, установленными параллельно?](https://python-all.ru/2.7/installing/index.html#work-with-multiple-versions-of-python-installed-in-parallel)2569  - [Распространённые проблемы установки](https://python-all.ru/2.7/installing/index.html#common-installation-issues)25702571    - [Установка в системный Python на Linux](https://python-all.ru/2.7/installing/index.html#installing-into-the-system-python-on-linux)2572    - [Pip не установлен](https://python-all.ru/2.7/installing/index.html#pip-not-installed)2573    - [Установка бинарных расширений](https://python-all.ru/2.7/installing/index.html#installing-binary-extensions)2574- [Руководства Python HOWTO](https://python-all.ru/2.7/howto/index.html)25752576  - [Перенос кода с Python 2 на Python 3](https://python-all.ru/2.7/howto/pyporting.html)25772578    - [Краткое объяснение](https://python-all.ru/2.7/howto/pyporting.html#the-short-explanation)2579    - [Подробности](https://python-all.ru/2.7/howto/pyporting.html#details)25802581      - [Прекратить поддержку Python 2.6 и более старых версий](https://python-all.ru/2.7/howto/pyporting.html#drop-support-for-python-2-6-and-older)2582      - [Убедитесь, что в файле `setup.py` указана правильная поддержка версий](https://python-all.ru/2.7/howto/pyporting.html#make-sure-you-specify-the-proper-version-support-in-your-setup-py-file)2583      - [Обеспечьте хорошее покрытие тестами](https://python-all.ru/2.7/howto/pyporting.html#have-good-test-coverage)2584      - [Изучите различия между Python 2 и 3](https://python-all.ru/2.7/howto/pyporting.html#learn-the-differences-between-python-2-3)2585      - [Обновите свой код](https://python-all.ru/2.7/howto/pyporting.html#update-your-code)25862587        - [Деление](https://python-all.ru/2.7/howto/pyporting.html#division)2588        - [Текст и двоичные данные](https://python-all.ru/2.7/howto/pyporting.html#text-versus-binary-data)2589        - [Используйте определение возможностей вместо определения версии](https://python-all.ru/2.7/howto/pyporting.html#use-feature-detection-instead-of-version-detection)2590      - [Предотвращение регрессий совместимости](https://python-all.ru/2.7/howto/pyporting.html#prevent-compatibility-regressions)2591      - [Проверьте, какие зависимости блокируют переход](https://python-all.ru/2.7/howto/pyporting.html#check-which-dependencies-block-your-transition)2592      - [Обновите файл `setup.py`, чтобы указать совместимость с Python 3](https://python-all.ru/2.7/howto/pyporting.html#update-your-setup-py-file-to-denote-python-3-compatibility)2593      - [Используйте непрерывную интеграцию для поддержания совместимости](https://python-all.ru/2.7/howto/pyporting.html#use-continuous-integration-to-stay-compatible)2594      - [Рассмотрите использование необязательной статической проверки типов](https://python-all.ru/2.7/howto/pyporting.html#consider-using-optional-static-type-checking)2595  - [Перенос модулей расширения на Python 3](https://python-all.ru/2.7/howto/cporting.html)25962597    - [Условная компиляция](https://python-all.ru/2.7/howto/cporting.html#conditional-compilation)2598    - [Изменения в объектных API](https://python-all.ru/2.7/howto/cporting.html#changes-to-object-apis)25992600      - [Объединение str/unicode](https://python-all.ru/2.7/howto/cporting.html#str-unicode-unification)2601      - [Объединение long/int](https://python-all.ru/2.7/howto/cporting.html#long-int-unification)2602    - [Инициализация и состояние модулей](https://python-all.ru/2.7/howto/cporting.html#module-initialization-and-state)2603    - [CObject заменён на Capsule](https://python-all.ru/2.7/howto/cporting.html#cobject-replaced-with-capsule)2604    - [Другие опции](https://python-all.ru/2.7/howto/cporting.html#other-options)2605  - [Программирование с curses на Python](https://python-all.ru/2.7/howto/curses.html)26062607    - [Что такое curses?](https://python-all.ru/2.7/howto/curses.html#what-is-curses)26082609      - [Модуль curses в Python](https://python-all.ru/2.7/howto/curses.html#the-python-curses-module)2610    - [Запуск и завершение приложения curses](https://python-all.ru/2.7/howto/curses.html#starting-and-ending-a-curses-application)2611    - [Окна и пады](https://python-all.ru/2.7/howto/curses.html#windows-and-pads)2612    - [Отображение текста](https://python-all.ru/2.7/howto/curses.html#displaying-text)26132614      - [Атрибуты и цвет](https://python-all.ru/2.7/howto/curses.html#attributes-and-color)2615    - [Ввод пользователя](https://python-all.ru/2.7/howto/curses.html#user-input)2616    - [Для получения дополнительных сведений](https://python-all.ru/2.7/howto/curses.html#for-more-information)2617  - [Руководство по дескрипторам](https://python-all.ru/2.7/howto/descriptor.html)26182619    - [Аннотация](https://python-all.ru/2.7/howto/descriptor.html#abstract)2620    - [Определение и введение](https://python-all.ru/2.7/howto/descriptor.html#definition-and-introduction)2621    - [Протокол дескрипторов](https://python-all.ru/2.7/howto/descriptor.html#descriptor-protocol)2622    - [Вызов дескрипторов](https://python-all.ru/2.7/howto/descriptor.html#invoking-descriptors)2623    - [Пример дескриптора](https://python-all.ru/2.7/howto/descriptor.html#descriptor-example)2624    - [Свойства](https://python-all.ru/2.7/howto/descriptor.html#properties)2625    - [Функции и методы](https://python-all.ru/2.7/howto/descriptor.html#functions-and-methods)2626    - [Статические методы и методы класса](https://python-all.ru/2.7/howto/descriptor.html#static-methods-and-class-methods)2627  - [Идиомы и анти-идиомы в Python](https://python-all.ru/2.7/howto/doanddont.html)26282629    - [Конструкции языка, которые не следует использовать](https://python-all.ru/2.7/howto/doanddont.html#language-constructs-you-should-not-use)26302631      - [from module import \*](https://python-all.ru/2.7/howto/doanddont.html#from-module-import)26322633        - [Внутри определений функций](https://python-all.ru/2.7/howto/doanddont.html#inside-function-definitions)2634        - [На уровне модуля](https://python-all.ru/2.7/howto/doanddont.html#at-module-level)2635        - [Когда это нормально](https://python-all.ru/2.7/howto/doanddont.html#when-it-is-just-fine)2636      - [Простые `exec`, `execfile()` и им подобные](https://python-all.ru/2.7/howto/doanddont.html#unadorned-exec-execfile-and-friends)2637      - [from module import name1, name2](https://python-all.ru/2.7/howto/doanddont.html#from-module-import-name1-name2)2638      - [except:](https://python-all.ru/2.7/howto/doanddont.html#except)2639    - [Исключения](https://python-all.ru/2.7/howto/doanddont.html#exceptions)2640    - [Использование батареек](https://python-all.ru/2.7/howto/doanddont.html#using-the-batteries)2641    - [Использование обратной косой черты для продолжения инструкций](https://python-all.ru/2.7/howto/doanddont.html#using-backslash-to-continue-statements)2642  - [HOWTO по функциональному программированию](https://python-all.ru/2.7/howto/functional.html)26432644    - [Введение](https://python-all.ru/2.7/howto/functional.html#introduction)26452646      - [Формальная доказуемость](https://python-all.ru/2.7/howto/functional.html#formal-provability)2647      - [Модульность](https://python-all.ru/2.7/howto/functional.html#modularity)2648      - [Простота отладки и тестирования](https://python-all.ru/2.7/howto/functional.html#ease-of-debugging-and-testing)2649      - [Композируемость](https://python-all.ru/2.7/howto/functional.html#composability)2650    - [Итераторы](https://python-all.ru/2.7/howto/functional.html#iterators)26512652      - [Типы данных, поддерживающие итераторы](https://python-all.ru/2.7/howto/functional.html#data-types-that-support-iterators)2653    - [Генераторные выражения и списковые включения](https://python-all.ru/2.7/howto/functional.html#generator-expressions-and-list-comprehensions)2654    - [Генераторы](https://python-all.ru/2.7/howto/functional.html#generators)26552656      - [Передача значений в генератор](https://python-all.ru/2.7/howto/functional.html#passing-values-into-a-generator)2657    - [Встроенные функции](https://python-all.ru/2.7/howto/functional.html#built-in-functions)2658    - [Небольшие функции и лямбда-выражение](https://python-all.ru/2.7/howto/functional.html#small-functions-and-the-lambda-expression)2659    - [Модуль itertools](https://python-all.ru/2.7/howto/functional.html#the-itertools-module)26602661      - [Создание новых итераторов](https://python-all.ru/2.7/howto/functional.html#creating-new-iterators)2662      - [Вызов функций для элементов](https://python-all.ru/2.7/howto/functional.html#calling-functions-on-elements)2663      - [Выбор элементов](https://python-all.ru/2.7/howto/functional.html#selecting-elements)2664      - [Группировка элементов](https://python-all.ru/2.7/howto/functional.html#grouping-elements)2665    - [Модуль functools](https://python-all.ru/2.7/howto/functional.html#the-functools-module)26662667      - [Модуль operator](https://python-all.ru/2.7/howto/functional.html#the-operator-module)2668    - [История изменений и благодарности](https://python-all.ru/2.7/howto/functional.html#revision-history-and-acknowledgements)2669    - [Ссылки](https://python-all.ru/2.7/howto/functional.html#references)26702671      - [Общие](https://python-all.ru/2.7/howto/functional.html#general)2672      - [Специфичное для Python](https://python-all.ru/2.7/howto/functional.html#python-specific)2673      - [Документация Python](https://python-all.ru/2.7/howto/functional.html#python-documentation)2674  - [Руководство по логированию](https://python-all.ru/2.7/howto/logging.html)26752676    - [Базовое руководство по логированию](https://python-all.ru/2.7/howto/logging.html#basic-logging-tutorial)26772678      - [Когда использовать логирование](https://python-all.ru/2.7/howto/logging.html#when-to-use-logging)2679      - [Простой пример](https://python-all.ru/2.7/howto/logging.html#a-simple-example)2680      - [Логирование в файл](https://python-all.ru/2.7/howto/logging.html#logging-to-a-file)2681      - [Логирование из нескольких модулей](https://python-all.ru/2.7/howto/logging.html#logging-from-multiple-modules)2682      - [Логирование переменных данных](https://python-all.ru/2.7/howto/logging.html#logging-variable-data)2683      - [Изменение формата отображаемых сообщений](https://python-all.ru/2.7/howto/logging.html#changing-the-format-of-displayed-messages)2684      - [Отображение даты/времени в сообщениях](https://python-all.ru/2.7/howto/logging.html#displaying-the-date-time-in-messages)2685      - [Дальнейшие шаги](https://python-all.ru/2.7/howto/logging.html#next-steps)2686    - [Расширенное руководство по логированию](https://python-all.ru/2.7/howto/logging.html#advanced-logging-tutorial)26872688      - [Поток логирования](https://python-all.ru/2.7/howto/logging.html#logging-flow)2689      - [Логгеры](https://python-all.ru/2.7/howto/logging.html#loggers)2690      - [Обработчики](https://python-all.ru/2.7/howto/logging.html#handlers)2691      - [Форматировщики](https://python-all.ru/2.7/howto/logging.html#formatters)2692      - [Настройка логирования](https://python-all.ru/2.7/howto/logging.html#configuring-logging)2693      - [Что происходит, если конфигурация не предоставлена](https://python-all.ru/2.7/howto/logging.html#what-happens-if-no-configuration-is-provided)2694      - [Настройка логирования для библиотеки](https://python-all.ru/2.7/howto/logging.html#configuring-logging-for-a-library)2695    - [Уровни журналирования](https://python-all.ru/2.7/howto/logging.html#logging-levels)26962697      - [Пользовательские уровни](https://python-all.ru/2.7/howto/logging.html#custom-levels)2698    - [Полезные обработчики](https://python-all.ru/2.7/howto/logging.html#useful-handlers)2699    - [Исключения, возникающие при логировании](https://python-all.ru/2.7/howto/logging.html#exceptions-raised-during-logging)2700    - [Использование произвольных объектов в качестве сообщений](https://python-all.ru/2.7/howto/logging.html#using-arbitrary-objects-as-messages)2701    - [Оптимизация](https://python-all.ru/2.7/howto/logging.html#optimization)2702  - [Рецепты по логированию](https://python-all.ru/2.7/howto/logging-cookbook.html)27032704    - [Использование логирования в нескольких модулях](https://python-all.ru/2.7/howto/logging-cookbook.html#using-logging-in-multiple-modules)2705    - [Логирование из нескольких потоков](https://python-all.ru/2.7/howto/logging-cookbook.html#logging-from-multiple-threads)2706    - [Несколько обработчиков и форматировщиков](https://python-all.ru/2.7/howto/logging-cookbook.html#multiple-handlers-and-formatters)2707    - [Логирование в несколько мест назначения](https://python-all.ru/2.7/howto/logging-cookbook.html#logging-to-multiple-destinations)2708    - [Пример сервера конфигурации](https://python-all.ru/2.7/howto/logging-cookbook.html#configuration-server-example)2709    - [Отправка и получение событий логирования по сети](https://python-all.ru/2.7/howto/logging-cookbook.html#sending-and-receiving-logging-events-across-a-network)2710    - [Добавление контекстной информации в вывод логирования](https://python-all.ru/2.7/howto/logging-cookbook.html#adding-contextual-information-to-your-logging-output)27112712      - [Использование LoggerAdapters для передачи контекстной информации](https://python-all.ru/2.7/howto/logging-cookbook.html#using-loggeradapters-to-impart-contextual-information)27132714        - [Использование объектов, отличных от словаря, для передачи контекстной информации](https://python-all.ru/2.7/howto/logging-cookbook.html#using-objects-other-than-dicts-to-pass-contextual-information)2715      - [Использование фильтров для передачи контекстной информации](https://python-all.ru/2.7/howto/logging-cookbook.html#using-filters-to-impart-contextual-information)2716    - [Логирование в один файл из нескольких процессов](https://python-all.ru/2.7/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes)2717    - [Использование ротации файлов](https://python-all.ru/2.7/howto/logging-cookbook.html#using-file-rotation)2718    - [Пример конфигурации на основе словаря](https://python-all.ru/2.7/howto/logging-cookbook.html#an-example-dictionary-based-configuration)2719    - [Вставка BOM в сообщения, отправляемые в SysLogHandler](https://python-all.ru/2.7/howto/logging-cookbook.html#inserting-a-bom-into-messages-sent-to-a-sysloghandler)2720    - [Реализация структурированного логирования](https://python-all.ru/2.7/howto/logging-cookbook.html#implementing-structured-logging)2721    - [Настройка обработчиков с помощью `dictConfig()`](https://python-all.ru/2.7/howto/logging-cookbook.html#customizing-handlers-with-dictconfig)2722    - [Настройка фильтров с помощью `dictConfig()`](https://python-all.ru/2.7/howto/logging-cookbook.html#configuring-filters-with-dictconfig)2723    - [Настраиваемое форматирование исключений](https://python-all.ru/2.7/howto/logging-cookbook.html#customized-exception-formatting)2724    - [Озвучивание сообщений логирования](https://python-all.ru/2.7/howto/logging-cookbook.html#speaking-logging-messages)2725    - [Буферизация сообщений логирования и их условный вывод](https://python-all.ru/2.7/howto/logging-cookbook.html#buffering-logging-messages-and-outputting-them-conditionally)2726    - [Форматирование времени в UTC (GMT) через конфигурацию](https://python-all.ru/2.7/howto/logging-cookbook.html#formatting-times-using-utc-gmt-via-configuration)2727    - [Использование менеджера контекста для выборочного журналирования](https://python-all.ru/2.7/howto/logging-cookbook.html#using-a-context-manager-for-selective-logging)2728  - [HOWTO по регулярным выражениям](https://python-all.ru/2.7/howto/regex.html)27292730    - [Введение](https://python-all.ru/2.7/howto/regex.html#introduction)2731    - [Простые шаблоны](https://python-all.ru/2.7/howto/regex.html#simple-patterns)27322733      - [Сопоставление символов](https://python-all.ru/2.7/howto/regex.html#matching-characters)2734      - [Повторение](https://python-all.ru/2.7/howto/regex.html#repeating-things)2735    - [Использование регулярных выражений](https://python-all.ru/2.7/howto/regex.html#using-regular-expressions)27362737      - [Компиляция регулярных выражений](https://python-all.ru/2.7/howto/regex.html#compiling-regular-expressions)2738      - [Проблема обратной косой черты](https://python-all.ru/2.7/howto/regex.html#the-backslash-plague)2739      - [Выполнение сопоставлений](https://python-all.ru/2.7/howto/regex.html#performing-matches)2740      - [Функции уровня модуля](https://python-all.ru/2.7/howto/regex.html#module-level-functions)2741      - [Флаги компиляции](https://python-all.ru/2.7/howto/regex.html#compilation-flags)2742    - [Дополнительные возможности шаблонов](https://python-all.ru/2.7/howto/regex.html#more-pattern-power)27432744      - [Дополнительные метасимволы](https://python-all.ru/2.7/howto/regex.html#more-metacharacters)2745      - [Группировка](https://python-all.ru/2.7/howto/regex.html#grouping)2746      - [Незахватывающие и именованные группы](https://python-all.ru/2.7/howto/regex.html#non-capturing-and-named-groups)2747      - [Опережающие проверки](https://python-all.ru/2.7/howto/regex.html#lookahead-assertions)2748    - [Изменение строк](https://python-all.ru/2.7/howto/regex.html#modifying-strings)27492750      - [Разделение строк](https://python-all.ru/2.7/howto/regex.html#splitting-strings)2751      - [Поиск и замена](https://python-all.ru/2.7/howto/regex.html#search-and-replace)2752    - [Распространённые проблемы](https://python-all.ru/2.7/howto/regex.html#common-problems)27532754      - [Использование строковых методов](https://python-all.ru/2.7/howto/regex.html#use-string-methods)2755      - [match() и search()](https://python-all.ru/2.7/howto/regex.html#match-versus-search)2756      - [Жадные и нежадные квантификаторы](https://python-all.ru/2.7/howto/regex.html#greedy-versus-non-greedy)2757      - [Использование re.VERBOSE](https://python-all.ru/2.7/howto/regex.html#using-re-verbose)2758    - [Обратная связь](https://python-all.ru/2.7/howto/regex.html#feedback)2759  - [Руководство по программированию сокетов](https://python-all.ru/2.7/howto/sockets.html)27602761    - [Сокеты](https://python-all.ru/2.7/howto/sockets.html#sockets)27622763      - [История](https://python-all.ru/2.7/howto/sockets.html#history)2764    - [Создание сокета](https://python-all.ru/2.7/howto/sockets.html#creating-a-socket)27652766      - [Межпроцессное взаимодействие](https://python-all.ru/2.7/howto/sockets.html#ipc)2767    - [Использование сокета](https://python-all.ru/2.7/howto/sockets.html#using-a-socket)27682769      - [Двоичные данные](https://python-all.ru/2.7/howto/sockets.html#binary-data)2770    - [Отключение](https://python-all.ru/2.7/howto/sockets.html#disconnecting)27712772      - [Когда сокеты завершают работу](https://python-all.ru/2.7/howto/sockets.html#when-sockets-die)2773    - [Неблокирующие сокеты](https://python-all.ru/2.7/howto/sockets.html#non-blocking-sockets)27742775      - [Производительность](https://python-all.ru/2.7/howto/sockets.html#performance)2776  - [Руководство по сортировке](https://python-all.ru/2.7/howto/sorting.html)27772778    - [Основы сортировки](https://python-all.ru/2.7/howto/sorting.html#sorting-basics)2779    - [Ключевые функции](https://python-all.ru/2.7/howto/sorting.html#key-functions)2780    - [Функции модуля operator](https://python-all.ru/2.7/howto/sorting.html#operator-module-functions)2781    - [По возрастанию и по убыванию](https://python-all.ru/2.7/howto/sorting.html#ascending-and-descending)2782    - [Стабильность сортировки и сложные сортировки](https://python-all.ru/2.7/howto/sorting.html#sort-stability-and-complex-sorts)2783    - [Старый способ: Decorate-Sort-Undecorate](https://python-all.ru/2.7/howto/sorting.html#the-old-way-using-decorate-sort-undecorate)2784    - [Старый способ: использование параметра *cmp*](https://python-all.ru/2.7/howto/sorting.html#the-old-way-using-the-cmp-parameter)2785    - [Разное](https://python-all.ru/2.7/howto/sorting.html#odd-and-ends)2786  - [Руководство по Unicode](https://python-all.ru/2.7/howto/unicode.html)27872788    - [Введение в Unicode](https://python-all.ru/2.7/howto/unicode.html#introduction-to-unicode)27892790      - [История кодов символов](https://python-all.ru/2.7/howto/unicode.html#history-of-character-codes)2791      - [Определения](https://python-all.ru/2.7/howto/unicode.html#definitions)2792      - [Кодировки](https://python-all.ru/2.7/howto/unicode.html#encodings)2793      - [Ссылки](https://python-all.ru/2.7/howto/unicode.html#references)2794    - [Поддержка Unicode в Python 2.x](https://python-all.ru/2.7/howto/unicode.html#python-2-x-s-unicode-support)27952796      - [Тип Unicode](https://python-all.ru/2.7/howto/unicode.html#the-unicode-type)2797      - [Unicode-литералы в исходном коде Python](https://python-all.ru/2.7/howto/unicode.html#unicode-literals-in-python-source-code)2798      - [Свойства Unicode](https://python-all.ru/2.7/howto/unicode.html#unicode-properties)2799      - [Ссылки](https://python-all.ru/2.7/howto/unicode.html#id1)2800    - [Чтение и запись данных Unicode](https://python-all.ru/2.7/howto/unicode.html#reading-and-writing-unicode-data)28012802      - [Имена файлов в Unicode](https://python-all.ru/2.7/howto/unicode.html#unicode-filenames)2803      - [Советы по написанию программ с поддержкой Unicode](https://python-all.ru/2.7/howto/unicode.html#tips-for-writing-unicode-aware-programs)2804      - [Ссылки](https://python-all.ru/2.7/howto/unicode.html#id2)2805    - [История изменений и благодарности](https://python-all.ru/2.7/howto/unicode.html#revision-history-and-acknowledgements)2806  - [Руководство по получению интернет-ресурсов с помощью urllib2](https://python-all.ru/2.7/howto/urllib2.html)28072808    - [Введение](https://python-all.ru/2.7/howto/urllib2.html#introduction)2809    - [Получение URL-адресов](https://python-all.ru/2.7/howto/urllib2.html#fetching-urls)28102811      - [Данные](https://python-all.ru/2.7/howto/urllib2.html#data)2812      - [Заголовки](https://python-all.ru/2.7/howto/urllib2.html#headers)2813    - [Обработка исключений](https://python-all.ru/2.7/howto/urllib2.html#handling-exceptions)28142815      - \<[URLError](https://python-all.ru/2.7/howto/urllib2.html#urlerror)\>2816      - [HTTPError](https://python-all.ru/2.7/howto/urllib2.html#httperror)28172818        - [Коды ошибок](https://python-all.ru/2.7/howto/urllib2.html#error-codes)2819      - [Заключение](https://python-all.ru/2.7/howto/urllib2.html#wrapping-it-up)28202821        - [Номер 1](https://python-all.ru/2.7/howto/urllib2.html#number-1)2822        - [Номер 2](https://python-all.ru/2.7/howto/urllib2.html#number-2)2823    - [info и geturl](https://python-all.ru/2.7/howto/urllib2.html#info-and-geturl)2824    - [Открыватели и обработчики](https://python-all.ru/2.7/howto/urllib2.html#openers-and-handlers)2825    - [Базовая аутентификация](https://python-all.ru/2.7/howto/urllib2.html#id6)2826    - [Прокси](https://python-all.ru/2.7/howto/urllib2.html#proxies)2827    - [Сокеты и слои](https://python-all.ru/2.7/howto/urllib2.html#sockets-and-layers)2828    - [Сноски](https://python-all.ru/2.7/howto/urllib2.html#footnotes)2829  - [HOWTO: использование Python в вебе](https://python-all.ru/2.7/howto/webservers.html)28302831    - [Низкоуровневое представление](https://python-all.ru/2.7/howto/webservers.html#the-low-level-view)28322833      - [Общий шлюзовый интерфейс](https://python-all.ru/2.7/howto/webservers.html#common-gateway-interface)28342835        - [Простой скрипт для тестирования CGI](https://python-all.ru/2.7/howto/webservers.html#simple-script-for-testing-cgi)2836        - [Настройка CGI на собственном сервере](https://python-all.ru/2.7/howto/webservers.html#setting-up-cgi-on-your-own-server)2837        - [Типичные проблемы CGI-скриптов](https://python-all.ru/2.7/howto/webservers.html#common-problems-with-cgi-scripts)2838      - [mod\_python](https://python-all.ru/2.7/howto/webservers.html#mod-python)2839      - [FastCGI и SCGI](https://python-all.ru/2.7/howto/webservers.html#fastcgi-and-scgi)28402841        - [Настройка FastCGI](https://python-all.ru/2.7/howto/webservers.html#setting-up-fastcgi)2842      - [mod\_wsgi](https://python-all.ru/2.7/howto/webservers.html#mod-wsgi)2843    - [Отступление: WSGI](https://python-all.ru/2.7/howto/webservers.html#step-back-wsgi)28442845      - [WSGI-серверы](https://python-all.ru/2.7/howto/webservers.html#wsgi-servers)2846      - [Пример: MoinMoin](https://python-all.ru/2.7/howto/webservers.html#case-study-moinmoin)2847    - [Модель-Представление-Контроллер](https://python-all.ru/2.7/howto/webservers.html#model-view-controller)2848    - [Составляющие веб-сайтов](https://python-all.ru/2.7/howto/webservers.html#ingredients-for-websites)28492850      - [Шаблоны](https://python-all.ru/2.7/howto/webservers.html#templates)2851      - [Постоянное хранение данных](https://python-all.ru/2.7/howto/webservers.html#data-persistence)2852    - [Фреймворки](https://python-all.ru/2.7/howto/webservers.html#frameworks)28532854      - [Некоторые известные фреймворки](https://python-all.ru/2.7/howto/webservers.html#some-notable-frameworks)28552856        - [Django](https://python-all.ru/2.7/howto/webservers.html#django)2857        - [TurboGears](https://python-all.ru/2.7/howto/webservers.html#turbogears)2858        - [Zope](https://python-all.ru/2.7/howto/webservers.html#zope)2859        - [Другие известные фреймворки](https://python-all.ru/2.7/howto/webservers.html#other-notable-frameworks)2860  - [Учебное пособие по argparse](https://python-all.ru/2.7/howto/argparse.html)28612862    - [Основные понятия](https://python-all.ru/2.7/howto/argparse.html#concepts)2863    - [Основы](https://python-all.ru/2.7/howto/argparse.html#the-basics)2864    - [Знакомство с позиционными аргументами](https://python-all.ru/2.7/howto/argparse.html#introducing-positional-arguments)2865    - [Знакомство с необязательными аргументами](https://python-all.ru/2.7/howto/argparse.html#introducing-optional-arguments)28662867      - [Короткие опции](https://python-all.ru/2.7/howto/argparse.html#short-options)2868    - [Сочетание позиционных и необязательных аргументов](https://python-all.ru/2.7/howto/argparse.html#combining-positional-and-optional-arguments)2869    - [Переходим к более сложным темам](https://python-all.ru/2.7/howto/argparse.html#getting-a-little-more-advanced)28702871      - [Конфликтующие опции](https://python-all.ru/2.7/howto/argparse.html#conflicting-options)2872    - [Заключение](https://python-all.ru/2.7/howto/argparse.html#conclusion)2873- [Часто задаваемые вопросы по Python](https://python-all.ru/2.7/faq/index.html)28742875  - [Общие вопросы по Python](https://python-all.ru/2.7/faq/general.html)28762877    - [Общая информация](https://python-all.ru/2.7/faq/general.html#general-information)2878    - [Python в реальном мире](https://python-all.ru/2.7/faq/general.html#python-in-the-real-world)2879    - [Обновление Python](https://python-all.ru/2.7/faq/general.html#upgrading-python)2880  - [Вопросы по программированию](https://python-all.ru/2.7/faq/programming.html)28812882    - [Общие вопросы](https://python-all.ru/2.7/faq/programming.html#general-questions)2883    - [Ядро языка](https://python-all.ru/2.7/faq/programming.html#core-language)2884    - [Числа и строки](https://python-all.ru/2.7/faq/programming.html#numbers-and-strings)2885    - [Последовательности (кортежи/списки)](https://python-all.ru/2.7/faq/programming.html#sequences-tuples-lists)2886    - [Словари](https://python-all.ru/2.7/faq/programming.html#dictionaries)2887    - [Объекты](https://python-all.ru/2.7/faq/programming.html#objects)2888    - [Модули](https://python-all.ru/2.7/faq/programming.html#modules)2889  - [Вопросы по дизайну и истории](https://python-all.ru/2.7/faq/design.html)28902891    - [Почему в Python для группировки инструкций используются отступы?](https://python-all.ru/2.7/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements)2892    - [Почему при простых арифметических операциях получаются странные результаты?](https://python-all.ru/2.7/faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations)2893    - [Почему вычисления с плавающей точкой такие неточные?](https://python-all.ru/2.7/faq/design.html#why-are-floating-point-calculations-so-inaccurate)2894    - [Почему строки в Python неизменяемы?](https://python-all.ru/2.7/faq/design.html#why-are-python-strings-immutable)2895    - [Почему self нужно явно указывать в определениях и вызовах методов?](https://python-all.ru/2.7/faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls)2896    - [Почему в выражении нельзя использовать присваивание?](https://python-all.ru/2.7/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression)2897    - [Почему в Python для одних возможностей используются методы (например, list.index()), а для других – функции (например, len(list))?](https://python-all.ru/2.7/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list)2898    - [Почему join() – метод строки, а не списка или кортежа?](https://python-all.ru/2.7/faq/design.html#why-is-join-a-string-method-instead-of-a-list-or-tuple-method)2899    - [Насколько быстры исключения?](https://python-all.ru/2.7/faq/design.html#how-fast-are-exceptions)2900    - [Почему в Python нет оператора switch или case?](https://python-all.ru/2.7/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python)2901    - [Разве нельзя эмулировать потоки в интерпретаторе, вместо того чтобы полагаться на реализацию потоков, зависящую от ОС?](https://python-all.ru/2.7/faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation)2902    - [Почему лямбда-выражения не могут содержать инструкции?](https://python-all.ru/2.7/faq/design.html#why-can-t-lambda-expressions-contain-statements)2903    - [Можно ли скомпилировать Python в машинный код, C или другой язык?](https://python-all.ru/2.7/faq/design.html#can-python-be-compiled-to-machine-code-c-or-some-other-language)2904    - [Как Python управляет памятью?](https://python-all.ru/2.7/faq/design.html#how-does-python-manage-memory)2905    - [Почему при завершении Python освобождается не вся память?](https://python-all.ru/2.7/faq/design.html#why-isn-t-all-memory-freed-when-python-exits)2906    - [Почему существуют отдельные типы данных кортеж и список?](https://python-all.ru/2.7/faq/design.html#why-are-there-separate-tuple-and-list-data-types)2907    - [Как списки реализованы в CPython?](https://python-all.ru/2.7/faq/design.html#how-are-lists-implemented-in-cpython)2908    - [Как словари реализованы в CPython?](https://python-all.ru/2.7/faq/design.html#how-are-dictionaries-implemented-in-cpython)2909    - [Почему ключи словаря должны быть неизменяемыми?](https://python-all.ru/2.7/faq/design.html#why-must-dictionary-keys-be-immutable)2910    - [Почему list.sort() не возвращает отсортированный список?](https://python-all.ru/2.7/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list)2911    - [Как задать и обеспечить соблюдение спецификации интерфейса в Python?](https://python-all.ru/2.7/faq/design.html#how-do-you-specify-and-enforce-an-interface-spec-in-python)2912    - [Почему нет goto?](https://python-all.ru/2.7/faq/design.html#why-is-there-no-goto)2913    - [Почему сырые строки (r-строки) не могут заканчиваться обратной косой чертой?](https://python-all.ru/2.7/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash)2914    - [Почему в Python нет оператора with для присваивания атрибутов?](https://python-all.ru/2.7/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments)2915    - [Почему в операторах if/while/def/class требуется двоеточие?](https://python-all.ru/2.7/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements)2916    - [Почему Python разрешает запятые в конце списков и кортежей?](https://python-all.ru/2.7/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples)2917  - [FAQ по библиотекам и расширениям](https://python-all.ru/2.7/faq/library.html)29182919    - [Общие вопросы по библиотекам](https://python-all.ru/2.7/faq/library.html#general-library-questions)2920    - [Типовые задачи](https://python-all.ru/2.7/faq/library.html#common-tasks)2921    - [Потоки](https://python-all.ru/2.7/faq/library.html#threads)2922    - [Ввод и вывод](https://python-all.ru/2.7/faq/library.html#input-and-output)2923    - [Сетевое и интернет-программирование](https://python-all.ru/2.7/faq/library.html#network-internet-programming)2924    - [Базы данных](https://python-all.ru/2.7/faq/library.html#databases)2925    - [Математика и численные методы](https://python-all.ru/2.7/faq/library.html#mathematics-and-numerics)2926  - [FAQ по расширению и встраиванию](https://python-all.ru/2.7/faq/extending.html)29272928    - [Можно ли создавать собственные функции на C?](https://python-all.ru/2.7/faq/extending.html#can-i-create-my-own-functions-in-c)2929    - [Можно ли создавать собственные функции на C++?](https://python-all.ru/2.7/faq/extending.html#id1)2930    - [Писать на C сложно; есть ли альтернативы?](https://python-all.ru/2.7/faq/extending.html#writing-c-is-hard-are-there-any-alternatives)2931    - [Как выполнить произвольные инструкции Python из C?](https://python-all.ru/2.7/faq/extending.html#how-can-i-execute-arbitrary-python-statements-from-c)2932    - [Как вычислить произвольное выражение Python из C?](https://python-all.ru/2.7/faq/extending.html#how-can-i-evaluate-an-arbitrary-python-expression-from-c)2933    - [Как извлечь значения C из объекта Python?](https://python-all.ru/2.7/faq/extending.html#how-do-i-extract-c-values-from-a-python-object)2934    - [Как использовать Py\_BuildValue() для создания кортежа произвольной длины?](https://python-all.ru/2.7/faq/extending.html#how-do-i-use-py-buildvalue-to-create-a-tuple-of-arbitrary-length)2935    - [Как вызвать метод объекта из C?](https://python-all.ru/2.7/faq/extending.html#how-do-i-call-an-object-s-method-from-c)2936    - [Как перехватить вывод PyErr\_Print() (или любого другого вывода в stdout/stderr)?](https://python-all.ru/2.7/faq/extending.html#how-do-i-catch-the-output-from-pyerr-print-or-anything-that-prints-to-stdout-stderr)2937    - [Как получить доступ к модулю, написанному на Python, из C?](https://python-all.ru/2.7/faq/extending.html#how-do-i-access-a-module-written-in-python-from-c)2938    - [Как организовать взаимодействие с объектами C++ из Python?](https://python-all.ru/2.7/faq/extending.html#how-do-i-interface-to-c-objects-from-python)2939    - [Почему make завершается ошибкой после добавления модуля через файл Setup?](https://python-all.ru/2.7/faq/extending.html#i-added-a-module-using-the-setup-file-and-the-make-fails-why)2940    - [Как отлаживать расширение?](https://python-all.ru/2.7/faq/extending.html#how-do-i-debug-an-extension)2941    - [Почему при компиляции модуля Python в Linux отсутствуют некоторые файлы?](https://python-all.ru/2.7/faq/extending.html#i-want-to-compile-a-python-module-on-my-linux-system-but-some-files-are-missing-why)2942    - [Что означает «SystemError: \_PyImport\_FixupExtension: module yourmodule not loaded»?](https://python-all.ru/2.7/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean)2943    - [Как отличить «неполный ввод» от «неверного ввода»?](https://python-all.ru/2.7/faq/extending.html#how-do-i-tell-incomplete-input-from-invalid-input)2944    - [Как найти неопределённые символы g++ \_\_builtin\_new или \_\_pure\_virtual?](https://python-all.ru/2.7/faq/extending.html#how-do-i-find-undefined-g-symbols-builtin-new-or-pure-virtual)2945    - [Можно ли создать класс объекта, в котором часть методов реализована на C, а часть – на Python (например, через наследование)?](https://python-all.ru/2.7/faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance)2946    - [Почему при импорте модуля X возникает ошибка «undefined symbol: PyUnicodeUCS2\*»?](https://python-all.ru/2.7/faq/extending.html#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2)2947  - [FAQ по Python в Windows](https://python-all.ru/2.7/faq/windows.html)29482949    - [Как запустить программу Python в Windows?](https://python-all.ru/2.7/faq/windows.html#how-do-i-run-a-python-program-under-windows)2950    - [Как сделать скрипты Python исполняемыми?](https://python-all.ru/2.7/faq/windows.html#how-do-i-make-python-scripts-executable)2951    - [Почему Python иногда так долго запускается?](https://python-all.ru/2.7/faq/windows.html#why-does-python-sometimes-take-so-long-to-start)2952    - [Как создать исполняемый файл из скрипта Python?](https://python-all.ru/2.7/faq/windows.html#how-do-i-make-an-executable-from-a-python-script)2953    - [Является ли файл `*.pyd` тем же, что и DLL?](https://python-all.ru/2.7/faq/windows.html#is-a-pyd-file-the-same-as-a-dll)2954    - [Как встроить Python в приложение Windows?](https://python-all.ru/2.7/faq/windows.html#how-can-i-embed-python-into-a-windows-application)2955    - [Как запретить редакторам вставлять табуляцию в исходный код Python?](https://python-all.ru/2.7/faq/windows.html#how-do-i-keep-editors-from-inserting-tabs-into-my-python-source)2956    - [Как проверить нажатие клавиши без блокировки?](https://python-all.ru/2.7/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking)2957    - [Как эмулировать os.kill() в Windows?](https://python-all.ru/2.7/faq/windows.html#how-do-i-emulate-os-kill-in-windows)2958    - [Как извлечь загруженную документацию в Windows?](https://python-all.ru/2.7/faq/windows.html#how-do-i-extract-the-downloaded-documentation-on-windows)2959  - [Часто задаваемые вопросы о графическом интерфейсе пользователя](https://python-all.ru/2.7/faq/gui.html)29602961    - [Какие существуют кроссплатформенные GUI-инструментарии для Python?](https://python-all.ru/2.7/faq/gui.html#what-platform-independent-gui-toolkits-exist-for-python)2962    - [Какие существуют платформозависимые GUI-инструментарии для Python?](https://python-all.ru/2.7/faq/gui.html#what-platform-specific-gui-toolkits-exist-for-python)2963    - [Вопросы по Tkinter](https://python-all.ru/2.7/faq/gui.html#tkinter-questions)2964  - [FAQ «Почему Python установлен на моём компьютере?»](https://python-all.ru/2.7/faq/installed.html)29652966    - [Что такое Python?](https://python-all.ru/2.7/faq/installed.html#what-is-python)2967    - [Почему Python установлен на моём компьютере?](https://python-all.ru/2.7/faq/installed.html#why-is-python-installed-on-my-machine)2968    - [Можно ли удалить Python?](https://python-all.ru/2.7/faq/installed.html#can-i-delete-python)2969- [Глоссарий](https://python-all.ru/2.7/glossary.html)2970- [Об этих документах](https://python-all.ru/2.7/about.html)29712972  - [Участники документации Python](https://python-all.ru/2.7/about.html#contributors-to-the-python-documentation)2973- [Сообщение об ошибках](https://python-all.ru/2.7/bugs.html)29742975  - [Ошибки в документации](https://python-all.ru/2.7/bugs.html#documentation-bugs)2976  - [Использование трекера задач Python](https://python-all.ru/2.7/bugs.html#using-the-python-issue-tracker)2977  - [Начало работы: участие в разработке Python](https://python-all.ru/2.7/bugs.html#getting-started-contributing-to-python-yourself)2978- [Авторские права](https://python-all.ru/2.7/copyright.html)2979- [История и лицензия](https://python-all.ru/2.7/license.html)29802981  - [История программного обеспечения](https://python-all.ru/2.7/license.html#history-of-the-software)2982  - [Условия доступа и использования Python](https://python-all.ru/2.7/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python)29832984    - [ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ PSF ДЛЯ PYTHON 2.7.18](https://python-all.ru/2.7/license.html#psf-license-agreement-for-python-release)2985    - [ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ BEOPEN.COM ДЛЯ PYTHON 2.0](https://python-all.ru/2.7/license.html#beopen-com-license-agreement-for-python-2-0)2986    - [ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ CNRI ДЛЯ PYTHON 1.6.1](https://python-all.ru/2.7/license.html#cnri-license-agreement-for-python-1-6-1)2987    - [ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ CWI ДЛЯ PYTHON 0.9.0 – 1.2](https://python-all.ru/2.7/license.html#cwi-license-agreement-for-python-0-9-0-through-1-2)2988  - [Лицензии и благодарности для включённого программного обеспечения](https://python-all.ru/2.7/license.html#licenses-and-acknowledgements-for-incorporated-software)29892990    - [Вихрь Мерсенна](https://python-all.ru/2.7/license.html#mersenne-twister)2991    - [Сокеты](https://python-all.ru/2.7/license.html#sockets)2992    - [Управление исключениями с плавающей точкой](https://python-all.ru/2.7/license.html#floating-point-exception-control)2993    - [Алгоритм дайджеста сообщений MD5](https://python-all.ru/2.7/license.html#md5-message-digest-algorithm)2994    - [Асинхронные службы сокетов](https://python-all.ru/2.7/license.html#asynchronous-socket-services)2995    - [Управление cookie](https://python-all.ru/2.7/license.html#cookie-management)2996    - [Трассировка выполнения](https://python-all.ru/2.7/license.html#execution-tracing)2997    - [Функции UUencode и UUdecode](https://python-all.ru/2.7/license.html#uuencode-and-uudecode-functions)2998    - [XML-вызовы удалённых процедур](https://python-all.ru/2.7/license.html#xml-remote-procedure-calls)2999    - [test\_epoll](https://python-all.ru/2.7/license.html#test-epoll)3000    - [Select kqueue](https://python-all.ru/2.7/license.html#select-kqueue)3001    - [strtod and dtoa](https://python-all.ru/2.7/license.html#strtod-and-dtoa)3002    - [OpenSSL](https://python-all.ru/2.7/license.html#openssl)3003    - [expat](https://python-all.ru/2.7/license.html#expat)3004    - [libffi](https://python-all.ru/2.7/license.html#libffi)3005    - [zlib](https://python-all.ru/2.7/license.html#zlib)3006