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

contents.md

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

1> **Источник:** https://python-all.ru/2.6/contents.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Содержание документации Python89- [Что нового в Python](https://python-all.ru/2.6/whatsnew/index.html)1011  - [Что нового в Python 2.6](https://python-all.ru/2.6/whatsnew/2.6.html)1213    - [Python 3.0](https://python-all.ru/2.6/whatsnew/2.6.html#python-3-0)14    - [Изменения в процессе разработки](https://python-all.ru/2.6/whatsnew/2.6.html#changes-to-the-development-process)1516      - [Новый трекер ошибок: Roundup](https://python-all.ru/2.6/whatsnew/2.6.html#new-issue-tracker-roundup)17      - [Новый формат документации: reStructuredText с использованием Sphinx](https://python-all.ru/2.6/whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx)18    - [PEP 343: Оператор 'with'](https://python-all.ru/2.6/whatsnew/2.6.html#pep-343-the-with-statement)1920      - [Написание контекстных менеджеров](https://python-all.ru/2.6/whatsnew/2.6.html#writing-context-managers)21      - [Модуль contextlib](https://python-all.ru/2.6/whatsnew/2.6.html#the-contextlib-module)22    - [PEP 366: Явные относительные импорты из главного модуля](https://python-all.ru/2.6/whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module)23    - [PEP 370: Пользовательская `site-packages` директория](https://python-all.ru/2.6/whatsnew/2.6.html#pep-370-per-user-site-packages-directory)24    - [PEP 371: Пакет `multiprocessing`](https://python-all.ru/2.6/whatsnew/2.6.html#pep-371-the-multiprocessing-package)25    - [PEP 3101: Расширенное форматирование строк](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3101-advanced-string-formatting)26    - [PEP 3105: `print` как функция](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3105-print-as-a-function)27    - [PEP 3110: Изменения в обработке исключений](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3110-exception-handling-changes)28    - [PEP 3112: Байтовые литералы](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3112-byte-literals)29    - [PEP 3116: Новая библиотека ввода-вывода](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3116-new-i-o-library)30    - [PEP 3118: Пересмотренный протокол буферов](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3118-revised-buffer-protocol)31    - [PEP 3119: Абстрактные базовые классы](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3119-abstract-base-classes)32    - [PEP 3127: Поддержка и синтаксис целочисленных литералов](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax)33    - [PEP 3129: Декораторы классов](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3129-class-decorators)34    - [PEP 3141: Иерархия типов для чисел](https://python-all.ru/2.6/whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers)3536      - [Модуль `fractions`](https://python-all.ru/2.6/whatsnew/2.6.html#the-fractions-module)37    - [Прочие изменения языка](https://python-all.ru/2.6/whatsnew/2.6.html#other-language-changes)3839      - [Оптимизации](https://python-all.ru/2.6/whatsnew/2.6.html#optimizations)40      - [Изменения в интерпретаторе](https://python-all.ru/2.6/whatsnew/2.6.html#interpreter-changes)41    - [Новые и улучшенные модули](https://python-all.ru/2.6/whatsnew/2.6.html#new-and-improved-modules)4243      - [Модуль `ast`](https://python-all.ru/2.6/whatsnew/2.6.html#the-ast-module)44      - [Модуль `future_builtins`](https://python-all.ru/2.6/whatsnew/2.6.html#the-future-builtins-module)45      - [Модуль `json`: JavaScript Object Notation](https://python-all.ru/2.6/whatsnew/2.6.html#the-json-module-javascript-object-notation)46      - [Модуль `plistlib`: парсер списков свойств](https://python-all.ru/2.6/whatsnew/2.6.html#the-plistlib-module-a-property-list-parser)47      - [Улучшения ctypes](https://python-all.ru/2.6/whatsnew/2.6.html#ctypes-enhancements)48      - [Улучшенная поддержка SSL](https://python-all.ru/2.6/whatsnew/2.6.html#improved-ssl-support)49    - [Устаревания и удаления](https://python-all.ru/2.6/whatsnew/2.6.html#deprecations-and-removals)50    - [Изменения в сборке и C API](https://python-all.ru/2.6/whatsnew/2.6.html#build-and-c-api-changes)5152      - [Изменения для конкретных платформ: Windows](https://python-all.ru/2.6/whatsnew/2.6.html#port-specific-changes-windows)53      - [Изменения для конкретных платформ: Mac OS X](https://python-all.ru/2.6/whatsnew/2.6.html#port-specific-changes-mac-os-x)54      - [Изменения для конкретных платформ: IRIX](https://python-all.ru/2.6/whatsnew/2.6.html#port-specific-changes-irix)55    - [Переход на Python 2.6](https://python-all.ru/2.6/whatsnew/2.6.html#porting-to-python-2-6)56    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.6.html#acknowledgements)57  - [Что нового в Python 2.5](https://python-all.ru/2.6/whatsnew/2.5.html)5859    - [PEP 308: Условные выражения](https://python-all.ru/2.6/whatsnew/2.5.html#pep-308-conditional-expressions)60    - [PEP 309: Частичное применение функций](https://python-all.ru/2.6/whatsnew/2.5.html#pep-309-partial-function-application)61    - [PEP 314: Метаданные для пакетов Python v1.1](https://python-all.ru/2.6/whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1)62    - [PEP 328: Абсолютные и относительные импорты](https://python-all.ru/2.6/whatsnew/2.5.html#pep-328-absolute-and-relative-imports)63    - [PEP 338: Выполнение модулей как сценариев](https://python-all.ru/2.6/whatsnew/2.5.html#pep-338-executing-modules-as-scripts)64    - [PEP 341: Единый try/except/finally](https://python-all.ru/2.6/whatsnew/2.5.html#pep-341-unified-try-except-finally)65    - [PEP 342: Новые возможности генераторов](https://python-all.ru/2.6/whatsnew/2.5.html#pep-342-new-generator-features)66    - [PEP 343: Оператор 'with'](https://python-all.ru/2.6/whatsnew/2.5.html#pep-343-the-with-statement)6768      - [Написание контекстных менеджеров](https://python-all.ru/2.6/whatsnew/2.5.html#writing-context-managers)69      - [Модуль contextlib](https://python-all.ru/2.6/whatsnew/2.5.html#the-contextlib-module)70    - [PEP 352: Исключения как классы нового стиля](https://python-all.ru/2.6/whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes)71    - [PEP 353: Использование ssize\_t в качестве типа индекса](https://python-all.ru/2.6/whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type)72    - [PEP 357: Метод '\_\_index\_\_'](https://python-all.ru/2.6/whatsnew/2.5.html#pep-357-the-index-method)73    - [Прочие изменения языка](https://python-all.ru/2.6/whatsnew/2.5.html#other-language-changes)7475      - [Изменения в интерактивном интерпретаторе](https://python-all.ru/2.6/whatsnew/2.5.html#interactive-interpreter-changes)76      - [Оптимизации](https://python-all.ru/2.6/whatsnew/2.5.html#optimizations)77    - [Новые, улучшенные и удалённые модули](https://python-all.ru/2.6/whatsnew/2.5.html#new-improved-and-removed-modules)7879      - [Пакет ctypes](https://python-all.ru/2.6/whatsnew/2.5.html#the-ctypes-package)80      - [Пакет ElementTree](https://python-all.ru/2.6/whatsnew/2.5.html#the-elementtree-package)81      - [Пакет hashlib](https://python-all.ru/2.6/whatsnew/2.5.html#the-hashlib-package)82      - [Пакет sqlite3](https://python-all.ru/2.6/whatsnew/2.5.html#the-sqlite3-package)83      - [Пакет wsgiref](https://python-all.ru/2.6/whatsnew/2.5.html#the-wsgiref-package)84    - [Изменения в сборке и C API](https://python-all.ru/2.6/whatsnew/2.5.html#build-and-c-api-changes)8586      - [Изменения для конкретных платформ](https://python-all.ru/2.6/whatsnew/2.5.html#port-specific-changes)87    - [Перенос на Python 2.5](https://python-all.ru/2.6/whatsnew/2.5.html#porting-to-python-2-5)88    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.5.html#acknowledgements)89  - [Что нового в Python 2.4](https://python-all.ru/2.6/whatsnew/2.4.html)9091    - [PEP 218: Встроенные объекты множеств](https://python-all.ru/2.6/whatsnew/2.4.html#pep-218-built-in-set-objects)92    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/2.6/whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers)93    - [PEP 289: Генераторные выражения](https://python-all.ru/2.6/whatsnew/2.4.html#pep-289-generator-expressions)94    - [PEP 292: Упрощённая подстановка строк](https://python-all.ru/2.6/whatsnew/2.4.html#pep-292-simpler-string-substitutions)95    - [PEP 318: Декораторы для функций и методов](https://python-all.ru/2.6/whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods)96    - [PEP 322: Обратная итерация](https://python-all.ru/2.6/whatsnew/2.4.html#pep-322-reverse-iteration)97    - [PEP 324: Новый модуль подпроцесса](https://python-all.ru/2.6/whatsnew/2.4.html#pep-324-new-subprocess-module)98    - [PEP 327: Тип данных Decimal](https://python-all.ru/2.6/whatsnew/2.4.html#pep-327-decimal-data-type)99100      - [Зачем нужен Decimal?](https://python-all.ru/2.6/whatsnew/2.4.html#why-is-decimal-needed)101      - [Тип `Decimal`](https://python-all.ru/2.6/whatsnew/2.4.html#the-decimal-type)102      - [Тип `Context`](https://python-all.ru/2.6/whatsnew/2.4.html#the-context-type)103    - [PEP 328: Многострочные импорты](https://python-all.ru/2.6/whatsnew/2.4.html#pep-328-multi-line-imports)104    - [PEP 331: Независящие от локали преобразования float/строк](https://python-all.ru/2.6/whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions)105    - [Прочие изменения языка](https://python-all.ru/2.6/whatsnew/2.4.html#other-language-changes)106107      - [Оптимизации](https://python-all.ru/2.6/whatsnew/2.4.html#optimizations)108    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/2.6/whatsnew/2.4.html#new-improved-and-deprecated-modules)109110      - [cookielib](https://python-all.ru/2.6/whatsnew/2.4.html#cookielib)111      - [doctest](https://python-all.ru/2.6/whatsnew/2.4.html#doctest)112    - [Изменения в сборке и C API](https://python-all.ru/2.6/whatsnew/2.4.html#build-and-c-api-changes)113114      - [Изменения для конкретных платформ](https://python-all.ru/2.6/whatsnew/2.4.html#port-specific-changes)115    - [Перенос на Python 2.4](https://python-all.ru/2.6/whatsnew/2.4.html#porting-to-python-2-4)116    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.4.html#acknowledgements)117  - [Что нового в Python 2.3](https://python-all.ru/2.6/whatsnew/2.3.html)118119    - [PEP 218: Стандартный тип set](https://python-all.ru/2.6/whatsnew/2.3.html#pep-218-a-standard-set-datatype)120    - [PEP 255: простые генераторы](https://python-all.ru/2.6/whatsnew/2.3.html#pep-255-simple-generators)121    - [PEP 263: Кодировки исходного кода](https://python-all.ru/2.6/whatsnew/2.3.html#pep-263-source-code-encodings)122    - [PEP 273: Импорт модулей из ZIP-архивов](https://python-all.ru/2.6/whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives)123    - [PEP 277: Поддержка имён файлов в Unicode для Windows NT](https://python-all.ru/2.6/whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt)124    - [PEP 278: Универсальная поддержка символов новой строки](https://python-all.ru/2.6/whatsnew/2.3.html#pep-278-universal-newline-support)125    - [PEP 279: enumerate()](https://python-all.ru/2.6/whatsnew/2.3.html#pep-279-enumerate)126    - [PEP 282: Пакет logging](https://python-all.ru/2.6/whatsnew/2.3.html#pep-282-the-logging-package)127    - [PEP 285: Булев тип](https://python-all.ru/2.6/whatsnew/2.3.html#pep-285-a-boolean-type)128    - [PEP 293: Колбэки обработки ошибок кодеков](https://python-all.ru/2.6/whatsnew/2.3.html#pep-293-codec-error-handling-callbacks)129    - [PEP 301: Индекс пакетов и метаданные для Distutils](https://python-all.ru/2.6/whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils)130    - [PEP 302: Новые хуки импорта](https://python-all.ru/2.6/whatsnew/2.3.html#pep-302-new-import-hooks)131    - [PEP 305: Файлы с разделителями-запятыми](https://python-all.ru/2.6/whatsnew/2.3.html#pep-305-comma-separated-files)132    - [PEP 307: Улучшения pickle](https://python-all.ru/2.6/whatsnew/2.3.html#pep-307-pickle-enhancements)133    - [Расширенные срезы](https://python-all.ru/2.6/whatsnew/2.3.html#extended-slices)134    - [Прочие изменения языка](https://python-all.ru/2.6/whatsnew/2.3.html#other-language-changes)135136      - [Изменения в строках](https://python-all.ru/2.6/whatsnew/2.3.html#string-changes)137      - [Оптимизации](https://python-all.ru/2.6/whatsnew/2.3.html#optimizations)138    - [Новые, улучшенные и устаревшие модули](https://python-all.ru/2.6/whatsnew/2.3.html#new-improved-and-deprecated-modules)139140      - [Тип даты/времени](https://python-all.ru/2.6/whatsnew/2.3.html#date-time-type)141      - [Модуль optparse](https://python-all.ru/2.6/whatsnew/2.3.html#the-optparse-module)142    - [Pymalloc: Специализированный аллокатор объектов](https://python-all.ru/2.6/whatsnew/2.3.html#pymalloc-a-specialized-object-allocator)143    - [Изменения в сборке и C API](https://python-all.ru/2.6/whatsnew/2.3.html#build-and-c-api-changes)144145      - [Изменения для конкретных платформ](https://python-all.ru/2.6/whatsnew/2.3.html#port-specific-changes)146    - [Прочие изменения и исправления](https://python-all.ru/2.6/whatsnew/2.3.html#other-changes-and-fixes)147    - [Перенос на Python 2.3](https://python-all.ru/2.6/whatsnew/2.3.html#porting-to-python-2-3)148    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.3.html#acknowledgements)149  - [Что нового в Python 2.2](https://python-all.ru/2.6/whatsnew/2.2.html)150151    - [Введение](https://python-all.ru/2.6/whatsnew/2.2.html#introduction)152    - [PEP 252 и 253: изменения типов и классов](https://python-all.ru/2.6/whatsnew/2.2.html#peps-252-and-253-type-and-class-changes)153154      - [Старые и новые классы](https://python-all.ru/2.6/whatsnew/2.2.html#old-and-new-classes)155      - [Дескрипторы](https://python-all.ru/2.6/whatsnew/2.2.html#descriptors)156      - [Множественное наследование: правило ромба](https://python-all.ru/2.6/whatsnew/2.2.html#multiple-inheritance-the-diamond-rule)157      - [Доступ к атрибутам](https://python-all.ru/2.6/whatsnew/2.2.html#attribute-access)158      - [Связанные ссылки](https://python-all.ru/2.6/whatsnew/2.2.html#related-links)159    - [PEP 234: итераторы](https://python-all.ru/2.6/whatsnew/2.2.html#pep-234-iterators)160    - [PEP 255: простые генераторы](https://python-all.ru/2.6/whatsnew/2.2.html#pep-255-simple-generators)161    - [PEP 237: объединение длинных целых и целых чисел](https://python-all.ru/2.6/whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers)162    - [PEP 238: изменение оператора деления](https://python-all.ru/2.6/whatsnew/2.2.html#pep-238-changing-the-division-operator)163    - [Изменения в Unicode](https://python-all.ru/2.6/whatsnew/2.2.html#unicode-changes)164    - [PEP 227: вложенные области видимости](https://python-all.ru/2.6/whatsnew/2.2.html#pep-227-nested-scopes)165    - [Новые и улучшенные модули](https://python-all.ru/2.6/whatsnew/2.2.html#new-and-improved-modules)166    - [Изменения и исправления интерпретатора](https://python-all.ru/2.6/whatsnew/2.2.html#interpreter-changes-and-fixes)167    - [Прочие изменения и исправления](https://python-all.ru/2.6/whatsnew/2.2.html#other-changes-and-fixes)168    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.2.html#acknowledgements)169  - [Что нового в Python 2.1](https://python-all.ru/2.6/whatsnew/2.1.html)170171    - [Введение](https://python-all.ru/2.6/whatsnew/2.1.html#introduction)172    - [PEP 227: вложенные области видимости](https://python-all.ru/2.6/whatsnew/2.1.html#pep-227-nested-scopes)173    - [PEP 236: директивы \_\_future\_\_](https://python-all.ru/2.6/whatsnew/2.1.html#pep-236-future-directives)174    - [PEP 207: расширенные сравнения](https://python-all.ru/2.6/whatsnew/2.1.html#pep-207-rich-comparisons)175    - [PEP 230: инфраструктура предупреждений](https://python-all.ru/2.6/whatsnew/2.1.html#pep-230-warning-framework)176    - [PEP 229: новая система сборки](https://python-all.ru/2.6/whatsnew/2.1.html#pep-229-new-build-system)177    - [PEP 205: слабые ссылки](https://python-all.ru/2.6/whatsnew/2.1.html#pep-205-weak-references)178    - [PEP 232: атрибуты функций](https://python-all.ru/2.6/whatsnew/2.1.html#pep-232-function-attributes)179    - [PEP 235: импорт модулей на платформах, нечувствительных к регистру](https://python-all.ru/2.6/whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms)180    - [PEP 217: интерактивный перехватчик вывода](https://python-all.ru/2.6/whatsnew/2.1.html#pep-217-interactive-display-hook)181    - [PEP 208: новая модель приведения типов](https://python-all.ru/2.6/whatsnew/2.1.html#pep-208-new-coercion-model)182    - [PEP 241: метаданные в пакетах Python](https://python-all.ru/2.6/whatsnew/2.1.html#pep-241-metadata-in-python-packages)183    - [Новые и улучшенные модули](https://python-all.ru/2.6/whatsnew/2.1.html#new-and-improved-modules)184    - [Прочие изменения и исправления](https://python-all.ru/2.6/whatsnew/2.1.html#other-changes-and-fixes)185    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.1.html#acknowledgements)186  - [Что нового в Python 2.0](https://python-all.ru/2.6/whatsnew/2.0.html)187188    - [Введение](https://python-all.ru/2.6/whatsnew/2.0.html#introduction)189    - [А что насчёт Python 1.6?](https://python-all.ru/2.6/whatsnew/2.0.html#what-about-python-1-6)190    - [Новый процесс разработки](https://python-all.ru/2.6/whatsnew/2.0.html#new-development-process)191    - [Юникод](https://python-all.ru/2.6/whatsnew/2.0.html#unicode)192    - [Списковые включения](https://python-all.ru/2.6/whatsnew/2.0.html#list-comprehensions)193    - [Расширенное присваивание](https://python-all.ru/2.6/whatsnew/2.0.html#augmented-assignment)194    - [Методы строк](https://python-all.ru/2.6/whatsnew/2.0.html#string-methods)195    - [Сборка мусора циклических ссылок](https://python-all.ru/2.6/whatsnew/2.0.html#garbage-collection-of-cycles)196    - [Другие изменения ядра](https://python-all.ru/2.6/whatsnew/2.0.html#other-core-changes)197198      - [Мелкие изменения языка](https://python-all.ru/2.6/whatsnew/2.0.html#minor-language-changes)199      - [Изменения встроенных функций](https://python-all.ru/2.6/whatsnew/2.0.html#changes-to-built-in-functions)200    - [Перенос на 2.0](https://python-all.ru/2.6/whatsnew/2.0.html#porting-to-2-0)201    - [Изменения в расширении/встраивании](https://python-all.ru/2.6/whatsnew/2.0.html#extending-embedding-changes)202    - [Distutils: упрощение установки модулей](https://python-all.ru/2.6/whatsnew/2.0.html#distutils-making-modules-easy-to-install)203    - [Модули XML](https://python-all.ru/2.6/whatsnew/2.0.html#xml-modules)204205      - [Поддержка SAX2](https://python-all.ru/2.6/whatsnew/2.0.html#sax2-support)206      - [Поддержка DOM](https://python-all.ru/2.6/whatsnew/2.0.html#dom-support)207      - [Связь с PyXML](https://python-all.ru/2.6/whatsnew/2.0.html#relationship-to-pyxml)208    - [Изменения модулей](https://python-all.ru/2.6/whatsnew/2.0.html#module-changes)209    - [Новые модули](https://python-all.ru/2.6/whatsnew/2.0.html#new-modules)210    - [Улучшения IDLE](https://python-all.ru/2.6/whatsnew/2.0.html#idle-improvements)211    - [Удалённые и устаревшие модули](https://python-all.ru/2.6/whatsnew/2.0.html#deleted-and-deprecated-modules)212    - [Благодарности](https://python-all.ru/2.6/whatsnew/2.0.html#acknowledgements)213- [Учебник Python](https://python-all.ru/2.6/tutorial/index.html)214215  - [1. Введение](https://python-all.ru/2.6/tutorial/appetite.html)216  - [2. Использование интерпретатора Python](https://python-all.ru/2.6/tutorial/interpreter.html)217218    - [2.1. Запуск интерпретатора](https://python-all.ru/2.6/tutorial/interpreter.html#invoking-the-interpreter)219220      - [2.1.1. Передача аргументов](https://python-all.ru/2.6/tutorial/interpreter.html#argument-passing)221      - [2.1.2. Интерактивный режим](https://python-all.ru/2.6/tutorial/interpreter.html#interactive-mode)222    - [2.2. Интерпретатор и его окружение](https://python-all.ru/2.6/tutorial/interpreter.html#the-interpreter-and-its-environment)223224      - [2.2.1. Обработка ошибок](https://python-all.ru/2.6/tutorial/interpreter.html#error-handling)225      - [2.2.2. Исполняемые скрипты Python](https://python-all.ru/2.6/tutorial/interpreter.html#executable-python-scripts)226      - [2.2.3. Кодировка исходного кода](https://python-all.ru/2.6/tutorial/interpreter.html#source-code-encoding)227      - [2.2.4. Интерактивный файл запуска](https://python-all.ru/2.6/tutorial/interpreter.html#the-interactive-startup-file)228  - [3. Неформальное введение в Python](https://python-all.ru/2.6/tutorial/introduction.html)229230    - [3.1. Использование Python в качестве калькулятора](https://python-all.ru/2.6/tutorial/introduction.html#using-python-as-a-calculator)231232      - [3.1.1. Числа](https://python-all.ru/2.6/tutorial/introduction.html#numbers)233      - [3.1.2. Строки](https://python-all.ru/2.6/tutorial/introduction.html#strings)234      - [3.1.3. Строки Unicode](https://python-all.ru/2.6/tutorial/introduction.html#unicode-strings)235      - [3.1.4. Списки](https://python-all.ru/2.6/tutorial/introduction.html#lists)236    - [3.2. Первые шаги к программированию](https://python-all.ru/2.6/tutorial/introduction.html#first-steps-towards-programming)237  - [4. Дополнительные средства управления потоком](https://python-all.ru/2.6/tutorial/controlflow.html)238239    - [4.1. `if` Инструкции](https://python-all.ru/2.6/tutorial/controlflow.html#if-statements)240    - [4.2. `for` Инструкции](https://python-all.ru/2.6/tutorial/controlflow.html#for-statements)241    - [4.3. Функция `range()`](https://python-all.ru/2.6/tutorial/controlflow.html#the-range-function)242    - [4.4. `break` и `continue` инструкции, а также `else` предложения в циклах](https://python-all.ru/2.6/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops)243    - [4.5. `pass` Инструкции](https://python-all.ru/2.6/tutorial/controlflow.html#pass-statements)244    - [4.6. Определение функций](https://python-all.ru/2.6/tutorial/controlflow.html#defining-functions)245    - [4.7. Подробнее об определении функций](https://python-all.ru/2.6/tutorial/controlflow.html#more-on-defining-functions)246247      - [4.7.1. Значения аргументов по умолчанию](https://python-all.ru/2.6/tutorial/controlflow.html#default-argument-values)248      - [4.7.2. Именованные аргументы](https://python-all.ru/2.6/tutorial/controlflow.html#keyword-arguments)249      - [4.7.3. Произвольные списки аргументов](https://python-all.ru/2.6/tutorial/controlflow.html#arbitrary-argument-lists)250      - [4.7.4. Распаковка списков аргументов](https://python-all.ru/2.6/tutorial/controlflow.html#unpacking-argument-lists)251      - [4.7.5. Лямбда-выражения](https://python-all.ru/2.6/tutorial/controlflow.html#lambda-forms)252      - [4.7.6. Строки документации](https://python-all.ru/2.6/tutorial/controlflow.html#documentation-strings)253    - [4.8. Интермеццо: стиль кодирования](https://python-all.ru/2.6/tutorial/controlflow.html#intermezzo-coding-style)254  - [5. Структуры данных](https://python-all.ru/2.6/tutorial/datastructures.html)255256    - [5.1. Подробнее о списках](https://python-all.ru/2.6/tutorial/datastructures.html#more-on-lists)257258      - [5.1.1. Использование списков как стеков](https://python-all.ru/2.6/tutorial/datastructures.html#using-lists-as-stacks)259      - [5.1.2. Использование списков как очередей](https://python-all.ru/2.6/tutorial/datastructures.html#using-lists-as-queues)260      - [5.1.3. Инструменты функционального программирования](https://python-all.ru/2.6/tutorial/datastructures.html#functional-programming-tools)261      - [5.1.4. Списковые включения](https://python-all.ru/2.6/tutorial/datastructures.html#list-comprehensions)262      - [5.1.5. Вложенные списковые включения](https://python-all.ru/2.6/tutorial/datastructures.html#nested-list-comprehensions)263    - [5.2. Инструкция `del`](https://python-all.ru/2.6/tutorial/datastructures.html#the-del-statement)264    - [5.3. Кортежи и последовательности](https://python-all.ru/2.6/tutorial/datastructures.html#tuples-and-sequences)265    - [5.4. Множества](https://python-all.ru/2.6/tutorial/datastructures.html#sets)266    - [5.5. Словари](https://python-all.ru/2.6/tutorial/datastructures.html#dictionaries)267    - [5.6. Приёмы работы с циклами](https://python-all.ru/2.6/tutorial/datastructures.html#looping-techniques)268    - [5.7. Подробнее об условиях](https://python-all.ru/2.6/tutorial/datastructures.html#more-on-conditions)269    - [5.8. Сравнение последовательностей и других типов](https://python-all.ru/2.6/tutorial/datastructures.html#comparing-sequences-and-other-types)270  - [6. Модули](https://python-all.ru/2.6/tutorial/modules.html)271272    - [6.1. Подробнее о модулях](https://python-all.ru/2.6/tutorial/modules.html#more-on-modules)273274      - [6.1.1. Запуск модулей как скриптов](https://python-all.ru/2.6/tutorial/modules.html#executing-modules-as-scripts)275      - [6.1.2. Путь поиска модулей](https://python-all.ru/2.6/tutorial/modules.html#the-module-search-path)276      - [6.1.3. «Скомпилированные» файлы Python](https://python-all.ru/2.6/tutorial/modules.html#compiled-python-files)277    - [6.2. Стандартные модули](https://python-all.ru/2.6/tutorial/modules.html#standard-modules)278    - [6.3. Функция `dir()`](https://python-all.ru/2.6/tutorial/modules.html#the-dir-function)279    - [6.4. Пакеты](https://python-all.ru/2.6/tutorial/modules.html#packages)280281      - [6.4.1. Импорт \* из пакета](https://python-all.ru/2.6/tutorial/modules.html#importing-from-a-package)282      - [6.4.2. Ссылки внутри пакета](https://python-all.ru/2.6/tutorial/modules.html#intra-package-references)283      - [6.4.3. Пакеты в нескольких каталогах](https://python-all.ru/2.6/tutorial/modules.html#packages-in-multiple-directories)284  - [7. Ввод и вывод](https://python-all.ru/2.6/tutorial/inputoutput.html)285286    - [7.1. Более сложное форматирование вывода](https://python-all.ru/2.6/tutorial/inputoutput.html#fancier-output-formatting)287288      - [7.1.1. Старое форматирование строк](https://python-all.ru/2.6/tutorial/inputoutput.html#old-string-formatting)289    - [7.2. Чтение и запись файлов](https://python-all.ru/2.6/tutorial/inputoutput.html#reading-and-writing-files)290291      - [7.2.1. Методы файловых объектов](https://python-all.ru/2.6/tutorial/inputoutput.html#methods-of-file-objects)292      - [7.2.2. Модуль `pickle`](https://python-all.ru/2.6/tutorial/inputoutput.html#the-pickle-module)293  - [8. Ошибки и исключения](https://python-all.ru/2.6/tutorial/errors.html)294295    - [8.1. Синтаксические ошибки](https://python-all.ru/2.6/tutorial/errors.html#syntax-errors)296    - [8.2. Исключения](https://python-all.ru/2.6/tutorial/errors.html#exceptions)297    - [8.3. Обработка исключений](https://python-all.ru/2.6/tutorial/errors.html#handling-exceptions)298    - [8.4. Возбуждение исключений](https://python-all.ru/2.6/tutorial/errors.html#raising-exceptions)299    - [8.5. Пользовательские исключения](https://python-all.ru/2.6/tutorial/errors.html#user-defined-exceptions)300    - [8.6. Определение действий по очистке](https://python-all.ru/2.6/tutorial/errors.html#defining-clean-up-actions)301    - [8.7. Предопределённые действия по очистке](https://python-all.ru/2.6/tutorial/errors.html#predefined-clean-up-actions)302  - [9. Классы](https://python-all.ru/2.6/tutorial/classes.html)303304    - [9.1. Несколько слов об именах и объектах](https://python-all.ru/2.6/tutorial/classes.html#a-word-about-names-and-objects)305    - [9.2. Области видимости и пространства имён Python](https://python-all.ru/2.6/tutorial/classes.html#python-scopes-and-namespaces)306    - [9.3. Первое знакомство с классами](https://python-all.ru/2.6/tutorial/classes.html#a-first-look-at-classes)307308      - [9.3.1. Синтаксис определения класса](https://python-all.ru/2.6/tutorial/classes.html#class-definition-syntax)309      - [9.3.2. Объекты классов](https://python-all.ru/2.6/tutorial/classes.html#class-objects)310      - [9.3.3. Объекты экземпляров](https://python-all.ru/2.6/tutorial/classes.html#instance-objects)311      - [9.3.4. Объекты методов](https://python-all.ru/2.6/tutorial/classes.html#method-objects)312    - [9.4. Разные замечания](https://python-all.ru/2.6/tutorial/classes.html#random-remarks)313    - [9.5. Наследование](https://python-all.ru/2.6/tutorial/classes.html#inheritance)314315      - [9.5.1. Множественное наследование](https://python-all.ru/2.6/tutorial/classes.html#multiple-inheritance)316    - [9.6. Приватные переменные](https://python-all.ru/2.6/tutorial/classes.html#private-variables)317    - [9.7. Разное](https://python-all.ru/2.6/tutorial/classes.html#odds-and-ends)318    - [9.8. Исключения – тоже классы](https://python-all.ru/2.6/tutorial/classes.html#exceptions-are-classes-too)319    - [9.9. Итераторы](https://python-all.ru/2.6/tutorial/classes.html#iterators)320    - [9.10. Генераторы](https://python-all.ru/2.6/tutorial/classes.html#generators)321    - [9.11. Генераторные выражения](https://python-all.ru/2.6/tutorial/classes.html#generator-expressions)322  - [10. Краткий обзор стандартной библиотеки](https://python-all.ru/2.6/tutorial/stdlib.html)323324    - [10.1. Интерфейс операционной системы](https://python-all.ru/2.6/tutorial/stdlib.html#operating-system-interface)325    - [10.2. Файловые шаблоны](https://python-all.ru/2.6/tutorial/stdlib.html#file-wildcards)326    - [10.3. Аргументы командной строки](https://python-all.ru/2.6/tutorial/stdlib.html#command-line-arguments)327    - [10.4. Перенаправление вывода ошибок и завершение программы](https://python-all.ru/2.6/tutorial/stdlib.html#error-output-redirection-and-program-termination)328    - [10.5. Поиск по шаблону в строках](https://python-all.ru/2.6/tutorial/stdlib.html#string-pattern-matching)329    - [10.6. Математика](https://python-all.ru/2.6/tutorial/stdlib.html#mathematics)330    - [10.7. Доступ в Интернет](https://python-all.ru/2.6/tutorial/stdlib.html#internet-access)331    - [10.8. Даты и время](https://python-all.ru/2.6/tutorial/stdlib.html#dates-and-times)332    - [10.9. Сжатие данных](https://python-all.ru/2.6/tutorial/stdlib.html#data-compression)333    - [10.10. Измерение производительности](https://python-all.ru/2.6/tutorial/stdlib.html#performance-measurement)334    - [10.11. Контроль качества](https://python-all.ru/2.6/tutorial/stdlib.html#quality-control)335    - [10.12. Батарейки в комплекте](https://python-all.ru/2.6/tutorial/stdlib.html#batteries-included)336  - [11. Краткий обзор стандартной библиотеки – Часть II](https://python-all.ru/2.6/tutorial/stdlib2.html)337338    - [11.1. Форматирование вывода](https://python-all.ru/2.6/tutorial/stdlib2.html#output-formatting)339    - [11.2. Шаблоны](https://python-all.ru/2.6/tutorial/stdlib2.html#templating)340    - [11.3. Работа с двоичными данными и структурами записей](https://python-all.ru/2.6/tutorial/stdlib2.html#working-with-binary-data-record-layouts)341    - [11.4. Многопоточность](https://python-all.ru/2.6/tutorial/stdlib2.html#multi-threading)342    - [11.5. Логирование](https://python-all.ru/2.6/tutorial/stdlib2.html#logging)343    - [11.6. Слабые ссылки](https://python-all.ru/2.6/tutorial/stdlib2.html#weak-references)344    - [11.7. Инструменты для работы со списками](https://python-all.ru/2.6/tutorial/stdlib2.html#tools-for-working-with-lists)345    - [11.8. Десятичная арифметика с плавающей запятой](https://python-all.ru/2.6/tutorial/stdlib2.html#decimal-floating-point-arithmetic)346  - [12. Что дальше?](https://python-all.ru/2.6/tutorial/whatnow.html)347  - [13. Интерактивное редактирование ввода и подстановка истории](https://python-all.ru/2.6/tutorial/interactive.html)348349    - [13.1. Редактирование строк](https://python-all.ru/2.6/tutorial/interactive.html#line-editing)350    - [13.2. Подстановка истории](https://python-all.ru/2.6/tutorial/interactive.html#history-substitution)351    - [13.3. Привязки клавиш](https://python-all.ru/2.6/tutorial/interactive.html#key-bindings)352    - [13.4. Альтернативы интерактивному интерпретатору](https://python-all.ru/2.6/tutorial/interactive.html#alternatives-to-the-interactive-interpreter)353  - [14. Арифметика с плавающей запятой: проблемы и ограничения](https://python-all.ru/2.6/tutorial/floatingpoint.html)354355    - [14.1. Ошибка представления](https://python-all.ru/2.6/tutorial/floatingpoint.html#representation-error)356- [Использование Python](https://python-all.ru/2.6/using/index.html)357358  - [1. Командная строка и окружение](https://python-all.ru/2.6/using/cmdline.html)359360    - [1.1. Командная строка](https://python-all.ru/2.6/using/cmdline.html#command-line)361362      - [1.1.1. Параметры интерфейса](https://python-all.ru/2.6/using/cmdline.html#interface-options)363      - [1.1.2. Общие параметры](https://python-all.ru/2.6/using/cmdline.html#generic-options)364      - [1.1.3. Прочие параметры](https://python-all.ru/2.6/using/cmdline.html#miscellaneous-options)365      - [1.1.4. Опции, которые не следует использовать](https://python-all.ru/2.6/using/cmdline.html#options-you-shouldn-t-use)366    - [1.2. Переменные окружения](https://python-all.ru/2.6/using/cmdline.html#environment-variables)367368      - [1.2.1. Переменные режима отладки](https://python-all.ru/2.6/using/cmdline.html#debug-mode-variables)369  - [2. Использование Python на платформах Unix](https://python-all.ru/2.6/using/unix.html)370371    - [2.1. Получение и установка последней версии Python](https://python-all.ru/2.6/using/unix.html#getting-and-installing-the-latest-version-of-python)372373      - [2.1.1. В Linux](https://python-all.ru/2.6/using/unix.html#on-linux)374      - [2.1.2. В FreeBSD и OpenBSD](https://python-all.ru/2.6/using/unix.html#on-freebsd-and-openbsd)375      - [2.1.3. В OpenSolaris](https://python-all.ru/2.6/using/unix.html#on-opensolaris)376    - [2.2. Сборка Python](https://python-all.ru/2.6/using/unix.html#building-python)377    - [2.3. Пути и файлы, связанные с Python](https://python-all.ru/2.6/using/unix.html#python-related-paths-and-files)378    - [2.4. Прочее](https://python-all.ru/2.6/using/unix.html#miscellaneous)379    - [2.5. Редакторы](https://python-all.ru/2.6/using/unix.html#editors)380  - [3. Использование Python в Windows](https://python-all.ru/2.6/using/windows.html)381382    - [3.1. Установка Python](https://python-all.ru/2.6/using/windows.html#installing-python)383    - [3.2. Альтернативные сборки](https://python-all.ru/2.6/using/windows.html#alternative-bundles)384    - [3.3. Настройка Python](https://python-all.ru/2.6/using/windows.html#configuring-python)385386      - [3.3.1. Экскурс: Установка переменных окружения](https://python-all.ru/2.6/using/windows.html#excursus-setting-environment-variables)387      - [3.3.2. Поиск исполняемого файла Python](https://python-all.ru/2.6/using/windows.html#finding-the-python-executable)388      - [3.3.3. Поиск модулей](https://python-all.ru/2.6/using/windows.html#finding-modules)389      - [3.3.4. Выполнение скриптов](https://python-all.ru/2.6/using/windows.html#executing-scripts)390    - [3.4. Дополнительные модули](https://python-all.ru/2.6/using/windows.html#additional-modules)391392      - [3.4.1. PyWin32](https://python-all.ru/2.6/using/windows.html#pywin32)393      - [3.4.2. Py2exe](https://python-all.ru/2.6/using/windows.html#py2exe)394      - [3.4.3. WConio](https://python-all.ru/2.6/using/windows.html#wconio)395    - [3.5. Компиляция Python в Windows](https://python-all.ru/2.6/using/windows.html#compiling-python-on-windows)396    - [3.6. Другие ресурсы](https://python-all.ru/2.6/using/windows.html#other-resources)397  - [4. Использование Python на Macintosh](https://python-all.ru/2.6/using/mac.html)398399    - [4.1. Получение и установка MacPython](https://python-all.ru/2.6/using/mac.html#getting-and-installing-macpython)400401      - [4.1.1. Как запустить скрипт Python](https://python-all.ru/2.6/using/mac.html#how-to-run-a-python-script)402      - [4.1.2. Запуск скриптов с графическим интерфейсом](https://python-all.ru/2.6/using/mac.html#running-scripts-with-a-gui)403      - [4.1.3. Конфигурация](https://python-all.ru/2.6/using/mac.html#configuration)404    - [4.2. IDE](https://python-all.ru/2.6/using/mac.html#the-ide)405    - [4.3. Установка дополнительных пакетов Python](https://python-all.ru/2.6/using/mac.html#installing-additional-python-packages)406    - [4.4. Программирование графического интерфейса на Mac](https://python-all.ru/2.6/using/mac.html#gui-programming-on-the-mac)407    - [4.5. Распространение приложений Python на Mac](https://python-all.ru/2.6/using/mac.html#distributing-python-applications-on-the-mac)408    - [4.6. Сценарное программирование приложений](https://python-all.ru/2.6/using/mac.html#application-scripting)409    - [4.7. Другие ресурсы](https://python-all.ru/2.6/using/mac.html#other-resources)410- [Справочник по языку Python](https://python-all.ru/2.6/reference/index.html)411412  - [1. Введение](https://python-all.ru/2.6/reference/introduction.html)413414    - [1.1. Альтернативные реализации](https://python-all.ru/2.6/reference/introduction.html#alternate-implementations)415    - [1.2. Обозначения](https://python-all.ru/2.6/reference/introduction.html#notation)416  - [2. Лексический анализ](https://python-all.ru/2.6/reference/lexical_analysis.html)417418    - [2.1. Структура строк](https://python-all.ru/2.6/reference/lexical_analysis.html#line-structure)419420      - [2.1.1. Логические строки](https://python-all.ru/2.6/reference/lexical_analysis.html#logical-lines)421      - [2.1.2. Физические строки](https://python-all.ru/2.6/reference/lexical_analysis.html#physical-lines)422      - [2.1.3. Комментарии](https://python-all.ru/2.6/reference/lexical_analysis.html#comments)423      - [2.1.4. Объявление кодировки](https://python-all.ru/2.6/reference/lexical_analysis.html#encoding-declarations)424      - [2.1.5. Явное объединение строк](https://python-all.ru/2.6/reference/lexical_analysis.html#explicit-line-joining)425      - [2.1.6. Неявное объединение строк](https://python-all.ru/2.6/reference/lexical_analysis.html#implicit-line-joining)426      - [2.1.7. Пустые строки](https://python-all.ru/2.6/reference/lexical_analysis.html#blank-lines)427      - [2.1.8. Отступы](https://python-all.ru/2.6/reference/lexical_analysis.html#indentation)428      - [2.1.9. Пробелы между токенами](https://python-all.ru/2.6/reference/lexical_analysis.html#whitespace-between-tokens)429    - [2.2. Другие токены](https://python-all.ru/2.6/reference/lexical_analysis.html#other-tokens)430    - [2.3. Идентификаторы и ключевые слова](https://python-all.ru/2.6/reference/lexical_analysis.html#identifiers)431432      - [2.3.1. Ключевые слова](https://python-all.ru/2.6/reference/lexical_analysis.html#keywords)433      - [2.3.2. Зарезервированные классы идентификаторов](https://python-all.ru/2.6/reference/lexical_analysis.html#reserved-classes-of-identifiers)434    - [2.4. Литералы](https://python-all.ru/2.6/reference/lexical_analysis.html#literals)435436      - [2.4.1. Строковые литералы](https://python-all.ru/2.6/reference/lexical_analysis.html#string-literals)437      - [2.4.2. Конкатенация строковых литералов](https://python-all.ru/2.6/reference/lexical_analysis.html#string-literal-concatenation)438      - [2.4.3. Числовые литералы](https://python-all.ru/2.6/reference/lexical_analysis.html#numeric-literals)439      - [2.4.4. Целочисленные литералы и литералы длинных целых](https://python-all.ru/2.6/reference/lexical_analysis.html#integer-and-long-integer-literals)440      - [2.4.5. Литералы с плавающей точкой](https://python-all.ru/2.6/reference/lexical_analysis.html#floating-point-literals)441      - [2.4.6. Литералы мнимых чисел](https://python-all.ru/2.6/reference/lexical_analysis.html#imaginary-literals)442    - [2.5. Операторы](https://python-all.ru/2.6/reference/lexical_analysis.html#operators)443    - [2.6. Разделители](https://python-all.ru/2.6/reference/lexical_analysis.html#delimiters)444  - [3. Модель данных](https://python-all.ru/2.6/reference/datamodel.html)445446    - [3.1. Объекты, значения и типы](https://python-all.ru/2.6/reference/datamodel.html#objects-values-and-types)447    - [3.2. Стандартная иерархия типов](https://python-all.ru/2.6/reference/datamodel.html#the-standard-type-hierarchy)448    - [3.3. Классы нового стиля и классические классы](https://python-all.ru/2.6/reference/datamodel.html#new-style-and-classic-classes)449    - [3.4. Специальные имена методов](https://python-all.ru/2.6/reference/datamodel.html#special-method-names)450451      - [3.4.1. Базовая настройка](https://python-all.ru/2.6/reference/datamodel.html#basic-customization)452      - [3.4.2. Настройка доступа к атрибутам](https://python-all.ru/2.6/reference/datamodel.html#customizing-attribute-access)453454        - [3.4.2.1. Дополнительный доступ к атрибутам для классов нового стиля](https://python-all.ru/2.6/reference/datamodel.html#more-attribute-access-for-new-style-classes)455        - [3.4.2.2. Реализация дескрипторов](https://python-all.ru/2.6/reference/datamodel.html#implementing-descriptors)456        - [3.4.2.3. Вызов дескрипторов](https://python-all.ru/2.6/reference/datamodel.html#invoking-descriptors)457        - [3.4.2.4. \_\_slots\_\_](https://python-all.ru/2.6/reference/datamodel.html#slots)458      - [3.4.3. Настройка создания классов](https://python-all.ru/2.6/reference/datamodel.html#customizing-class-creation)459      - [3.4.4. Настройка проверок экземпляров и подклассов](https://python-all.ru/2.6/reference/datamodel.html#customizing-instance-and-subclass-checks)460      - [3.4.5. Эмуляция вызываемых объектов](https://python-all.ru/2.6/reference/datamodel.html#emulating-callable-objects)461      - [3.4.6. Эмуляция контейнерных типов](https://python-all.ru/2.6/reference/datamodel.html#emulating-container-types)462      - [3.4.7. Дополнительные методы для эмуляции типов последовательностей](https://python-all.ru/2.6/reference/datamodel.html#additional-methods-for-emulation-of-sequence-types)463      - [3.4.8. Эмуляция числовых типов](https://python-all.ru/2.6/reference/datamodel.html#emulating-numeric-types)464      - [3.4.9. Правила приведения типов](https://python-all.ru/2.6/reference/datamodel.html#coercion-rules)465      - [3.4.10. Контекстные менеджеры оператора with](https://python-all.ru/2.6/reference/datamodel.html#with-statement-context-managers)466      - [3.4.11. Поиск специальных методов для классов старого стиля](https://python-all.ru/2.6/reference/datamodel.html#special-method-lookup-for-old-style-classes)467      - [3.4.12. Поиск специальных методов для классов нового стиля](https://python-all.ru/2.6/reference/datamodel.html#special-method-lookup-for-new-style-classes)468  - [4. Модель выполнения](https://python-all.ru/2.6/reference/executionmodel.html)469470    - [4.1. Именование и связывание](https://python-all.ru/2.6/reference/executionmodel.html#naming-and-binding)471472      - [4.1.1. Взаимодействие с динамическими возможностями](https://python-all.ru/2.6/reference/executionmodel.html#interaction-with-dynamic-features)473    - [4.2. Исключения](https://python-all.ru/2.6/reference/executionmodel.html#exceptions)474  - [5. Выражения](https://python-all.ru/2.6/reference/expressions.html)475476    - [5.1. Арифметические преобразования](https://python-all.ru/2.6/reference/expressions.html#arithmetic-conversions)477    - [5.2. Атомы](https://python-all.ru/2.6/reference/expressions.html#atoms)478479      - [5.2.1. Идентификаторы (имена)](https://python-all.ru/2.6/reference/expressions.html#atom-identifiers)480      - [5.2.2. Литералы](https://python-all.ru/2.6/reference/expressions.html#literals)481      - [5.2.3. Формы в скобках](https://python-all.ru/2.6/reference/expressions.html#parenthesized-forms)482      - [5.2.4. Отображения списков](https://python-all.ru/2.6/reference/expressions.html#list-displays)483      - [5.2.5. Выражения-генераторы](https://python-all.ru/2.6/reference/expressions.html#generator-expressions)484      - [5.2.6. Отображения словарей](https://python-all.ru/2.6/reference/expressions.html#dictionary-displays)485      - [5.2.7. Преобразования строк](https://python-all.ru/2.6/reference/expressions.html#string-conversions)486      - [5.2.8. Выражения yield](https://python-all.ru/2.6/reference/expressions.html#yield-expressions)487    - [5.3. Первичные элементы](https://python-all.ru/2.6/reference/expressions.html#primaries)488489      - [5.3.1. Ссылки на атрибуты](https://python-all.ru/2.6/reference/expressions.html#attribute-references)490      - [5.3.2. Индексация](https://python-all.ru/2.6/reference/expressions.html#subscriptions)491      - [5.3.3. Срезы](https://python-all.ru/2.6/reference/expressions.html#slicings)492      - [5.3.4. Вызовы](https://python-all.ru/2.6/reference/expressions.html#calls)493    - [5.4. Оператор возведения в степень](https://python-all.ru/2.6/reference/expressions.html#the-power-operator)494    - [5.5. Унарные арифметические и побитовые операции](https://python-all.ru/2.6/reference/expressions.html#unary-arithmetic-and-bitwise-operations)495    - [5.6. Бинарные арифметические операции](https://python-all.ru/2.6/reference/expressions.html#binary-arithmetic-operations)496    - [5.7. Операции сдвига](https://python-all.ru/2.6/reference/expressions.html#shifting-operations)497    - [5.8. Бинарные побитовые операции](https://python-all.ru/2.6/reference/expressions.html#binary-bitwise-operations)498    - [5.9. Сравнения](https://python-all.ru/2.6/reference/expressions.html#notin)499    - [5.10. Булевы операции](https://python-all.ru/2.6/reference/expressions.html#boolean-operations)500    - [5.11. Условные выражения](https://python-all.ru/2.6/reference/expressions.html#conditional-expressions)501    - [5.12. Лямбда-выражения](https://python-all.ru/2.6/reference/expressions.html#lambda)502    - [5.13. Списки выражений](https://python-all.ru/2.6/reference/expressions.html#expression-lists)503    - [5.14. Порядок вычисления](https://python-all.ru/2.6/reference/expressions.html#evaluation-order)504    - [5.15. Итоги](https://python-all.ru/2.6/reference/expressions.html#summary)505  - [6. Простые инструкции](https://python-all.ru/2.6/reference/simple_stmts.html)506507    - [6.1. Инструкции-выражения](https://python-all.ru/2.6/reference/simple_stmts.html#expression-statements)508    - [6.2. Инструкции присваивания](https://python-all.ru/2.6/reference/simple_stmts.html#assignment-statements)509510      - [6.2.1. Инструкции присваивания с операцией](https://python-all.ru/2.6/reference/simple_stmts.html#augmented-assignment-statements)511    - [6.3. Инструкция `assert`](https://python-all.ru/2.6/reference/simple_stmts.html#the-assert-statement)512    - [6.4. Инструкция `pass`](https://python-all.ru/2.6/reference/simple_stmts.html#the-pass-statement)513    - [6.5. Инструкция `del`](https://python-all.ru/2.6/reference/simple_stmts.html#the-del-statement)514    - [6.6. Инструкция `print`](https://python-all.ru/2.6/reference/simple_stmts.html#the-print-statement)515    - [6.7. Инструкция `return`](https://python-all.ru/2.6/reference/simple_stmts.html#the-return-statement)516    - [6.8. Инструкция `yield`](https://python-all.ru/2.6/reference/simple_stmts.html#the-yield-statement)517    - [6.9. Инструкция `raise`](https://python-all.ru/2.6/reference/simple_stmts.html#the-raise-statement)518    - [6.10. Инструкция `break`](https://python-all.ru/2.6/reference/simple_stmts.html#the-break-statement)519    - [6.11. Инструкция `continue`](https://python-all.ru/2.6/reference/simple_stmts.html#the-continue-statement)520    - [6.12. Инструкция `import`](https://python-all.ru/2.6/reference/simple_stmts.html#the-import-statement)521522      - [6.12.1. Операторы future](https://python-all.ru/2.6/reference/simple_stmts.html#future-statements)523    - [6.13. Инструкция `global`](https://python-all.ru/2.6/reference/simple_stmts.html#the-global-statement)524    - [6.14. Инструкция `exec`](https://python-all.ru/2.6/reference/simple_stmts.html#the-exec-statement)525  - [7. Составные инструкции](https://python-all.ru/2.6/reference/compound_stmts.html)526527    - [7.1. Инструкция `if`](https://python-all.ru/2.6/reference/compound_stmts.html#the-if-statement)528    - [7.2. Инструкция `while`](https://python-all.ru/2.6/reference/compound_stmts.html#the-while-statement)529    - [7.3. Инструкция `for`](https://python-all.ru/2.6/reference/compound_stmts.html#the-for-statement)530    - [7.4. Инструкция `try`](https://python-all.ru/2.6/reference/compound_stmts.html#the-try-statement)531    - [7.5. Инструкция `with`](https://python-all.ru/2.6/reference/compound_stmts.html#the-with-statement)532    - [7.6. Определения функций](https://python-all.ru/2.6/reference/compound_stmts.html#function-definitions)533    - [7.7. Определения классов](https://python-all.ru/2.6/reference/compound_stmts.html#class-definitions)534  - [8. Компоненты верхнего уровня](https://python-all.ru/2.6/reference/toplevel_components.html)535536    - [8.1. Полные программы Python](https://python-all.ru/2.6/reference/toplevel_components.html#complete-python-programs)537    - [8.2. Ввод из файла](https://python-all.ru/2.6/reference/toplevel_components.html#file-input)538    - [8.3. Интерактивный ввод](https://python-all.ru/2.6/reference/toplevel_components.html#interactive-input)539    - [8.4. Ввод выражений](https://python-all.ru/2.6/reference/toplevel_components.html#expression-input)540  - [9. Полная спецификация грамматики](https://python-all.ru/2.6/reference/grammar.html)541- [Стандартная библиотека Python](https://python-all.ru/2.6/library/index.html)542543  - [1. Введение](https://python-all.ru/2.6/library/intro.html)544  - [2. Встроенные функции](https://python-all.ru/2.6/library/functions.html)545  - [3. Необязательные встроенные функции](https://python-all.ru/2.6/library/functions.html#non-essential-built-in-functions)546  - [4. Встроенные константы](https://python-all.ru/2.6/library/constants.html)547548    - [4.1. Константы, добавленные модулем `site`](https://python-all.ru/2.6/library/constants.html#constants-added-by-the-site-module)549  - [5. Встроенные типы](https://python-all.ru/2.6/library/stdtypes.html)550551    - [5.1. Проверка истинности](https://python-all.ru/2.6/library/stdtypes.html#truth-value-testing)552    - [5.2. Логические операции – `and`, `or`, `not`](https://python-all.ru/2.6/library/stdtypes.html#boolean-operations-and-or-not)553    - [5.3. Сравнения](https://python-all.ru/2.6/library/stdtypes.html#comparisons)554    - [5.4. Числовые типы – `int`, `float`, `long`, `complex`](https://python-all.ru/2.6/library/stdtypes.html#numeric-types-int-float-long-complex)555556      - [5.4.1. Битовые операции над целочисленными типами](https://python-all.ru/2.6/library/stdtypes.html#bit-string-operations-on-integer-types)557      - [5.4.2. Дополнительные методы для float](https://python-all.ru/2.6/library/stdtypes.html#additional-methods-on-float)558    - [5.5. Типы итераторов](https://python-all.ru/2.6/library/stdtypes.html#iterator-types)559560      - [5.5.1. Типы генераторов](https://python-all.ru/2.6/library/stdtypes.html#generator-types)561    - [5.6. Типы последовательностей – `str`, `unicode`, `list`, `tuple`, `buffer`, `xrange`](https://python-all.ru/2.6/library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange)562563      - [5.6.1. Методы строк](https://python-all.ru/2.6/library/stdtypes.html#string-methods)564      - [5.6.2. Операции форматирования строк](https://python-all.ru/2.6/library/stdtypes.html#string-formatting-operations)565      - [5.6.3. Тип XRange](https://python-all.ru/2.6/library/stdtypes.html#xrange-type)566      - [5.6.4. Изменяемые типы последовательностей](https://python-all.ru/2.6/library/stdtypes.html#mutable-sequence-types)567    - [5.7. Типы множеств – `set`, `frozenset`](https://python-all.ru/2.6/library/stdtypes.html#set-types-set-frozenset)568    - [5.8. Типы отображений – `dict`](https://python-all.ru/2.6/library/stdtypes.html#mapping-types-dict)569    - [5.9. Файловые объекты](https://python-all.ru/2.6/library/stdtypes.html#file-objects)570    - [5.10. Типы контекстных менеджеров](https://python-all.ru/2.6/library/stdtypes.html#context-manager-types)571    - [5.11. Прочие встроенные типы](https://python-all.ru/2.6/library/stdtypes.html#other-built-in-types)572573      - [5.11.1. Модули](https://python-all.ru/2.6/library/stdtypes.html#modules)574      - [5.11.2. Классы и экземпляры классов](https://python-all.ru/2.6/library/stdtypes.html#classes-and-class-instances)575      - [5.11.3. Функции](https://python-all.ru/2.6/library/stdtypes.html#functions)576      - [5.11.4. Методы](https://python-all.ru/2.6/library/stdtypes.html#methods)577      - [5.11.5. Объекты кода](https://python-all.ru/2.6/library/stdtypes.html#code-objects)578      - [5.11.6. Объекты типов](https://python-all.ru/2.6/library/stdtypes.html#type-objects)579      - [5.11.7. Объект Null](https://python-all.ru/2.6/library/stdtypes.html#the-null-object)580      - [5.11.8. Объект Ellipsis](https://python-all.ru/2.6/library/stdtypes.html#the-ellipsis-object)581      - [5.11.9. Логические значения](https://python-all.ru/2.6/library/stdtypes.html#boolean-values)582      - [5.11.10. Внутренние объекты](https://python-all.ru/2.6/library/stdtypes.html#internal-objects)583    - [5.12. Специальные атрибуты](https://python-all.ru/2.6/library/stdtypes.html#special-attributes)584  - [6. Встроенные исключения](https://python-all.ru/2.6/library/exceptions.html)585586    - [6.1. Иерархия исключений](https://python-all.ru/2.6/library/exceptions.html#exception-hierarchy)587  - [7. Сервисы строк](https://python-all.ru/2.6/library/strings.html)588589    - [7.1. `string` – Основные операции со строками](https://python-all.ru/2.6/library/string.html)590591      - [7.1.1. Константы строк](https://python-all.ru/2.6/library/string.html#string-constants)592      - [7.1.2. Форматирование строк](https://python-all.ru/2.6/library/string.html#string-formatting)593      - [7.1.3. Синтаксис строк форматирования](https://python-all.ru/2.6/library/string.html#format-string-syntax)594595        - [7.1.3.1. Мини-язык спецификации форматирования](https://python-all.ru/2.6/library/string.html#format-specification-mini-language)596        - [7.1.3.2. Примеры форматирования](https://python-all.ru/2.6/library/string.html#format-examples)597      - [7.1.4. Шаблонные строки](https://python-all.ru/2.6/library/string.html#template-strings)598      - [7.1.5. Строковые функции](https://python-all.ru/2.6/library/string.html#string-functions)599      - [7.1.6. Устаревшие строковые функции](https://python-all.ru/2.6/library/string.html#deprecated-string-functions)600    - [7.2. `re` – Регулярные выражения](https://python-all.ru/2.6/library/re.html)601602      - [7.2.1. Синтаксис регулярных выражений](https://python-all.ru/2.6/library/re.html#regular-expression-syntax)603      - [7.2.2. Сопоставление и поиск](https://python-all.ru/2.6/library/re.html#matching-vs-searching)604      - [7.2.3. Содержимое модуля](https://python-all.ru/2.6/library/re.html#module-contents)605      - [7.2.4. Объекты регулярных выражений](https://python-all.ru/2.6/library/re.html#regular-expression-objects)606      - [7.2.5. Объекты совпадений](https://python-all.ru/2.6/library/re.html#match-objects)607      - [7.2.6. Примеры](https://python-all.ru/2.6/library/re.html#examples)608609        - [7.2.6.1. Проверка на пару](https://python-all.ru/2.6/library/re.html#checking-for-a-pair)610        - [7.2.6.2. Имитация scanf()](https://python-all.ru/2.6/library/re.html#simulating-scanf)611        - [7.2.6.3. Избегание рекурсии](https://python-all.ru/2.6/library/re.html#avoiding-recursion)612        - [7.2.6.4. search() против match()](https://python-all.ru/2.6/library/re.html#search-vs-match)613        - [7.2.6.5. Создание телефонной книги](https://python-all.ru/2.6/library/re.html#making-a-phonebook)614        - [7.2.6.6. Обработка текста](https://python-all.ru/2.6/library/re.html#text-munging)615        - [7.2.6.7. Поиск всех наречий](https://python-all.ru/2.6/library/re.html#finding-all-adverbs)616        - [7.2.6.8. Поиск всех наречий и их позиций](https://python-all.ru/2.6/library/re.html#finding-all-adverbs-and-their-positions)617        - [7.2.6.9. Сырые строки](https://python-all.ru/2.6/library/re.html#raw-string-notation)618    - [7.3. `struct` – Интерпретация строк как упакованных двоичных данных](https://python-all.ru/2.6/library/struct.html)619620      - [7.3.1. Функции и исключения](https://python-all.ru/2.6/library/struct.html#functions-and-exceptions)621      - [7.3.2. Строки формата](https://python-all.ru/2.6/library/struct.html#format-strings)622623        - [7.3.2.1. Порядок байтов, размер и выравнивание](https://python-all.ru/2.6/library/struct.html#byte-order-size-and-alignment)624        - [7.3.2.2. Символы формата](https://python-all.ru/2.6/library/struct.html#format-characters)625        - [7.3.2.3. Примеры](https://python-all.ru/2.6/library/struct.html#examples)626      - [7.3.3. Классы](https://python-all.ru/2.6/library/struct.html#classes)627    - [7.4. `difflib` – Вспомогательные функции для вычисления различий](https://python-all.ru/2.6/library/difflib.html)628629      - [7.4.1. Объекты SequenceMatcher](https://python-all.ru/2.6/library/difflib.html#sequencematcher-objects)630      - [7.4.2. Примеры SequenceMatcher](https://python-all.ru/2.6/library/difflib.html#sequencematcher-examples)631      - [7.4.3. Объекты Differ](https://python-all.ru/2.6/library/difflib.html#differ-objects)632      - [7.4.4. Пример Differ](https://python-all.ru/2.6/library/difflib.html#differ-example)633      - [7.4.5. Интерфейс командной строки для difflib](https://python-all.ru/2.6/library/difflib.html#a-command-line-interface-to-difflib)634    - [7.5. `StringIO` – Чтение и запись строк как файлов](https://python-all.ru/2.6/library/stringio.html)635    - [7.6. `cStringIO` – Более быстрая версия `StringIO`](https://python-all.ru/2.6/library/stringio.html#module-cStringIO)636    - [7.7. `textwrap` – Перенос и заполнение текста](https://python-all.ru/2.6/library/textwrap.html)637    - [7.8. `codecs` – Реестр кодеков и базовые классы](https://python-all.ru/2.6/library/codecs.html)638639      - [7.8.1. Базовые классы кодеков](https://python-all.ru/2.6/library/codecs.html#codec-base-classes)640641        - [7.8.1.1. Объекты кодеков](https://python-all.ru/2.6/library/codecs.html#codec-objects)642        - [7.8.1.2. Объекты IncrementalEncoder](https://python-all.ru/2.6/library/codecs.html#incrementalencoder-objects)643        - [7.8.1.3. Объекты IncrementalDecoder](https://python-all.ru/2.6/library/codecs.html#incrementaldecoder-objects)644        - [7.8.1.4. Объекты StreamWriter](https://python-all.ru/2.6/library/codecs.html#streamwriter-objects)645        - [7.8.1.5. Объекты StreamReader](https://python-all.ru/2.6/library/codecs.html#streamreader-objects)646        - [7.8.1.6. Объекты StreamReaderWriter](https://python-all.ru/2.6/library/codecs.html#streamreaderwriter-objects)647        - [7.8.1.7. Объекты StreamRecoder](https://python-all.ru/2.6/library/codecs.html#streamrecoder-objects)648      - [7.8.2. Кодировки и Unicode](https://python-all.ru/2.6/library/codecs.html#encodings-and-unicode)649      - [7.8.3. Стандартные кодировки](https://python-all.ru/2.6/library/codecs.html#standard-encodings)650      - [7.8.4. `encodings.idna` – Интернационализированные доменные имена в приложениях](https://python-all.ru/2.6/library/codecs.html#module-encodings.idna)651      - [7.8.5. `encodings.utf_8_sig` – кодировка UTF-8 с сигнатурой BOM](https://python-all.ru/2.6/library/codecs.html#module-encodings.utf_8_sig)652    - [7.9. `unicodedata` – база данных Unicode](https://python-all.ru/2.6/library/unicodedata.html)653    - [7.10. `stringprep` – подготовка интернет-строк](https://python-all.ru/2.6/library/stringprep.html)654    - [7.11. `fpformat` – преобразования чисел с плавающей запятой](https://python-all.ru/2.6/library/fpformat.html)655  - [8. Типы данных](https://python-all.ru/2.6/library/datatypes.html)656657    - [8.1. `datetime` – Базовые типы даты и времени](https://python-all.ru/2.6/library/datetime.html)658659      - [8.1.1. Доступные типы](https://python-all.ru/2.6/library/datetime.html#available-types)660      - [8.1.2. `timedelta` Объекты](https://python-all.ru/2.6/library/datetime.html#timedelta-objects)661      - [8.1.3. `date` Объекты](https://python-all.ru/2.6/library/datetime.html#date-objects)662      - [8.1.4. `datetime` Объекты](https://python-all.ru/2.6/library/datetime.html#datetime-objects)663      - [8.1.5. `time` Объекты](https://python-all.ru/2.6/library/datetime.html#time-objects)664      - [8.1.6. `tzinfo` Объекты](https://python-all.ru/2.6/library/datetime.html#tzinfo-objects)665      - [8.1.7. Поведение `strftime()` и `strptime()`](https://python-all.ru/2.6/library/datetime.html#strftime-and-strptime-behavior)666    - [8.2. `calendar` – Общие функции, связанные с календарём](https://python-all.ru/2.6/library/calendar.html)667    - [8.3. `collections` – высокопроизводительные типы контейнеров](https://python-all.ru/2.6/library/collections.html)668669      - [8.3.1. ABCs – абстрактные базовые классы](https://python-all.ru/2.6/library/collections.html#abcs-abstract-base-classes)670      - [8.3.2. Объекты `deque`](https://python-all.ru/2.6/library/collections.html#deque-objects)671672        - [8.3.2.1. Рецепты `deque`](https://python-all.ru/2.6/library/collections.html#deque-recipes)673      - [8.3.3. Объекты `defaultdict`](https://python-all.ru/2.6/library/collections.html#defaultdict-objects)674675        - [8.3.3.1. Примеры `defaultdict`](https://python-all.ru/2.6/library/collections.html#defaultdict-examples)676      - [8.3.4. `namedtuple()` Фабричная функция для кортежей с именованными полями](https://python-all.ru/2.6/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields)677    - [8.4. `heapq` – Алгоритм пирамидальной очереди](https://python-all.ru/2.6/library/heapq.html)678679      - [8.4.1. Теория](https://python-all.ru/2.6/library/heapq.html#theory)680    - [8.5. `bisect` – Алгоритм бисекции массива](https://python-all.ru/2.6/library/bisect.html)681682      - [8.5.1. Примеры](https://python-all.ru/2.6/library/bisect.html#examples)683    - [8.6. `array` – Эффективные массивы числовых значений](https://python-all.ru/2.6/library/array.html)684    - [8.7. `sets` – неупорядоченные коллекции уникальных элементов](https://python-all.ru/2.6/library/sets.html)685686      - [8.7.1. Объекты множеств](https://python-all.ru/2.6/library/sets.html#set-objects)687      - [8.7.2. Пример](https://python-all.ru/2.6/library/sets.html#example)688      - [8.7.3. Протокол автоматического преобразования в неизменяемое](https://python-all.ru/2.6/library/sets.html#protocol-for-automatic-conversion-to-immutable)689      - [8.7.4. Сравнение со встроенными типами `set`](https://python-all.ru/2.6/library/sets.html#comparison-to-the-built-in-set-types)690    - [8.8. `sched` – планировщик событий](https://python-all.ru/2.6/library/sched.html)691692      - [8.8.1. Объекты планировщика](https://python-all.ru/2.6/library/sched.html#scheduler-objects)693    - [8.9. `mutex` – поддержка взаимного исключения](https://python-all.ru/2.6/library/mutex.html)694695      - [8.9.1. Объекты мьютекса](https://python-all.ru/2.6/library/mutex.html#mutex-objects)696    - [8.10. `queue` – синхронизированный класс очереди](https://python-all.ru/2.6/library/queue.html)697698      - [8.10.1. Объекты очереди](https://python-all.ru/2.6/library/queue.html#queue-objects)699    - [8.11. `weakref` – слабые ссылки](https://python-all.ru/2.6/library/weakref.html)700701      - [8.11.1. Объекты слабых ссылок](https://python-all.ru/2.6/library/weakref.html#weak-reference-objects)702      - [8.11.2. Пример](https://python-all.ru/2.6/library/weakref.html#example)703    - [8.12. `UserDict` – класс-обёртка для словарей](https://python-all.ru/2.6/library/userdict.html)704    - [8.13. `UserList` – класс-обёртка для списков](https://python-all.ru/2.6/library/userdict.html#module-UserList)705    - [8.14. `UserString` – класс-обёртка для строк](https://python-all.ru/2.6/library/userdict.html#module-UserString)706    - [8.15. `types` – имена встроенных типов](https://python-all.ru/2.6/library/types.html)707    - [8.16. `new` – создание внутренних объектов времени выполнения](https://python-all.ru/2.6/library/new.html)708    - [8.17. `copy` – операции поверхностного и глубокого копирования](https://python-all.ru/2.6/library/copy.html)709    - [8.18. `pprint` – красивый вывод данных](https://python-all.ru/2.6/library/pprint.html)710711      - [8.18.1. Объекты PrettyPrinter](https://python-all.ru/2.6/library/pprint.html#prettyprinter-objects)712      - [8.18.2. Пример pprint](https://python-all.ru/2.6/library/pprint.html#pprint-example)713    - [8.19. `repr` – альтернативная реализация `repr()`](https://python-all.ru/2.6/library/repr.html)714715      - [8.19.1. Объекты Repr](https://python-all.ru/2.6/library/repr.html#repr-objects)716      - [8.19.2. Создание подклассов объектов Repr](https://python-all.ru/2.6/library/repr.html#subclassing-repr-objects)717  - [9. Модули числовых и математических функций](https://python-all.ru/2.6/library/numeric.html)718719    - [9.1. `numbers` – Числовые абстрактные базовые классы](https://python-all.ru/2.6/library/numbers.html)720721      - [9.1.1. Числовая иерархия](https://python-all.ru/2.6/library/numbers.html#the-numeric-tower)722      - [9.1.2. Замечания для разработчиков типов](https://python-all.ru/2.6/library/numbers.html#notes-for-type-implementors)723724        - [9.1.2.1. Добавление других числовых ABC](https://python-all.ru/2.6/library/numbers.html#adding-more-numeric-abcs)725        - [9.1.2.2. Реализация арифметических операций](https://python-all.ru/2.6/library/numbers.html#implementing-the-arithmetic-operations)726    - [9.2. `math` – Математические функции](https://python-all.ru/2.6/library/math.html)727728      - [9.2.1. Теоретико-числовые функции и функции представления](https://python-all.ru/2.6/library/math.html#number-theoretic-and-representation-functions)729      - [9.2.2. Степенные и логарифмические функции](https://python-all.ru/2.6/library/math.html#power-and-logarithmic-functions)730      - [9.2.3. Тригонометрические функции](https://python-all.ru/2.6/library/math.html#trigonometric-functions)731      - [9.2.4. Преобразование углов](https://python-all.ru/2.6/library/math.html#angular-conversion)732      - [9.2.5. Гиперболические функции](https://python-all.ru/2.6/library/math.html#hyperbolic-functions)733      - [9.2.6. Константы](https://python-all.ru/2.6/library/math.html#constants)734    - [9.3. `cmath` – Математические функции для комплексных чисел](https://python-all.ru/2.6/library/cmath.html)735736      - [9.3.1. Преобразование в полярные координаты и обратно](https://python-all.ru/2.6/library/cmath.html#conversions-to-and-from-polar-coordinates)737      - [9.3.2. Степенные и логарифмические функции](https://python-all.ru/2.6/library/cmath.html#power-and-logarithmic-functions)738      - [9.3.3. Тригонометрические функции](https://python-all.ru/2.6/library/cmath.html#trigonometric-functions)739      - [9.3.4. Гиперболические функции](https://python-all.ru/2.6/library/cmath.html#hyperbolic-functions)740      - [9.3.5. Функции классификации](https://python-all.ru/2.6/library/cmath.html#classification-functions)741      - [9.3.6. Константы](https://python-all.ru/2.6/library/cmath.html#constants)742    - [9.4. `decimal` – Десятичная арифметика с фиксированной и плавающей точкой](https://python-all.ru/2.6/library/decimal.html)743744      - [9.4.1. Краткое руководство](https://python-all.ru/2.6/library/decimal.html#quick-start-tutorial)745      - [9.4.2. Объекты Decimal](https://python-all.ru/2.6/library/decimal.html#decimal-objects)746747        - [9.4.2.1. Логические операнды](https://python-all.ru/2.6/library/decimal.html#logical-operands)748      - [9.4.3. Объекты контекста](https://python-all.ru/2.6/library/decimal.html#context-objects)749      - [9.4.4. Сигналы](https://python-all.ru/2.6/library/decimal.html#signals)750      - [9.4.5. Примечания по числам с плавающей запятой](https://python-all.ru/2.6/library/decimal.html#floating-point-notes)751752        - [9.4.5.1. Уменьшение погрешности округления с помощью повышенной точности](https://python-all.ru/2.6/library/decimal.html#mitigating-round-off-error-with-increased-precision)753        - [9.4.5.2. Особые значения](https://python-all.ru/2.6/library/decimal.html#special-values)754      - [9.4.6. Работа с потоками](https://python-all.ru/2.6/library/decimal.html#working-with-threads)755      - [9.4.7. Рецепты](https://python-all.ru/2.6/library/decimal.html#recipes)756      - [9.4.8. Часто задаваемые вопросы по Decimal](https://python-all.ru/2.6/library/decimal.html#decimal-faq)757    - [9.5. `fractions` – Рациональные числа](https://python-all.ru/2.6/library/fractions.html)758    - [9.6. `random` – Генерация псевдослучайных чисел](https://python-all.ru/2.6/library/random.html)759    - [9.7. `itertools` – Функции, создающие итераторы для эффективного циклического обхода](https://python-all.ru/2.6/library/itertools.html)760761      - [9.7.1. Функции модуля itertools](https://python-all.ru/2.6/library/itertools.html#itertool-functions)762      - [9.7.2. Примеры](https://python-all.ru/2.6/library/itertools.html#examples)763      - [9.7.3. Рецепты](https://python-all.ru/2.6/library/itertools.html#recipes)764    - [9.8. `functools` – Функции высшего порядка и операции над вызываемыми объектами](https://python-all.ru/2.6/library/functools.html)765766      - [9.8.1. Объекты `partial`](https://python-all.ru/2.6/library/functools.html#partial-objects)767    - [9.9. `operator` – Стандартные операторы в виде функций](https://python-all.ru/2.6/library/operator.html)768769      - [9.9.1. Сопоставление операторов с функциями](https://python-all.ru/2.6/library/operator.html#mapping-operators-to-functions)770  - [10. Доступ к файлам и каталогам](https://python-all.ru/2.6/library/filesys.html)771772    - [10.1. `os.path` – Общие операции с путями](https://python-all.ru/2.6/library/os.path.html)773    - [10.2. `fileinput` – Итерация по строкам из нескольких входных потоков](https://python-all.ru/2.6/library/fileinput.html)774    - [10.3. `stat` – Интерпретация результатов `stat()`](https://python-all.ru/2.6/library/stat.html)775    - [10.4. `statvfs` – константы, используемые с `os.statvfs()`](https://python-all.ru/2.6/library/statvfs.html)776    - [10.5. `filecmp` – сравнение файлов и каталогов](https://python-all.ru/2.6/library/filecmp.html)777778      - [10.5.1. Класс `dircmp`](https://python-all.ru/2.6/library/filecmp.html#the-dircmp-class)779    - [10.6. `tempfile` – создание временных файлов и каталогов](https://python-all.ru/2.6/library/tempfile.html)780    - [10.7. `glob` – развёртывание шаблонов путей в стиле Unix](https://python-all.ru/2.6/library/glob.html)781    - [10.8. `fnmatch` – сопоставление имён файлов с шаблонами в стиле Unix](https://python-all.ru/2.6/library/fnmatch.html)782    - [10.9. `linecache` – произвольный доступ к строкам текста](https://python-all.ru/2.6/library/linecache.html)783    - [10.10. `shutil` – высокоуровневые операции с файлами](https://python-all.ru/2.6/library/shutil.html)784785      - [10.10.1. Пример](https://python-all.ru/2.6/library/shutil.html#example)786    - [10.11. `dircache` – Кешированные списки каталогов](https://python-all.ru/2.6/library/dircache.html)787    - [10.12. `macpath` – Функции для работы с путями Mac OS 9](https://python-all.ru/2.6/library/macpath.html)788  - [11. Устойчивое сохранение данных](https://python-all.ru/2.6/library/persistence.html)789790    - [11.1. `pickle` – Сериализация объектов Python](https://python-all.ru/2.6/library/pickle.html)791792      - [11.1.1. Отношение к другим модулям Python](https://python-all.ru/2.6/library/pickle.html#relationship-to-other-python-modules)793      - [11.1.2. Формат потока данных](https://python-all.ru/2.6/library/pickle.html#data-stream-format)794      - [11.1.3. Использование](https://python-all.ru/2.6/library/pickle.html#usage)795      - [11.1.4. Что можно сериализовать и десериализовать?](https://python-all.ru/2.6/library/pickle.html#what-can-be-pickled-and-unpickled)796      - [11.1.5. Протокол pickle](https://python-all.ru/2.6/library/pickle.html#the-pickle-protocol)797798        - [11.1.5.1. Упаковка и распаковка обычных экземпляров классов](https://python-all.ru/2.6/library/pickle.html#pickling-and-unpickling-normal-class-instances)799        - [11.1.5.2. Упаковка и распаковка расширенных типов](https://python-all.ru/2.6/library/pickle.html#pickling-and-unpickling-extension-types)800        - [11.1.5.3. Упаковка и распаковка внешних объектов](https://python-all.ru/2.6/library/pickle.html#pickling-and-unpickling-external-objects)801      - [11.1.6. Создание подклассов Unpickler](https://python-all.ru/2.6/library/pickle.html#subclassing-unpicklers)802      - [11.1.7. Пример](https://python-all.ru/2.6/library/pickle.html#example)803    - [11.2. `cPickle` – Быстрая версия `pickle`](https://python-all.ru/2.6/library/pickle.html#module-cPickle)804    - [11.3. `copy_reg` – Регистрация вспомогательных функций для `pickle`](https://python-all.ru/2.6/library/copy_reg.html)805    - [11.4. `shelve` – Сохранение объектов Python](https://python-all.ru/2.6/library/shelve.html)806807      - [11.4.1. Ограничения](https://python-all.ru/2.6/library/shelve.html#restrictions)808      - [11.4.2. Пример](https://python-all.ru/2.6/library/shelve.html#example)809    - [11.5. `marshal` – Внутренняя сериализация объектов Python](https://python-all.ru/2.6/library/marshal.html)810    - [11.6. `anydbm` – Универсальный доступ к базам данных в стиле DBM](https://python-all.ru/2.6/library/anydbm.html)811    - [11.7. `whichdb` – Определение, какой модуль DBM создал базу данных](https://python-all.ru/2.6/library/whichdb.html)812    - [11.8. `dbm` – Простой интерфейс «базы данных»](https://python-all.ru/2.6/library/dbm.html)813    - [11.9. `gdbm` – Переосмысление dbm в GNU](https://python-all.ru/2.6/library/gdbm.html)814    - [11.10. `dbhash` – Интерфейс в стиле DBM к библиотеке BSD database](https://python-all.ru/2.6/library/dbhash.html)815816      - [11.10.1. Объекты базы данных](https://python-all.ru/2.6/library/dbhash.html#database-objects)817    - [11.11. `bsddb` – Интерфейс к библиотеке Berkeley DB](https://python-all.ru/2.6/library/bsddb.html)818819      - [11.11.1. Объекты Hash, BTree и Record](https://python-all.ru/2.6/library/bsddb.html#hash-btree-and-record-objects)820    - [11.12. `dumbdbm` – Переносимая реализация DBM](https://python-all.ru/2.6/library/dumbdbm.html)821822      - [11.12.1. Объекты Dumbdbm](https://python-all.ru/2.6/library/dumbdbm.html#dumbdbm-objects)823    - [11.13. `sqlite3` – Интерфейс DB-API 2.0 для баз данных SQLite](https://python-all.ru/2.6/library/sqlite3.html)824825      - [11.13.1. Функции и константы модуля](https://python-all.ru/2.6/library/sqlite3.html#module-functions-and-constants)826      - [11.13.2. Объекты соединения](https://python-all.ru/2.6/library/sqlite3.html#connection-objects)827      - [11.13.3. Объекты курсора](https://python-all.ru/2.6/library/sqlite3.html#cursor-objects)828      - [11.13.4. Объекты строки](https://python-all.ru/2.6/library/sqlite3.html#row-objects)829      - [11.13.5. Типы SQLite и Python](https://python-all.ru/2.6/library/sqlite3.html#sqlite-and-python-types)830831        - [11.13.5.1. Введение](https://python-all.ru/2.6/library/sqlite3.html#introduction)832        - [11.13.5.2. Использование адаптеров для хранения дополнительных типов Python в базах данных SQLite](https://python-all.ru/2.6/library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases)833834          - [11.13.5.2.1. Адаптация объекта самостоятельно](https://python-all.ru/2.6/library/sqlite3.html#letting-your-object-adapt-itself)835          - [11.13.5.2.2. Регистрация вызываемого адаптера](https://python-all.ru/2.6/library/sqlite3.html#registering-an-adapter-callable)836        - [11.13.5.3. Преобразование значений SQLite в пользовательские типы Python](https://python-all.ru/2.6/library/sqlite3.html#converting-sqlite-values-to-custom-python-types)837        - [11.13.5.4. Стандартные адаптеры и преобразователи](https://python-all.ru/2.6/library/sqlite3.html#default-adapters-and-converters)838      - [11.13.6. Управление транзакциями](https://python-all.ru/2.6/library/sqlite3.html#controlling-transactions)839      - [11.13.7. Эффективное использование `sqlite3`](https://python-all.ru/2.6/library/sqlite3.html#using-sqlite3-efficiently)840841        - [11.13.7.1. Использование сокращённых методов](https://python-all.ru/2.6/library/sqlite3.html#using-shortcut-methods)842        - [11.13.7.2. Доступ к столбцам по имени вместо индекса](https://python-all.ru/2.6/library/sqlite3.html#accessing-columns-by-name-instead-of-by-index)843        - [11.13.7.3. Использование соединения как менеджера контекста](https://python-all.ru/2.6/library/sqlite3.html#using-the-connection-as-a-context-manager)844  - [12. Сжатие и архивирование данных](https://python-all.ru/2.6/library/archiving.html)845846    - [12.1. `zlib` – Сжатие, совместимое с **gzip**](https://python-all.ru/2.6/library/zlib.html)847    - [12.2. `gzip` – Поддержка файлов **gzip**](https://python-all.ru/2.6/library/gzip.html)848849      - [12.2.1. Примеры использования](https://python-all.ru/2.6/library/gzip.html#examples-of-usage)850    - [12.3. `bz2` – Сжатие, совместимое с **bzip2**](https://python-all.ru/2.6/library/bz2.html)851852      - [12.3.1. Сжатие и распаковка файлов](https://python-all.ru/2.6/library/bz2.html#de-compression-of-files)853      - [12.3.2. Последовательное сжатие и распаковка](https://python-all.ru/2.6/library/bz2.html#sequential-de-compression)854      - [12.3.3. Одноразовое сжатие и распаковка](https://python-all.ru/2.6/library/bz2.html#one-shot-de-compression)855    - [12.4. `zipfile` – Работа с ZIP-архивами](https://python-all.ru/2.6/library/zipfile.html)856857      - [12.4.1. Объекты ZipFile](https://python-all.ru/2.6/library/zipfile.html#zipfile-objects)858      - [12.4.2. Объекты PyZipFile](https://python-all.ru/2.6/library/zipfile.html#pyzipfile-objects)859      - [12.4.3. Объекты ZipInfo](https://python-all.ru/2.6/library/zipfile.html#zipinfo-objects)860    - [12.5. `tarfile` – Чтение и запись tar-архивов](https://python-all.ru/2.6/library/tarfile.html)861862      - [12.5.1. Объекты TarFile](https://python-all.ru/2.6/library/tarfile.html#tarfile-objects)863      - [12.5.2. Объекты TarInfo](https://python-all.ru/2.6/library/tarfile.html#tarinfo-objects)864      - [12.5.3. Примеры](https://python-all.ru/2.6/library/tarfile.html#examples)865      - [12.5.4. Поддерживаемые форматы tar](https://python-all.ru/2.6/library/tarfile.html#supported-tar-formats)866      - [12.5.5. Проблемы с Unicode](https://python-all.ru/2.6/library/tarfile.html#unicode-issues)867  - [13. Форматы файлов](https://python-all.ru/2.6/library/fileformats.html)868869    - [13.1. `csv` – Чтение и запись CSV-файлов](https://python-all.ru/2.6/library/csv.html)870871      - [13.1.1. Содержимое модуля](https://python-all.ru/2.6/library/csv.html#module-contents)872      - [13.1.2. Диалекты и параметры форматирования](https://python-all.ru/2.6/library/csv.html#dialects-and-formatting-parameters)873      - [13.1.3. Объекты Reader](https://python-all.ru/2.6/library/csv.html#reader-objects)874      - [13.1.4. Объекты Writer](https://python-all.ru/2.6/library/csv.html#writer-objects)875      - [13.1.5. Примеры](https://python-all.ru/2.6/library/csv.html#examples)876    - [13.2. `ConfigParser` – Парсер конфигурационных файлов](https://python-all.ru/2.6/library/configparser.html)877878      - [13.2.1. Объекты RawConfigParser](https://python-all.ru/2.6/library/configparser.html#rawconfigparser-objects)879      - [13.2.2. Объекты ConfigParser](https://python-all.ru/2.6/library/configparser.html#configparser-objects)880      - [13.2.3. Объекты SafeConfigParser](https://python-all.ru/2.6/library/configparser.html#safeconfigparser-objects)881      - [13.2.4. Примеры](https://python-all.ru/2.6/library/configparser.html#examples)882    - [13.3. `robotparser` – Парсер для robots.txt](https://python-all.ru/2.6/library/robotparser.html)883    - [13.4. `netrc` – Обработка файлов netrc](https://python-all.ru/2.6/library/netrc.html)884885      - [13.4.1. Объекты netrc](https://python-all.ru/2.6/library/netrc.html#netrc-objects)886    - [13.5. `xdrlib` – Кодирование и декодирование данных XDR](https://python-all.ru/2.6/library/xdrlib.html)887888      - [13.5.1. Объекты Packer](https://python-all.ru/2.6/library/xdrlib.html#packer-objects)889      - [13.5.2. Объекты Unpacker](https://python-all.ru/2.6/library/xdrlib.html#unpacker-objects)890      - [13.5.3. Исключения](https://python-all.ru/2.6/library/xdrlib.html#exceptions)891    - [13.6. `plistlib` – Генерация и разбор файлов Mac OS X `.plist`](https://python-all.ru/2.6/library/plistlib.html)892893      - [13.6.1. Примеры](https://python-all.ru/2.6/library/plistlib.html#examples)894  - [14. Криптографические сервисы](https://python-all.ru/2.6/library/crypto.html)895896    - [14.1. `hashlib` – Безопасные хеши и дайджесты сообщений](https://python-all.ru/2.6/library/hashlib.html)897    - [14.2. `hmac` – Ключевое хеширование для аутентификации сообщений](https://python-all.ru/2.6/library/hmac.html)898    - [14.3. `md5` – Алгоритм дайджеста сообщений MD5](https://python-all.ru/2.6/library/md5.html)899    - [14.4. `sha` – Алгоритм дайджеста сообщений SHA-1](https://python-all.ru/2.6/library/sha.html)900  - [15. Общие службы операционной системы](https://python-all.ru/2.6/library/allos.html)901902    - [15.1. `os` – Разные интерфейсы операционной системы](https://python-all.ru/2.6/library/os.html)903904      - [15.1.1. Параметры процесса](https://python-all.ru/2.6/library/os.html#process-parameters)905      - [15.1.2. Создание файловых объектов](https://python-all.ru/2.6/library/os.html#file-object-creation)906      - [15.1.3. Операции с файловыми дескрипторами](https://python-all.ru/2.6/library/os.html#file-descriptor-operations)907908        - [15.1.3.1. Константы флагов `open()`](https://python-all.ru/2.6/library/os.html#open-flag-constants)909      - [15.1.4. Файлы и каталоги](https://python-all.ru/2.6/library/os.html#files-and-directories)910      - [15.1.5. Управление процессами](https://python-all.ru/2.6/library/os.html#process-management)911      - [15.1.6. Различная системная информация](https://python-all.ru/2.6/library/os.html#miscellaneous-system-information)912      - [15.1.7. Разные функции](https://python-all.ru/2.6/library/os.html#miscellaneous-functions)913    - [15.2. `io` – Основные средства для работы с потоками](https://python-all.ru/2.6/library/io.html)914915      - [15.2.1. Интерфейс модуля](https://python-all.ru/2.6/library/io.html#module-interface)916      - [15.2.2. Базовые классы ввода-вывода](https://python-all.ru/2.6/library/io.html#i-o-base-classes)917      - [15.2.3. Низкоуровневый файловый ввод-вывод](https://python-all.ru/2.6/library/io.html#raw-file-i-o)918      - [15.2.4. Буферизованные потоки данных](https://python-all.ru/2.6/library/io.html#buffered-streams)919      - [15.2.5. Текстовый ввод-вывод](https://python-all.ru/2.6/library/io.html#text-i-o)920    - [15.3. `time` – Доступ ко времени и преобразования](https://python-all.ru/2.6/library/time.html)921    - [15.4. `optparse` – более мощный анализатор параметров командной строки](https://python-all.ru/2.6/library/optparse.html)922923      - [15.4.1. Предыстория](https://python-all.ru/2.6/library/optparse.html#background)924925        - [15.4.1.1. Терминология](https://python-all.ru/2.6/library/optparse.html#terminology)926        - [15.4.1.2. Для чего нужны параметры?](https://python-all.ru/2.6/library/optparse.html#what-are-options-for)927        - [15.4.1.3. Для чего нужны позиционные аргументы?](https://python-all.ru/2.6/library/optparse.html#what-are-positional-arguments-for)928      - [15.4.2. Учебное пособие](https://python-all.ru/2.6/library/optparse.html#tutorial)929930        - [15.4.2.1. Понимание действий параметров](https://python-all.ru/2.6/library/optparse.html#understanding-option-actions)931        - [15.4.2.2. Действие store](https://python-all.ru/2.6/library/optparse.html#the-store-action)932        - [15.4.2.3. Обработка булевых (флаговых) параметров](https://python-all.ru/2.6/library/optparse.html#handling-boolean-flag-options)933        - [15.4.2.4. Другие действия](https://python-all.ru/2.6/library/optparse.html#other-actions)934        - [15.4.2.5. Значения по умолчанию](https://python-all.ru/2.6/library/optparse.html#default-values)935        - [15.4.2.6. Генерация справки](https://python-all.ru/2.6/library/optparse.html#generating-help)936        - [15.4.2.7. Вывод строки версии](https://python-all.ru/2.6/library/optparse.html#printing-a-version-string)937        - [15.4.2.8. Как `optparse` обрабатывает ошибки](https://python-all.ru/2.6/library/optparse.html#how-optparse-handles-errors)938        - [15.4.2.9. Собираем всё вместе](https://python-all.ru/2.6/library/optparse.html#putting-it-all-together)939      - [15.4.3. Справочное руководство](https://python-all.ru/2.6/library/optparse.html#reference-guide)940941        - [15.4.3.1. Создание анализатора](https://python-all.ru/2.6/library/optparse.html#creating-the-parser)942        - [15.4.3.2. Наполнение анализатора](https://python-all.ru/2.6/library/optparse.html#populating-the-parser)943        - [15.4.3.3. Определение параметров](https://python-all.ru/2.6/library/optparse.html#defining-options)944        - [15.4.3.4. Атрибуты параметров](https://python-all.ru/2.6/library/optparse.html#option-attributes)945        - [15.4.3.5. Стандартные действия параметров](https://python-all.ru/2.6/library/optparse.html#standard-option-actions)946        - [15.4.3.6. Стандартные типы параметров](https://python-all.ru/2.6/library/optparse.html#standard-option-types)947        - [15.4.3.7. Разбор аргументов](https://python-all.ru/2.6/library/optparse.html#parsing-arguments)948        - [15.4.3.8. Запросы и управление анализатором параметров](https://python-all.ru/2.6/library/optparse.html#querying-and-manipulating-your-option-parser)949        - [15.4.3.9. Конфликты между параметрами](https://python-all.ru/2.6/library/optparse.html#conflicts-between-options)950        - [15.4.3.10. Очистка](https://python-all.ru/2.6/library/optparse.html#cleanup)951        - [15.4.3.11. Другие методы](https://python-all.ru/2.6/library/optparse.html#other-methods)952      - [15.4.4. Колбэки опций](https://python-all.ru/2.6/library/optparse.html#option-callbacks)953954        - [15.4.4.1. Определение опции с колбэком](https://python-all.ru/2.6/library/optparse.html#defining-a-callback-option)955        - [15.4.4.2. Как вызываются колбэки](https://python-all.ru/2.6/library/optparse.html#how-callbacks-are-called)956        - [15.4.4.3. Возбуждение ошибок в колбэке](https://python-all.ru/2.6/library/optparse.html#raising-errors-in-a-callback)957        - [15.4.4.4. Пример колбэка 1: простой колбэк](https://python-all.ru/2.6/library/optparse.html#callback-example-1-trivial-callback)958        - [15.4.4.5. Пример колбэка 2: проверка порядка опций](https://python-all.ru/2.6/library/optparse.html#callback-example-2-check-option-order)959        - [15.4.4.6. Пример колбэка 3: проверка порядка опций (обобщённая)](https://python-all.ru/2.6/library/optparse.html#callback-example-3-check-option-order-generalized)960        - [15.4.4.7. Пример колбэка 4: проверка произвольного условия](https://python-all.ru/2.6/library/optparse.html#callback-example-4-check-arbitrary-condition)961        - [15.4.4.8. Пример колбэка 5: фиксированные аргументы](https://python-all.ru/2.6/library/optparse.html#callback-example-5-fixed-arguments)962        - [15.4.4.9. Пример колбэка 6: переменное число аргументов](https://python-all.ru/2.6/library/optparse.html#callback-example-6-variable-arguments)963      - [15.4.5. Расширение `optparse`](https://python-all.ru/2.6/library/optparse.html#extending-optparse)964965        - [15.4.5.1. Добавление новых типов](https://python-all.ru/2.6/library/optparse.html#adding-new-types)966        - [15.4.5.2. Добавление новых действий](https://python-all.ru/2.6/library/optparse.html#adding-new-actions)967    - [15.5. `getopt` – Парсер параметров командной строки](https://python-all.ru/2.6/library/getopt.html)968    - [15.6. `logging` – Средство журналирования для Python](https://python-all.ru/2.6/library/logging.html)969970      - [15.6.1. Учебное пособие по logging](https://python-all.ru/2.6/library/logging.html#logging-tutorial)971972        - [15.6.1.1. Простые примеры](https://python-all.ru/2.6/library/logging.html#simple-examples)973        - [15.6.1.2. Логгеры](https://python-all.ru/2.6/library/logging.html#loggers)974        - [15.6.1.3. Обработчики](https://python-all.ru/2.6/library/logging.html#handlers)975        - [15.6.1.4. Форматировщики](https://python-all.ru/2.6/library/logging.html#formatters)976        - [15.6.1.5. Настройка журналирования](https://python-all.ru/2.6/library/logging.html#configuring-logging)977        - [15.6.1.6. Настройка журналирования для библиотеки](https://python-all.ru/2.6/library/logging.html#configuring-logging-for-a-library)978      - [15.6.2. Уровни журналирования](https://python-all.ru/2.6/library/logging.html#logging-levels)979      - [15.6.3. Полезные обработчики](https://python-all.ru/2.6/library/logging.html#useful-handlers)980      - [15.6.4. Функции уровня модуля](https://python-all.ru/2.6/library/logging.html#module-level-functions)981      - [15.6.5. Объекты логгера](https://python-all.ru/2.6/library/logging.html#logger-objects)982      - [15.6.6. Базовый пример](https://python-all.ru/2.6/library/logging.html#basic-example)983      - [15.6.7. Журналирование в несколько мест назначения](https://python-all.ru/2.6/library/logging.html#logging-to-multiple-destinations)984      - [15.6.8. Исключения, возникающие при журналировании](https://python-all.ru/2.6/library/logging.html#exceptions-raised-during-logging)985      - [15.6.9. Добавление контекстной информации в вывод журнала](https://python-all.ru/2.6/library/logging.html#adding-contextual-information-to-your-logging-output)986      - [15.6.10. Логирование в один файл из нескольких процессов](https://python-all.ru/2.6/library/logging.html#logging-to-a-single-file-from-multiple-processes)987      - [15.6.11. Отправка и получение событий логирования по сети](https://python-all.ru/2.6/library/logging.html#sending-and-receiving-logging-events-across-a-network)988      - [15.6.12. Использование произвольных объектов в качестве сообщений](https://python-all.ru/2.6/library/logging.html#using-arbitrary-objects-as-messages)989      - [15.6.13. Оптимизация](https://python-all.ru/2.6/library/logging.html#optimization)990      - [15.6.14. Объекты-обработчики](https://python-all.ru/2.6/library/logging.html#handler-objects)991992        - [15.6.14.1. StreamHandler](https://python-all.ru/2.6/library/logging.html#streamhandler)993        - [15.6.14.2. FileHandler](https://python-all.ru/2.6/library/logging.html#filehandler)994        - [15.6.14.3. WatchedFileHandler](https://python-all.ru/2.6/library/logging.html#watchedfilehandler)995        - [15.6.14.4. RotatingFileHandler](https://python-all.ru/2.6/library/logging.html#rotatingfilehandler)996        - [15.6.14.5. TimedRotatingFileHandler](https://python-all.ru/2.6/library/logging.html#timedrotatingfilehandler)997        - [15.6.14.6. SocketHandler](https://python-all.ru/2.6/library/logging.html#sockethandler)998        - [15.6.14.7. DatagramHandler](https://python-all.ru/2.6/library/logging.html#datagramhandler)999        - [15.6.14.8. SysLogHandler](https://python-all.ru/2.6/library/logging.html#sysloghandler)1000        - [15.6.14.9. NTEventLogHandler](https://python-all.ru/2.6/library/logging.html#nteventloghandler)1001        - [15.6.14.10. SMTPHandler](https://python-all.ru/2.6/library/logging.html#smtphandler)1002        - [15.6.14.11. MemoryHandler](https://python-all.ru/2.6/library/logging.html#memoryhandler)1003        - [15.6.14.12. HTTPHandler](https://python-all.ru/2.6/library/logging.html#httphandler)1004      - [15.6.15. Объекты-форматеры](https://python-all.ru/2.6/library/logging.html#formatter-objects)1005      - [15.6.16. Объекты-фильтры](https://python-all.ru/2.6/library/logging.html#filter-objects)1006      - [15.6.17. Объекты LogRecord](https://python-all.ru/2.6/library/logging.html#logrecord-objects)1007      - [15.6.18. Объекты LoggerAdapter](https://python-all.ru/2.6/library/logging.html#loggeradapter-objects)1008      - [15.6.19. Потокобезопасность](https://python-all.ru/2.6/library/logging.html#thread-safety)1009      - [15.6.20. Конфигурация](https://python-all.ru/2.6/library/logging.html#configuration)10101011        - [15.6.20.1. Функции конфигурации](https://python-all.ru/2.6/library/logging.html#configuration-functions)1012        - [15.6.20.2. Формат конфигурационного файла](https://python-all.ru/2.6/library/logging.html#configuration-file-format)1013        - [15.6.20.3. Пример сервера конфигурации](https://python-all.ru/2.6/library/logging.html#configuration-server-example)1014      - [15.6.21. Дополнительные примеры](https://python-all.ru/2.6/library/logging.html#more-examples)10151016        - [15.6.21.1. Несколько обработчиков и форматеров](https://python-all.ru/2.6/library/logging.html#multiple-handlers-and-formatters)1017        - [15.6.21.2. Использование логирования в нескольких модулях](https://python-all.ru/2.6/library/logging.html#using-logging-in-multiple-modules)1018    - [15.7. `getpass` – Переносимый ввод пароля](https://python-all.ru/2.6/library/getpass.html)1019    - [15.8. `curses` – Управление терминалом для символьных дисплеев](https://python-all.ru/2.6/library/curses.html)10201021      - [15.8.1. Функции](https://python-all.ru/2.6/library/curses.html#functions)1022      - [15.8.2. Объекты окон](https://python-all.ru/2.6/library/curses.html#window-objects)1023      - [15.8.3. Константы](https://python-all.ru/2.6/library/curses.html#constants)1024    - [15.9. `curses.textpad` – Виджет ввода текста для программ curses](https://python-all.ru/2.6/library/curses.html#module-curses.textpad)10251026      - [15.9.1. Объекты Textbox](https://python-all.ru/2.6/library/curses.html#textbox-objects)1027    - [15.10. `curses.wrapper` – Обработчик терминала для программ curses](https://python-all.ru/2.6/library/curses.html#module-curses.wrapper)1028    - [15.11. `curses.ascii` – Утилиты для работы с ASCII-символами](https://python-all.ru/2.6/library/curses.ascii.html)1029    - [15.12. `curses.panel` – Расширение стека панелей для curses](https://python-all.ru/2.6/library/curses.panel.html)10301031      - [15.12.1. Функции](https://python-all.ru/2.6/library/curses.panel.html#functions)1032      - [15.12.2. Объекты панелей](https://python-all.ru/2.6/library/curses.panel.html#panel-objects)1033    - [15.13. `platform` – Доступ к идентификационным данным базовой платформы](https://python-all.ru/2.6/library/platform.html)10341035      - [15.13.1. Кросс-платформенные](https://python-all.ru/2.6/library/platform.html#cross-platform)1036      - [15.13.2. Платформа Java](https://python-all.ru/2.6/library/platform.html#java-platform)1037      - [15.13.3. Платформа Windows](https://python-all.ru/2.6/library/platform.html#windows-platform)10381039        - [15.13.3.1. Специфичное для Win95/98](https://python-all.ru/2.6/library/platform.html#win95-98-specific)1040      - [15.13.4. Платформа Mac OS](https://python-all.ru/2.6/library/platform.html#mac-os-platform)1041      - [15.13.5. Платформы Unix](https://python-all.ru/2.6/library/platform.html#unix-platforms)1042    - [15.14. `errno` – Стандартные системные символы errno](https://python-all.ru/2.6/library/errno.html)1043    - [15.15. `ctypes` – Библиотека для вызова внешних функций в Python](https://python-all.ru/2.6/library/ctypes.html)10441045      - [15.15.1. Учебник по ctypes](https://python-all.ru/2.6/library/ctypes.html#ctypes-tutorial)10461047        - [15.15.1.1. Загрузка динамически подключаемых библиотек](https://python-all.ru/2.6/library/ctypes.html#loading-dynamic-link-libraries)1048        - [15.15.1.2. Доступ к функциям из загруженных DLL](https://python-all.ru/2.6/library/ctypes.html#accessing-functions-from-loaded-dlls)1049        - [15.15.1.3. Вызов функций](https://python-all.ru/2.6/library/ctypes.html#calling-functions)1050        - [15.15.1.4. Базовые типы данных](https://python-all.ru/2.6/library/ctypes.html#fundamental-data-types)1051        - [15.15.1.5. Вызов функций (продолжение)](https://python-all.ru/2.6/library/ctypes.html#calling-functions-continued)1052        - [15.15.1.6. Вызов функций с пользовательскими типами данных](https://python-all.ru/2.6/library/ctypes.html#calling-functions-with-your-own-custom-data-types)1053        - [15.15.1.7. Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/2.6/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)1054        - [15.15.1.8. Типы возвращаемых значений](https://python-all.ru/2.6/library/ctypes.html#return-types)1055        - [15.15.1.9. Передача указателей (или: передача параметров по ссылке)](https://python-all.ru/2.6/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)1056        - [15.15.1.10. Структуры и объединения](https://python-all.ru/2.6/library/ctypes.html#structures-and-unions)1057        - [15.15.1.11. Выравнивание структур и объединений и порядок байтов](https://python-all.ru/2.6/library/ctypes.html#structure-union-alignment-and-byte-order)1058        - [15.15.1.12. Битовые поля в структурах и объединениях](https://python-all.ru/2.6/library/ctypes.html#bit-fields-in-structures-and-unions)1059        - [15.15.1.13. Массивы](https://python-all.ru/2.6/library/ctypes.html#arrays)1060        - [15.15.1.14. Указатели](https://python-all.ru/2.6/library/ctypes.html#pointers)1061        - [15.15.1.15. Преобразования типов](https://python-all.ru/2.6/library/ctypes.html#type-conversions)1062        - [15.15.1.16. Неполные типы](https://python-all.ru/2.6/library/ctypes.html#incomplete-types)1063        - [15.15.1.17. Функции обратного вызова](https://python-all.ru/2.6/library/ctypes.html#callback-functions)1064        - [15.15.1.18. Доступ к значениям, экспортируемым из DLL](https://python-all.ru/2.6/library/ctypes.html#accessing-values-exported-from-dlls)1065        - [15.15.1.19. Сюрпризы](https://python-all.ru/2.6/library/ctypes.html#surprises)1066        - [15.15.1.20. Типы данных переменного размера](https://python-all.ru/2.6/library/ctypes.html#variable-sized-data-types)1067      - [15.15.2. Справочник по ctypes](https://python-all.ru/2.6/library/ctypes.html#ctypes-reference)10681069        - [15.15.2.1. Поиск разделяемых библиотек](https://python-all.ru/2.6/library/ctypes.html#finding-shared-libraries)1070        - [15.15.2.2. Загрузка разделяемых библиотек](https://python-all.ru/2.6/library/ctypes.html#loading-shared-libraries)1071        - [15.15.2.3. Внешние функции](https://python-all.ru/2.6/library/ctypes.html#foreign-functions)1072        - [15.15.2.4. Прототипы функций](https://python-all.ru/2.6/library/ctypes.html#function-prototypes)1073        - [15.15.2.5. Вспомогательные функции](https://python-all.ru/2.6/library/ctypes.html#utility-functions)1074        - [15.15.2.6. Типы данных](https://python-all.ru/2.6/library/ctypes.html#data-types)1075        - [15.15.2.7. Базовые типы данных](https://python-all.ru/2.6/library/ctypes.html#ctypes-fundamental-data-types-2)1076        - [15.15.2.8. Структурированные типы данных](https://python-all.ru/2.6/library/ctypes.html#structured-data-types)1077        - [15.15.2.9. Массивы и указатели](https://python-all.ru/2.6/library/ctypes.html#arrays-and-pointers)1078  - [16. Дополнительные службы операционной системы](https://python-all.ru/2.6/library/someos.html)10791080    - [16.1. `select` – Ожидание завершения ввода-вывода](https://python-all.ru/2.6/library/select.html)10811082      - [16.1.1. Объекты опроса по переднему фронту и по уровню (epoll)](https://python-all.ru/2.6/library/select.html#edge-and-level-trigger-polling-epoll-objects)1083      - [16.1.2. Объекты опроса](https://python-all.ru/2.6/library/select.html#polling-objects)1084      - [16.1.3. Объекты kqueue](https://python-all.ru/2.6/library/select.html#kqueue-objects)1085      - [16.1.4. Объекты kevent](https://python-all.ru/2.6/library/select.html#kevent-objects)1086    - [16.2. `threading` – Интерфейс многопоточности высокого уровня](https://python-all.ru/2.6/library/threading.html)10871088      - [16.2.1. Объекты потоков](https://python-all.ru/2.6/library/threading.html#thread-objects)1089      - [16.2.2. Объекты блокировок](https://python-all.ru/2.6/library/threading.html#lock-objects)1090      - [16.2.3. Объекты RLock](https://python-all.ru/2.6/library/threading.html#rlock-objects)1091      - [16.2.4. Объекты Condition](https://python-all.ru/2.6/library/threading.html#condition-objects)1092      - [16.2.5. Объекты семафоров](https://python-all.ru/2.6/library/threading.html#semaphore-objects)10931094        - [16.2.5.1. Пример с `Semaphore`](https://python-all.ru/2.6/library/threading.html#semaphore-example)1095      - [16.2.6. Объекты событий](https://python-all.ru/2.6/library/threading.html#event-objects)1096      - [16.2.7. Объекты таймеров](https://python-all.ru/2.6/library/threading.html#timer-objects)1097      - [16.2.8. Использование блокировок, условий и семафоров в операторе `with`](https://python-all.ru/2.6/library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement)1098      - [16.2.9. Импорт в многопоточном коде](https://python-all.ru/2.6/library/threading.html#importing-in-threaded-code)1099    - [16.3. `поток` – Несколько потоков управления](https://python-all.ru/2.6/library/thread.html)1100    - [16.4. `dummy_threading` – Прямая замена модуля `threading`](https://python-all.ru/2.6/library/dummy_threading.html)1101    - [16.5. `dummy_thread` – Прямая замена модуля `поток`](https://python-all.ru/2.6/library/dummy_thread.html)1102    - [16.6. `multiprocessing` – Интерфейс «многопоточности» на основе процессов](https://python-all.ru/2.6/library/multiprocessing.html)11031104      - [16.6.1. Введение](https://python-all.ru/2.6/library/multiprocessing.html#introduction)11051106        - [16.6.1.1. Класс `Процесс`](https://python-all.ru/2.6/library/multiprocessing.html#the-process-class)1107        - [16.6.1.2. Обмен объектами между процессами](https://python-all.ru/2.6/library/multiprocessing.html#exchanging-objects-between-processes)1108        - [16.6.1.3. Синхронизация между процессами](https://python-all.ru/2.6/library/multiprocessing.html#synchronization-between-processes)1109        - [16.6.1.4. Совместное использование состояния между процессами](https://python-all.ru/2.6/library/multiprocessing.html#sharing-state-between-processes)1110        - [16.6.1.5. Использование пула рабочих процессов](https://python-all.ru/2.6/library/multiprocessing.html#using-a-pool-of-workers)1111      - [16.6.2. Справочник](https://python-all.ru/2.6/library/multiprocessing.html#reference)11121113        - [16.6.2.1. `Процесс` и исключения](https://python-all.ru/2.6/library/multiprocessing.html#process-and-exceptions)1114        - [16.6.2.2. Каналы и очереди](https://python-all.ru/2.6/library/multiprocessing.html#pipes-and-queues)1115        - [16.6.2.3. Разное](https://python-all.ru/2.6/library/multiprocessing.html#miscellaneous)1116        - [16.6.2.4. Объекты соединений](https://python-all.ru/2.6/library/multiprocessing.html#connection-objects)1117        - [16.6.2.5. Примитивы синхронизации](https://python-all.ru/2.6/library/multiprocessing.html#synchronization-primitives)1118        - [16.6.2.6. Общие объекты `ctypes`](https://python-all.ru/2.6/library/multiprocessing.html#shared-ctypes-objects)11191120          - [16.6.2.6.1. Модуль `multiprocessing.sharedctypes`](https://python-all.ru/2.6/library/multiprocessing.html#module-multiprocessing.sharedctypes)1121        - [16.6.2.7. Менеджеры](https://python-all.ru/2.6/library/multiprocessing.html#module-multiprocessing.managers)11221123          - [16.6.2.7.1. Объекты пространства имён](https://python-all.ru/2.6/library/multiprocessing.html#namespace-objects)1124          - [16.6.2.7.2. Настраиваемые менеджеры](https://python-all.ru/2.6/library/multiprocessing.html#customized-managers)1125          - [16.6.2.7.3. Использование удалённого менеджера](https://python-all.ru/2.6/library/multiprocessing.html#using-a-remote-manager)1126        - [16.6.2.8. Прокси-объекты](https://python-all.ru/2.6/library/multiprocessing.html#proxy-objects)11271128          - [16.6.2.8.1. Очистка](https://python-all.ru/2.6/library/multiprocessing.html#cleanup)1129        - [16.6.2.9. Пулы процессов](https://python-all.ru/2.6/library/multiprocessing.html#module-multiprocessing.pool)1130        - [16.6.2.10. Прослушиватели и клиенты](https://python-all.ru/2.6/library/multiprocessing.html#module-multiprocessing.connection)11311132          - [16.6.2.10.1. Форматы адресов](https://python-all.ru/2.6/library/multiprocessing.html#address-formats)1133        - [16.6.2.11. Ключи аутентификации](https://python-all.ru/2.6/library/multiprocessing.html#authentication-keys)1134        - [16.6.2.12. Логирование](https://python-all.ru/2.6/library/multiprocessing.html#logging)1135        - [16.6.2.13. Модуль `multiprocessing.dummy`](https://python-all.ru/2.6/library/multiprocessing.html#module-multiprocessing.dummy)1136      - [16.6.3. Рекомендации по программированию](https://python-all.ru/2.6/library/multiprocessing.html#programming-guidelines)11371138        - [16.6.3.1. Все платформы](https://python-all.ru/2.6/library/multiprocessing.html#all-platforms)1139        - [16.6.3.2. Windows](https://python-all.ru/2.6/library/multiprocessing.html#windows)1140      - [16.6.4. Примеры](https://python-all.ru/2.6/library/multiprocessing.html#examples)1141    - [16.7. `mmap` – Поддержка файлов, отображаемых в память](https://python-all.ru/2.6/library/mmap.html)1142    - [16.8. `readline` – Интерфейс GNU readline](https://python-all.ru/2.6/library/readline.html)11431144      - [16.8.1. Пример](https://python-all.ru/2.6/library/readline.html#example)1145    - [16.9. `rlcompleter` – Функция автодополнения для GNU readline](https://python-all.ru/2.6/library/rlcompleter.html)11461147      - [16.9.1. Объекты автодополнения](https://python-all.ru/2.6/library/rlcompleter.html#completer-objects)1148  - [17. Межпроцессное взаимодействие и сетевые возможности](https://python-all.ru/2.6/library/ipc.html)11491150    - [17.1. `subprocess` – Управление подпроцессами](https://python-all.ru/2.6/library/subprocess.html)11511152      - [17.1.1. Использование модуля подпроцесса](https://python-all.ru/2.6/library/subprocess.html#using-the-subprocess-module)11531154        - [17.1.1.1. Вспомогательные функции](https://python-all.ru/2.6/library/subprocess.html#convenience-functions)1155        - [17.1.1.2. Исключения](https://python-all.ru/2.6/library/subprocess.html#exceptions)1156        - [17.1.1.3. Безопасность](https://python-all.ru/2.6/library/subprocess.html#security)1157      - [17.1.2. Объекты Popen](https://python-all.ru/2.6/library/subprocess.html#popen-objects)1158      - [17.1.3. Replacing Older Functions with the subprocess Module](https://python-all.ru/2.6/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)11591160        - [17.1.3.1. Замена обратной кавычки оболочки /bin/sh](https://python-all.ru/2.6/library/subprocess.html#replacing-bin-sh-shell-backquote)1161        - [17.1.3.2. Замена конвейера оболочки](https://python-all.ru/2.6/library/subprocess.html#replacing-shell-pipeline)1162        - [17.1.3.3. Замена `os.system()`](https://python-all.ru/2.6/library/subprocess.html#replacing-os-system)1163        - [17.1.3.4. Замена семейства `os.spawn`](https://python-all.ru/2.6/library/subprocess.html#replacing-the-os-spawn-family)1164        - [17.1.3.5. Замена `os.popen()`, `os.popen2()`, `os.popen3()`](https://python-all.ru/2.6/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3)1165        - [17.1.3.6. Замена функций из модуля `popen2`](https://python-all.ru/2.6/library/subprocess.html#replacing-functions-from-the-popen2-module)1166    - [17.2. `socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/2.6/library/socket.html)11671168      - [17.2.1. Объекты сокетов](https://python-all.ru/2.6/library/socket.html#socket-objects)1169      - [17.2.2. Пример](https://python-all.ru/2.6/library/socket.html#example)1170    - [17.3. `ssl` – Обёртка SSL для объектов сокетов](https://python-all.ru/2.6/library/ssl.html)11711172      - [17.3.1. Функции, константы и исключения](https://python-all.ru/2.6/library/ssl.html#functions-constants-and-exceptions)1173      - [17.3.2. Объекты SSLSocket](https://python-all.ru/2.6/library/ssl.html#sslsocket-objects)1174      - [17.3.3. Сертификаты](https://python-all.ru/2.6/library/ssl.html#certificates)1175      - [17.3.4. Примеры](https://python-all.ru/2.6/library/ssl.html#examples)11761177        - [17.3.4.1. Проверка поддержки SSL](https://python-all.ru/2.6/library/ssl.html#testing-for-ssl-support)1178        - [17.3.4.2. Работа на стороне клиента](https://python-all.ru/2.6/library/ssl.html#client-side-operation)1179        - [17.3.4.3. Работа на стороне сервера](https://python-all.ru/2.6/library/ssl.html#server-side-operation)1180    - [17.4. `signal` – Установка обработчиков для асинхронных событий](https://python-all.ru/2.6/library/signal.html)11811182      - [17.4.1. Пример](https://python-all.ru/2.6/library/signal.html#example)1183    - [17.5. `popen2` – Подпроцессы с доступными потоками ввода-вывода](https://python-all.ru/2.6/library/popen2.html)11841185      - [17.5.1. Объекты Popen3 и Popen4](https://python-all.ru/2.6/library/popen2.html#popen3-and-popen4-objects)1186      - [17.5.2. Проблемы управления потоком](https://python-all.ru/2.6/library/popen2.html#flow-control-issues)1187    - [17.6. `asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/2.6/library/asyncore.html)11881189      - [17.6.1. Пример asyncore: простой HTTP-клиент](https://python-all.ru/2.6/library/asyncore.html#asyncore-example-basic-http-client)1190    - [17.7. `asynchat` – Асинхронный обработчик команд/ответов через сокеты](https://python-all.ru/2.6/library/asynchat.html)11911192      - [17.7.1. asynchat – вспомогательные классы](https://python-all.ru/2.6/library/asynchat.html#asynchat-auxiliary-classes)1193      - [17.7.2. Пример asynchat](https://python-all.ru/2.6/library/asynchat.html#asynchat-example)1194  - [18. Обработка интернет-данных](https://python-all.ru/2.6/library/netdata.html)11951196    - [18.1. `email` – Пакет для работы с электронной почтой и MIME](https://python-all.ru/2.6/library/email.html)11971198      - [18.1.1. `email`: Представление email-сообщения](https://python-all.ru/2.6/library/email.message.html)1199      - [18.1.2. `email`: Разбор email-сообщений](https://python-all.ru/2.6/library/email.parser.html)12001201        - [18.1.2.1. API FeedParser](https://python-all.ru/2.6/library/email.parser.html#feedparser-api)1202        - [18.1.2.2. API класса Parser](https://python-all.ru/2.6/library/email.parser.html#parser-class-api)1203        - [18.1.2.3. Дополнительные замечания](https://python-all.ru/2.6/library/email.parser.html#additional-notes)1204      - [18.1.3. `email`: Генерация MIME-документов](https://python-all.ru/2.6/library/email.generator.html)1205      - [18.1.4. `email`: Создание email- и MIME-объектов с нуля](https://python-all.ru/2.6/library/email.mime.html)1206      - [18.1.5. `email`: Интернационализированные заголовки](https://python-all.ru/2.6/library/email.header.html)1207      - [18.1.6. `email`: Представление кодировок](https://python-all.ru/2.6/library/email.charset.html)1208      - [18.1.7. `email`: Кодировщики](https://python-all.ru/2.6/library/email.encoders.html)1209      - [18.1.8. `email`: Классы исключений и дефектов](https://python-all.ru/2.6/library/email.errors.html)1210      - [18.1.9. `email`: Прочие утилиты](https://python-all.ru/2.6/library/email.util.html)1211      - [18.1.10. `email`: Итераторы](https://python-all.ru/2.6/library/email.iterators.html)1212      - [18.1.11. `email`: Примеры](https://python-all.ru/2.6/library/email-examples.html)1213      - [18.1.12. История пакета](https://python-all.ru/2.6/library/email.html#package-history)1214      - [18.1.13. Отличия от `mimelib`](https://python-all.ru/2.6/library/email.html#differences-from-mimelib)1215    - [18.2. `json` – Кодировщик и декодировщик JSON](https://python-all.ru/2.6/library/json.html)12161217      - [18.2.1. Базовое использование](https://python-all.ru/2.6/library/json.html#basic-usage)1218      - [18.2.2. Кодировщики и декодировщики](https://python-all.ru/2.6/library/json.html#encoders-and-decoders)1219    - [18.3. `mailcap` – Обработка файлов mailcap](https://python-all.ru/2.6/library/mailcap.html)1220    - [18.4. `mailbox` – Работа с почтовыми ящиками в различных форматах](https://python-all.ru/2.6/library/mailbox.html)12211222      - [18.4.1. Объекты `Mailbox`](https://python-all.ru/2.6/library/mailbox.html#mailbox-objects)12231224        - [18.4.1.1. `Maildir`](https://python-all.ru/2.6/library/mailbox.html#maildir)1225        - [18.4.1.2. `mbox`](https://python-all.ru/2.6/library/mailbox.html#mbox)1226        - [18.4.1.3. `MH`](https://python-all.ru/2.6/library/mailbox.html#mh)1227        - [18.4.1.4. `Babyl`](https://python-all.ru/2.6/library/mailbox.html#babyl)1228        - [18.4.1.5. `MMDF`](https://python-all.ru/2.6/library/mailbox.html#mmdf)1229      - [18.4.2. Объекты `Message`](https://python-all.ru/2.6/library/mailbox.html#message-objects)12301231        - [18.4.2.1. `MaildirMessage`](https://python-all.ru/2.6/library/mailbox.html#maildirmessage)1232        - [18.4.2.2. `mboxMessage`](https://python-all.ru/2.6/library/mailbox.html#mboxmessage)1233        - [18.4.2.3. `MHMessage`](https://python-all.ru/2.6/library/mailbox.html#mhmessage)1234        - [18.4.2.4. `BabylMessage`](https://python-all.ru/2.6/library/mailbox.html#babylmessage)1235        - [18.4.2.5. `MMDFMessage`](https://python-all.ru/2.6/library/mailbox.html#mmdfmessage)1236      - [18.4.3. Исключения](https://python-all.ru/2.6/library/mailbox.html#exceptions)1237      - [18.4.4. Устаревшие классы и методы](https://python-all.ru/2.6/library/mailbox.html#deprecated-classes-and-methods)1238      - [18.4.5. Примеры](https://python-all.ru/2.6/library/mailbox.html#examples)1239    - [18.5. `mhlib` – Доступ к почтовым ящикам MH](https://python-all.ru/2.6/library/mhlib.html)12401241      - [18.5.1. Объекты MH](https://python-all.ru/2.6/library/mhlib.html#mh-objects)1242      - [18.5.2. Объекты папок](https://python-all.ru/2.6/library/mhlib.html#folder-objects)1243      - [18.5.3. Объекты сообщений](https://python-all.ru/2.6/library/mhlib.html#message-objects)1244    - [18.6. `mimetools` – Инструменты для разбора MIME-сообщений](https://python-all.ru/2.6/library/mimetools.html)12451246      - [18.6.1. Дополнительные методы объектов сообщений](https://python-all.ru/2.6/library/mimetools.html#additional-methods-of-message-objects)1247    - [18.7. `mimetypes` – Сопоставление имён файлов с MIME-типами](https://python-all.ru/2.6/library/mimetypes.html)12481249      - [18.7.1. Объекты MimeTypes](https://python-all.ru/2.6/library/mimetypes.html#mimetypes-objects)1250    - [18.8. `MimeWriter` – Универсальный модуль записи MIME-файлов](https://python-all.ru/2.6/library/mimewriter.html)12511252      - [18.8.1. Объекты MimeWriter](https://python-all.ru/2.6/library/mimewriter.html#mimewriter-objects)1253    - [18.9. `mimify` – Обработка MIME в почтовых сообщениях](https://python-all.ru/2.6/library/mimify.html)1254    - [18.10. `multifile` – Поддержка файлов, состоящих из отдельных частей](https://python-all.ru/2.6/library/multifile.html)12551256      - [18.10.1. Объекты MultiFile](https://python-all.ru/2.6/library/multifile.html#multifile-objects)1257      - [18.10.2. `MultiFile` Пример](https://python-all.ru/2.6/library/multifile.html#multifile-example)1258    - [18.11. `rfc822` – Разбор заголовков почтовых сообщений RFC 2822](https://python-all.ru/2.6/library/rfc822.html)12591260      - [18.11.1. Объекты Message](https://python-all.ru/2.6/library/rfc822.html#message-objects)1261      - [18.11.2. Объекты AddressList](https://python-all.ru/2.6/library/rfc822.html#addresslist-objects)1262    - [18.12. `base64` – RFC 3548: кодировки данных Base16, Base32, Base64](https://python-all.ru/2.6/library/base64.html)1263    - [18.13. `binhex` – Кодирование и декодирование файлов binhex4](https://python-all.ru/2.6/library/binhex.html)12641265      - [18.13.1. Примечания](https://python-all.ru/2.6/library/binhex.html#notes)1266    - [18.14. `binascii` – Преобразование между двоичным и ASCII-представлением](https://python-all.ru/2.6/library/binascii.html)1267    - [18.15. `quopri` – Кодирование и декодирование MIME-данных в формате quoted-printable](https://python-all.ru/2.6/library/quopri.html)1268    - [18.16. `uu` – Кодирование и декодирование файлов uuencode](https://python-all.ru/2.6/library/uu.html)1269  - [19. Инструменты обработки структурированной разметки](https://python-all.ru/2.6/library/markup.html)12701271    - [19.1. `HTMLParser` – Простой синтаксический анализатор HTML и XHTML](https://python-all.ru/2.6/library/htmlparser.html)12721273      - [19.1.1. Пример приложения для парсинга HTML](https://python-all.ru/2.6/library/htmlparser.html#example-html-parser-application)1274    - [19.2. `sgmllib` – Простой анализатор SGML](https://python-all.ru/2.6/library/sgmllib.html)1275    - [19.3. `htmllib` – Анализатор HTML-документов](https://python-all.ru/2.6/library/htmllib.html)12761277      - [19.3.1. Объекты HTMLParser](https://python-all.ru/2.6/library/htmllib.html#htmlparser-objects)1278    - [19.4. `htmlentitydefs` – Определения общих сущностей HTML](https://python-all.ru/2.6/library/htmllib.html#module-htmlentitydefs)1279    - [19.5. `xml.parsers.expat` – Быстрый разбор XML с помощью Expat](https://python-all.ru/2.6/library/pyexpat.html)12801281      - [19.5.1. Объекты XMLParser](https://python-all.ru/2.6/library/pyexpat.html#xmlparser-objects)1282      - [19.5.2. Исключения ExpatError](https://python-all.ru/2.6/library/pyexpat.html#expaterror-exceptions)1283      - [19.5.3. Пример](https://python-all.ru/2.6/library/pyexpat.html#example)1284      - [19.5.4. Описания моделей содержимого](https://python-all.ru/2.6/library/pyexpat.html#content-model-descriptions)1285      - [19.5.5. Константы ошибок Expat](https://python-all.ru/2.6/library/pyexpat.html#expat-error-constants)1286    - [19.6. `xml.dom` – API объектной модели документа](https://python-all.ru/2.6/library/xml.dom.html)12871288      - [19.6.1. Содержимое модуля](https://python-all.ru/2.6/library/xml.dom.html#module-contents)1289      - [19.6.2. Объекты в DOM](https://python-all.ru/2.6/library/xml.dom.html#objects-in-the-dom)12901291        - [19.6.2.1. Объекты DOMImplementation](https://python-all.ru/2.6/library/xml.dom.html#domimplementation-objects)1292        - [19.6.2.2. Объекты Node](https://python-all.ru/2.6/library/xml.dom.html#node-objects)1293        - [19.6.2.3. Объекты NodeList](https://python-all.ru/2.6/library/xml.dom.html#nodelist-objects)1294        - [19.6.2.4. Объекты DocumentType](https://python-all.ru/2.6/library/xml.dom.html#documenttype-objects)1295        - [19.6.2.5. Объекты Document](https://python-all.ru/2.6/library/xml.dom.html#document-objects)1296        - [19.6.2.6. Объекты Element](https://python-all.ru/2.6/library/xml.dom.html#element-objects)1297        - [19.6.2.7. Объекты Attr](https://python-all.ru/2.6/library/xml.dom.html#attr-objects)1298        - [19.6.2.8. Объекты NamedNodeMap](https://python-all.ru/2.6/library/xml.dom.html#namednodemap-objects)1299        - [19.6.2.9. Объекты Comment](https://python-all.ru/2.6/library/xml.dom.html#comment-objects)1300        - [19.6.2.10. Объекты Text и CDATASection](https://python-all.ru/2.6/library/xml.dom.html#text-and-cdatasection-objects)1301        - [19.6.2.11. Объекты ProcessingInstruction](https://python-all.ru/2.6/library/xml.dom.html#processinginstruction-objects)1302        - [19.6.2.12. Исключения](https://python-all.ru/2.6/library/xml.dom.html#exceptions)1303      - [19.6.3. Соответствие](https://python-all.ru/2.6/library/xml.dom.html#conformance)13041305        - [19.6.3.1. Отображение типов](https://python-all.ru/2.6/library/xml.dom.html#type-mapping)1306        - [19.6.3.2. Методы доступа](https://python-all.ru/2.6/library/xml.dom.html#accessor-methods)1307    - [19.7. `xml.dom.minidom` – Лёгкая реализация DOM](https://python-all.ru/2.6/library/xml.dom.minidom.html)13081309      - [19.7.1. Объекты DOM](https://python-all.ru/2.6/library/xml.dom.minidom.html#dom-objects)1310      - [19.7.2. Пример DOM](https://python-all.ru/2.6/library/xml.dom.minidom.html#dom-example)1311      - [19.7.3. minidom и стандарт DOM](https://python-all.ru/2.6/library/xml.dom.minidom.html#minidom-and-the-dom-standard)1312    - [19.8. `xml.dom.pulldom` – Поддержка построения частичных деревьев DOM](https://python-all.ru/2.6/library/xml.dom.pulldom.html)13131314      - [19.8.1. Объекты DOMEventStream](https://python-all.ru/2.6/library/xml.dom.pulldom.html#domeventstream-objects)1315    - [19.9. `xml.sax` – Поддержка парсеров SAX2](https://python-all.ru/2.6/library/xml.sax.html)13161317      - [19.9.1. Объекты SAXException](https://python-all.ru/2.6/library/xml.sax.html#saxexception-objects)1318    - [19.10. `xml.sax.handler` – Базовые классы для обработчиков SAX](https://python-all.ru/2.6/library/xml.sax.handler.html)13191320      - [19.10.1. Объекты ContentHandler](https://python-all.ru/2.6/library/xml.sax.handler.html#contenthandler-objects)1321      - [19.10.2. Объекты DTDHandler](https://python-all.ru/2.6/library/xml.sax.handler.html#dtdhandler-objects)1322      - [19.10.3. Объекты EntityResolver](https://python-all.ru/2.6/library/xml.sax.handler.html#entityresolver-objects)1323      - [19.10.4. Объекты ErrorHandler](https://python-all.ru/2.6/library/xml.sax.handler.html#errorhandler-objects)1324    - [19.11. `xml.sax.saxutils` – Утилиты SAX](https://python-all.ru/2.6/library/xml.sax.utils.html)1325    - [19.12. `xml.sax.xmlreader` – Интерфейс для XML-парсеров](https://python-all.ru/2.6/library/xml.sax.reader.html)13261327      - [19.12.1. Объекты XMLReader](https://python-all.ru/2.6/library/xml.sax.reader.html#xmlreader-objects)1328      - [19.12.2. Объекты IncrementalParser](https://python-all.ru/2.6/library/xml.sax.reader.html#incrementalparser-objects)1329      - [19.12.3. Объекты Locator](https://python-all.ru/2.6/library/xml.sax.reader.html#locator-objects)1330      - [19.12.4. Объекты InputSource](https://python-all.ru/2.6/library/xml.sax.reader.html#inputsource-objects)1331      - [19.12.5. Интерфейс `Attributes`](https://python-all.ru/2.6/library/xml.sax.reader.html#the-attributes-interface)1332      - [19.12.6. Интерфейс `AttributesNS`](https://python-all.ru/2.6/library/xml.sax.reader.html#the-attributesns-interface)1333    - [19.13. `xml.etree.ElementTree` – XML API ElementTree](https://python-all.ru/2.6/library/xml.etree.elementtree.html)13341335      - [19.13.1. Функции](https://python-all.ru/2.6/library/xml.etree.elementtree.html#functions)1336      - [19.13.2. Интерфейс Element](https://python-all.ru/2.6/library/xml.etree.elementtree.html#the-element-interface)1337      - [19.13.3. Объекты ElementTree](https://python-all.ru/2.6/library/xml.etree.elementtree.html#elementtree-objects)1338      - [19.13.4. Объекты QName](https://python-all.ru/2.6/library/xml.etree.elementtree.html#qname-objects)1339      - [19.13.5. Объекты TreeBuilder](https://python-all.ru/2.6/library/xml.etree.elementtree.html#treebuilder-objects)1340      - [19.13.6. Объекты XMLTreeBuilder](https://python-all.ru/2.6/library/xml.etree.elementtree.html#xmltreebuilder-objects)1341  - [20. Интернет-протоколы и поддержка](https://python-all.ru/2.6/library/internet.html)13421343    - [20.1. `webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/2.6/library/webbrowser.html)13441345      - [20.1.1. Объекты контроллера браузера](https://python-all.ru/2.6/library/webbrowser.html#browser-controller-objects)1346    - [20.2. `cgi` – Поддержка Common Gateway Interface](https://python-all.ru/2.6/library/cgi.html)13471348      - [20.2.1. Введение](https://python-all.ru/2.6/library/cgi.html#introduction)1349      - [20.2.2. Использование модуля cgi](https://python-all.ru/2.6/library/cgi.html#using-the-cgi-module)1350      - [20.2.3. Интерфейс высокого уровня](https://python-all.ru/2.6/library/cgi.html#higher-level-interface)1351      - [20.2.4. Устаревшие классы](https://python-all.ru/2.6/library/cgi.html#old-classes)1352      - [20.2.5. Функции](https://python-all.ru/2.6/library/cgi.html#functions)1353      - [20.2.6. Забота о безопасности](https://python-all.ru/2.6/library/cgi.html#caring-about-security)1354      - [20.2.7. Установка CGI-скрипта в системе Unix](https://python-all.ru/2.6/library/cgi.html#installing-your-cgi-script-on-a-unix-system)1355      - [20.2.8. Тестирование CGI-сценария](https://python-all.ru/2.6/library/cgi.html#testing-your-cgi-script)1356      - [20.2.9. Отладка CGI-сценариев](https://python-all.ru/2.6/library/cgi.html#debugging-cgi-scripts)1357      - [20.2.10. Типичные проблемы и их решения](https://python-all.ru/2.6/library/cgi.html#common-problems-and-solutions)1358    - [20.3. `cgitb` – Менеджер трассировки для CGI-скриптов](https://python-all.ru/2.6/library/cgitb.html)1359    - [20.4. `wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/2.6/library/wsgiref.html)13601361      - [20.4.1. `wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/2.6/library/wsgiref.html#module-wsgiref.util)1362      - [20.4.2. `wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/2.6/library/wsgiref.html#module-wsgiref.headers)1363      - [20.4.3. `wsgiref.simple_server` – Простой HTTP-сервер WSGI](https://python-all.ru/2.6/library/wsgiref.html#module-wsgiref.simple_server)1364      - [20.4.4. `wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/2.6/library/wsgiref.html#module-wsgiref.validate)1365      - [20.4.5. `wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/2.6/library/wsgiref.html#module-wsgiref.handlers)1366      - [20.4.6. Примеры](https://python-all.ru/2.6/library/wsgiref.html#examples)1367    - [20.5. `urllib` – Открытие произвольных ресурсов по URL](https://python-all.ru/2.6/library/urllib.html)13681369      - [20.5.1. Интерфейс высокого уровня](https://python-all.ru/2.6/library/urllib.html#high-level-interface)1370      - [20.5.2. Вспомогательные функции](https://python-all.ru/2.6/library/urllib.html#utility-functions)1371      - [20.5.3. Объекты-открыватели URL](https://python-all.ru/2.6/library/urllib.html#url-opener-objects)1372      - [20.5.4. `urllib` Ограничения](https://python-all.ru/2.6/library/urllib.html#urllib-restrictions)1373      - [20.5.5. Примеры](https://python-all.ru/2.6/library/urllib.html#examples)1374    - [20.6. `urllib2` – расширяемая библиотека для открытия URL](https://python-all.ru/2.6/library/urllib2.html)13751376      - [20.6.1. Объекты запроса](https://python-all.ru/2.6/library/urllib2.html#request-objects)1377      - [20.6.2. Объекты OpenerDirector](https://python-all.ru/2.6/library/urllib2.html#openerdirector-objects)1378      - [20.6.3. Объекты BaseHandler](https://python-all.ru/2.6/library/urllib2.html#basehandler-objects)1379      - [20.6.4. Объекты HTTPRedirectHandler](https://python-all.ru/2.6/library/urllib2.html#httpredirecthandler-objects)1380      - [20.6.5. Объекты HTTPCookieProcessor](https://python-all.ru/2.6/library/urllib2.html#httpcookieprocessor-objects)1381      - [20.6.6. Объекты ProxyHandler](https://python-all.ru/2.6/library/urllib2.html#proxyhandler-objects)1382      - [20.6.7. Объекты HTTPPasswordMgr](https://python-all.ru/2.6/library/urllib2.html#httppasswordmgr-objects)1383      - [20.6.8. Объекты AbstractBasicAuthHandler](https://python-all.ru/2.6/library/urllib2.html#abstractbasicauthhandler-objects)1384      - [20.6.9. Объекты HTTPBasicAuthHandler](https://python-all.ru/2.6/library/urllib2.html#httpbasicauthhandler-objects)1385      - [20.6.10. Объекты ProxyBasicAuthHandler](https://python-all.ru/2.6/library/urllib2.html#proxybasicauthhandler-objects)1386      - [20.6.11. Объекты AbstractDigestAuthHandler](https://python-all.ru/2.6/library/urllib2.html#abstractdigestauthhandler-objects)1387      - [20.6.12. Объекты HTTPDigestAuthHandler](https://python-all.ru/2.6/library/urllib2.html#httpdigestauthhandler-objects)1388      - [20.6.13. Объекты ProxyDigestAuthHandler](https://python-all.ru/2.6/library/urllib2.html#proxydigestauthhandler-objects)1389      - [20.6.14. Объекты HTTPHandler](https://python-all.ru/2.6/library/urllib2.html#httphandler-objects)1390      - [20.6.15. Объекты HTTPSHandler](https://python-all.ru/2.6/library/urllib2.html#httpshandler-objects)1391      - [20.6.16. Объекты FileHandler](https://python-all.ru/2.6/library/urllib2.html#filehandler-objects)1392      - [20.6.17. Объекты FTPHandler](https://python-all.ru/2.6/library/urllib2.html#ftphandler-objects)1393      - [20.6.18. Объекты CacheFTPHandler](https://python-all.ru/2.6/library/urllib2.html#cacheftphandler-objects)1394      - [20.6.19. Объекты UnknownHandler](https://python-all.ru/2.6/library/urllib2.html#unknownhandler-objects)1395      - [20.6.20. Объекты HTTPErrorProcessor](https://python-all.ru/2.6/library/urllib2.html#httperrorprocessor-objects)1396      - [20.6.21. Примеры](https://python-all.ru/2.6/library/urllib2.html#examples)1397    - [20.7. `httplib` – клиент протокола HTTP](https://python-all.ru/2.6/library/httplib.html)13981399      - [20.7.1. Объекты HTTPConnection](https://python-all.ru/2.6/library/httplib.html#httpconnection-objects)1400      - [20.7.2. Объекты HTTPResponse](https://python-all.ru/2.6/library/httplib.html#httpresponse-objects)1401      - [20.7.3. Примеры](https://python-all.ru/2.6/library/httplib.html#examples)1402    - [20.8. `ftplib` – клиент протокола FTP](https://python-all.ru/2.6/library/ftplib.html)14031404      - [20.8.1. Объекты FTP](https://python-all.ru/2.6/library/ftplib.html#ftp-objects)1405    - [20.9. `poplib` – клиент протокола POP3](https://python-all.ru/2.6/library/poplib.html)14061407      - [20.9.1. Объекты POP3](https://python-all.ru/2.6/library/poplib.html#pop3-objects)1408      - [20.9.2. Пример POP3](https://python-all.ru/2.6/library/poplib.html#pop3-example)1409    - [20.10. `imaplib` – клиент протокола IMAP4](https://python-all.ru/2.6/library/imaplib.html)14101411      - [20.10.1. Объекты IMAP4](https://python-all.ru/2.6/library/imaplib.html#imap4-objects)1412      - [20.10.2. Пример IMAP4](https://python-all.ru/2.6/library/imaplib.html#imap4-example)1413    - [20.11. `nntplib` – клиент протокола NNTP](https://python-all.ru/2.6/library/nntplib.html)14141415      - [20.11.1. Объекты NNTP](https://python-all.ru/2.6/library/nntplib.html#nntp-objects)1416    - [20.12. `smtplib` – клиент протокола SMTP](https://python-all.ru/2.6/library/smtplib.html)14171418      - [20.12.1. Объекты SMTP](https://python-all.ru/2.6/library/smtplib.html#smtp-objects)1419      - [20.12.2. Пример SMTP](https://python-all.ru/2.6/library/smtplib.html#smtp-example)1420    - [20.13. `smtpd` – SMTP-сервер](https://python-all.ru/2.6/library/smtpd.html)14211422      - [20.13.1. Объекты SMTPServer](https://python-all.ru/2.6/library/smtpd.html#smtpserver-objects)1423      - [20.13.2. Объекты DebuggingServer](https://python-all.ru/2.6/library/smtpd.html#debuggingserver-objects)1424      - [20.13.3. Объекты PureProxy](https://python-all.ru/2.6/library/smtpd.html#pureproxy-objects)1425      - [20.13.4. Объекты MailmanProxy](https://python-all.ru/2.6/library/smtpd.html#mailmanproxy-objects)1426    - [20.14. `telnetlib` – Telnet-клиент](https://python-all.ru/2.6/library/telnetlib.html)14271428      - [20.14.1. Объекты Telnet](https://python-all.ru/2.6/library/telnetlib.html#telnet-objects)1429      - [20.14.2. Пример Telnet](https://python-all.ru/2.6/library/telnetlib.html#telnet-example)1430    - [20.15. `uuid` – объекты UUID в соответствии с RFC 4122](https://python-all.ru/2.6/library/uuid.html)14311432      - [20.15.1. Пример](https://python-all.ru/2.6/library/uuid.html#example)1433    - [20.16. `urlparse` – Разбор URL на компоненты](https://python-all.ru/2.6/library/urlparse.html)14341435      - [20.16.1. Результаты `urlparse()` и `urlsplit()`](https://python-all.ru/2.6/library/urlparse.html#results-of-urlparse-and-urlsplit)1436    - [20.17. `SocketServer` – Фреймворк для сетевых серверов](https://python-all.ru/2.6/library/socketserver.html)14371438      - [20.17.1. Примечания по созданию сервера](https://python-all.ru/2.6/library/socketserver.html#server-creation-notes)1439      - [20.17.2. Объекты сервера](https://python-all.ru/2.6/library/socketserver.html#server-objects)1440      - [20.17.3. Объекты RequestHandler](https://python-all.ru/2.6/library/socketserver.html#requesthandler-objects)1441      - [20.17.4. Примеры](https://python-all.ru/2.6/library/socketserver.html#examples)14421443        - [20.17.4.1. `SocketServer.TCPServer` Пример](https://python-all.ru/2.6/library/socketserver.html#socketserver-tcpserver-example)1444        - [20.17.4.2. `SocketServer.UDPServer` Пример](https://python-all.ru/2.6/library/socketserver.html#socketserver-udpserver-example)1445        - [20.17.4.3. Асинхронные примеси](https://python-all.ru/2.6/library/socketserver.html#asynchronous-mixins)1446    - [20.18. `BaseHTTPServer` – Базовый HTTP-сервер](https://python-all.ru/2.6/library/basehttpserver.html)14471448      - [20.18.1. Дополнительные примеры](https://python-all.ru/2.6/library/basehttpserver.html#more-examples)1449    - [20.19. `SimpleHTTPServer` – Простой обработчик HTTP-запросов](https://python-all.ru/2.6/library/simplehttpserver.html)1450    - [20.20. `CGIHTTPServer` – Обработчик HTTP-запросов с поддержкой CGI](https://python-all.ru/2.6/library/cgihttpserver.html)1451    - [20.21. `cookielib` – Обработка куки для HTTP-клиентов](https://python-all.ru/2.6/library/cookielib.html)14521453      - [20.21.1. Объекты CookieJar и FileCookieJar](https://python-all.ru/2.6/library/cookielib.html#cookiejar-and-filecookiejar-objects)1454      - [20.21.2. Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/2.6/library/cookielib.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)1455      - [20.21.3. Объекты CookiePolicy](https://python-all.ru/2.6/library/cookielib.html#cookiepolicy-objects)1456      - [20.21.4. Объекты DefaultCookiePolicy](https://python-all.ru/2.6/library/cookielib.html#defaultcookiepolicy-objects)1457      - [20.21.5. Объекты Cookie](https://python-all.ru/2.6/library/cookielib.html#cookie-objects)1458      - [20.21.6. Примеры](https://python-all.ru/2.6/library/cookielib.html#examples)1459    - [20.22. `Cookie` – Управление состоянием HTTP](https://python-all.ru/2.6/library/cookie.html)14601461      - [20.22.1. Объекты Cookie](https://python-all.ru/2.6/library/cookie.html#cookie-objects)1462      - [20.22.2. Объекты Morsel](https://python-all.ru/2.6/library/cookie.html#morsel-objects)1463      - [20.22.3. Пример](https://python-all.ru/2.6/library/cookie.html#example)1464    - [20.23. `xmlrpclib` – Клиентский доступ к XML-RPC](https://python-all.ru/2.6/library/xmlrpclib.html)14651466      - [20.23.1. Объекты ServerProxy](https://python-all.ru/2.6/library/xmlrpclib.html#serverproxy-objects)1467      - [20.23.2. Объекты Boolean](https://python-all.ru/2.6/library/xmlrpclib.html#boolean-objects)1468      - [20.23.3. Объекты DateTime](https://python-all.ru/2.6/library/xmlrpclib.html#datetime-objects)1469      - [20.23.4. Объекты Binary](https://python-all.ru/2.6/library/xmlrpclib.html#binary-objects)1470      - [20.23.5. Объекты Fault](https://python-all.ru/2.6/library/xmlrpclib.html#fault-objects)1471      - [20.23.6. Объекты ProtocolError](https://python-all.ru/2.6/library/xmlrpclib.html#protocolerror-objects)1472      - [20.23.7. Объекты MultiCall](https://python-all.ru/2.6/library/xmlrpclib.html#multicall-objects)1473      - [20.23.8. Вспомогательные функции](https://python-all.ru/2.6/library/xmlrpclib.html#convenience-functions)1474      - [20.23.9. Пример использования клиента](https://python-all.ru/2.6/library/xmlrpclib.html#example-of-client-usage)1475      - [20.23.10. Пример использования клиента и сервера](https://python-all.ru/2.6/library/xmlrpclib.html#example-of-client-and-server-usage)1476    - [20.24. `SimpleXMLRPCServer` – Базовый XML-RPC сервер](https://python-all.ru/2.6/library/simplexmlrpcserver.html)14771478      - [20.24.1. Объекты SimpleXMLRPCServer](https://python-all.ru/2.6/library/simplexmlrpcserver.html#simplexmlrpcserver-objects)14791480        - [20.24.1.1. Пример SimpleXMLRPCServer](https://python-all.ru/2.6/library/simplexmlrpcserver.html#simplexmlrpcserver-example)1481      - [20.24.2. CGIXMLRPCRequestHandler](https://python-all.ru/2.6/library/simplexmlrpcserver.html#cgixmlrpcrequesthandler)1482    - [20.25. `DocXMLRPCServer` – Самодокументируемый XML-RPC сервер](https://python-all.ru/2.6/library/docxmlrpcserver.html)14831484      - [20.25.1. Объекты DocXMLRPCServer](https://python-all.ru/2.6/library/docxmlrpcserver.html#docxmlrpcserver-objects)1485      - [20.25.2. DocCGIXMLRPCRequestHandler](https://python-all.ru/2.6/library/docxmlrpcserver.html#doccgixmlrpcrequesthandler)1486  - [21. Мультимедийные службы](https://python-all.ru/2.6/library/mm.html)14871488    - [21.1. `audioop` – Обработка необработанных аудиоданных](https://python-all.ru/2.6/library/audioop.html)1489    - [21.2. `imageop` – Работа с необработанными данными изображений](https://python-all.ru/2.6/library/imageop.html)1490    - [21.3. `aifc` – Чтение и запись файлов AIFF и AIFC](https://python-all.ru/2.6/library/aifc.html)1491    - [21.4. `sunau` – Чтение и запись файлов Sun AU](https://python-all.ru/2.6/library/sunau.html)14921493      - [21.4.1. Объекты AU\_read](https://python-all.ru/2.6/library/sunau.html#au-read-objects)1494      - [21.4.2. Объекты AU\_write](https://python-all.ru/2.6/library/sunau.html#au-write-objects)1495    - [21.5. `wave` – Чтение и запись WAV-файлов](https://python-all.ru/2.6/library/wave.html)14961497      - [21.5.1. Объекты Wave\_read](https://python-all.ru/2.6/library/wave.html#wave-read-objects)1498      - [21.5.2. Объекты Wave\_write](https://python-all.ru/2.6/library/wave.html#wave-write-objects)1499    - [21.6. `chunk` – Чтение блочных данных IFF](https://python-all.ru/2.6/library/chunk.html)1500    - [21.7. `colorsys` – Преобразования между цветовыми системами](https://python-all.ru/2.6/library/colorsys.html)1501    - [21.8. `imghdr` – Определение типа изображения](https://python-all.ru/2.6/library/imghdr.html)1502    - [21.9. `sndhdr` – Определение типа звукового файла](https://python-all.ru/2.6/library/sndhdr.html)1503    - [21.10. `ossaudiodev` – Доступ к аудиоустройствам, совместимым с OSS](https://python-all.ru/2.6/library/ossaudiodev.html)15041505      - [21.10.1. Объекты аудиоустройств](https://python-all.ru/2.6/library/ossaudiodev.html#audio-device-objects)1506      - [21.10.2. Объекты микшерных устройств](https://python-all.ru/2.6/library/ossaudiodev.html#mixer-device-objects)1507  - [22. Интернационализация](https://python-all.ru/2.6/library/i18n.html)15081509    - [22.1. `gettext` – Многоязычные службы интернационализации](https://python-all.ru/2.6/library/gettext.html)15101511      - [22.1.1. API GNU **gettext**](https://python-all.ru/2.6/library/gettext.html#gnu-gettext-api)1512      - [22.1.2. API на основе классов](https://python-all.ru/2.6/library/gettext.html#class-based-api)15131514        - [22.1.2.1. Класс `NullTranslations`](https://python-all.ru/2.6/library/gettext.html#the-nulltranslations-class)1515        - [22.1.2.2. Класс `GNUTranslations`](https://python-all.ru/2.6/library/gettext.html#the-gnutranslations-class)1516        - [22.1.2.3. Поддержка каталогов сообщений Solaris](https://python-all.ru/2.6/library/gettext.html#solaris-message-catalog-support)1517        - [22.1.2.4. Конструктор Catalog](https://python-all.ru/2.6/library/gettext.html#the-catalog-constructor)1518      - [22.1.3. Интернационализация программ и модулей](https://python-all.ru/2.6/library/gettext.html#internationalizing-your-programs-and-modules)15191520        - [22.1.3.1. Локализация модуля](https://python-all.ru/2.6/library/gettext.html#localizing-your-module)1521        - [22.1.3.2. Локализация приложения](https://python-all.ru/2.6/library/gettext.html#localizing-your-application)1522        - [22.1.3.3. Смена языка на лету](https://python-all.ru/2.6/library/gettext.html#changing-languages-on-the-fly)1523        - [22.1.3.4. Отложенные переводы](https://python-all.ru/2.6/library/gettext.html#deferred-translations)1524        - [22.1.3.5. `gettext()` и `lgettext()`](https://python-all.ru/2.6/library/gettext.html#gettext-vs-lgettext)1525      - [22.1.4. Благодарности](https://python-all.ru/2.6/library/gettext.html#acknowledgements)1526    - [22.2. `locale` – Службы интернационализации](https://python-all.ru/2.6/library/locale.html)15271528      - [22.2.1. Предыстория, подробности, советы и предостережения](https://python-all.ru/2.6/library/locale.html#background-details-hints-tips-and-caveats)1529      - [22.2.2. Для разработчиков расширений и программ, встраивающих Python](https://python-all.ru/2.6/library/locale.html#for-extension-writers-and-programs-that-embed-python)1530      - [22.2.3. Доступ к каталогам сообщений](https://python-all.ru/2.6/library/locale.html#access-to-message-catalogs)1531  - [23. Каркасы программ](https://python-all.ru/2.6/library/frameworks.html)15321533    - [23.1. `cmd` – Поддержка построчных интерпретаторов команд](https://python-all.ru/2.6/library/cmd.html)15341535      - [23.1.1. Объекты Cmd](https://python-all.ru/2.6/library/cmd.html#cmd-objects)1536    - [23.2. `shlex` – Простой лексический анализ](https://python-all.ru/2.6/library/shlex.html)15371538      - [23.2.1. Объекты shlex](https://python-all.ru/2.6/library/shlex.html#shlex-objects)1539      - [23.2.2. Правила разбора](https://python-all.ru/2.6/library/shlex.html#parsing-rules)1540  - [24. Графические пользовательские интерфейсы с Tk](https://python-all.ru/2.6/library/tk.html)15411542    - [24.1. `Tkinter` – Интерфейс Python для Tcl/Tk](https://python-all.ru/2.6/library/tkinter.html)15431544      - [24.1.1. Модули Tkinter](https://python-all.ru/2.6/library/tkinter.html#tkinter-modules)1545      - [24.1.2. Жизненный спасатель Tkinter](https://python-all.ru/2.6/library/tkinter.html#tkinter-life-preserver)15461547        - [24.1.2.1. Как использовать этот раздел](https://python-all.ru/2.6/library/tkinter.html#how-to-use-this-section)1548        - [24.1.2.2. Простая программа Hello World](https://python-all.ru/2.6/library/tkinter.html#a-simple-hello-world-program)1549      - [24.1.3. Очень быстрый взгляд на Tcl/Tk](https://python-all.ru/2.6/library/tkinter.html#a-very-quick-look-at-tcl-tk)1550      - [24.1.4. Отображение базового Tk в Tkinter](https://python-all.ru/2.6/library/tkinter.html#mapping-basic-tk-into-tkinter)1551      - [24.1.5. Как связаны Tk и Tkinter](https://python-all.ru/2.6/library/tkinter.html#how-tk-and-tkinter-are-related)1552      - [24.1.6. Удобный справочник](https://python-all.ru/2.6/library/tkinter.html#handy-reference)15531554        - [24.1.6.1. Настройка параметров](https://python-all.ru/2.6/library/tkinter.html#setting-options)1555        - [24.1.6.2. Упаковщик](https://python-all.ru/2.6/library/tkinter.html#the-packer)1556        - [24.1.6.3. Параметры упаковщика](https://python-all.ru/2.6/library/tkinter.html#packer-options)1557        - [24.1.6.4. Привязка переменных виджетов](https://python-all.ru/2.6/library/tkinter.html#coupling-widget-variables)1558        - [24.1.6.5. Менеджер окон](https://python-all.ru/2.6/library/tkinter.html#the-window-manager)1559        - [24.1.6.6. Типы данных параметров Tk](https://python-all.ru/2.6/library/tkinter.html#tk-option-data-types)1560        - [24.1.6.7. Привязки и события](https://python-all.ru/2.6/library/tkinter.html#bindings-and-events)1561        - [24.1.6.8. Параметр index](https://python-all.ru/2.6/library/tkinter.html#the-index-parameter)1562        - [24.1.6.9. Изображения](https://python-all.ru/2.6/library/tkinter.html#images)1563    - [24.2. `Tix` – Расширенные виджеты для Tk](https://python-all.ru/2.6/library/tix.html)15641565      - [24.2.1. Использование Tix](https://python-all.ru/2.6/library/tix.html#using-tix)1566      - [24.2.2. Виджеты Tix](https://python-all.ru/2.6/library/tix.html#tix-widgets)15671568        - [24.2.2.1. Базовые виджеты](https://python-all.ru/2.6/library/tix.html#basic-widgets)1569        - [24.2.2.2. Выбор файлов](https://python-all.ru/2.6/library/tix.html#file-selectors)1570        - [24.2.2.3. Иерархический ListBox](https://python-all.ru/2.6/library/tix.html#hierarchical-listbox)1571        - [24.2.2.4. Табличный ListBox](https://python-all.ru/2.6/library/tix.html#tabular-listbox)1572        - [24.2.2.5. Виджеты-менеджеры](https://python-all.ru/2.6/library/tix.html#manager-widgets)1573        - [24.2.2.6. Типы изображений](https://python-all.ru/2.6/library/tix.html#image-types)1574        - [24.2.2.7. Прочие виджеты](https://python-all.ru/2.6/library/tix.html#miscellaneous-widgets)1575        - [24.2.2.8. Менеджер геометрии формы](https://python-all.ru/2.6/library/tix.html#form-geometry-manager)1576      - [24.2.3. Команды Tix](https://python-all.ru/2.6/library/tix.html#tix-commands)1577    - [24.3. `ScrolledText` – виджет с прокруткой текста](https://python-all.ru/2.6/library/scrolledtext.html)1578    - [24.4. `turtle` – графика Turtle для Tk](https://python-all.ru/2.6/library/turtle.html)15791580      - [24.4.1. Введение](https://python-all.ru/2.6/library/turtle.html#introduction)1581      - [24.4.2. Обзор доступных методов Turtle и Screen](https://python-all.ru/2.6/library/turtle.html#overview-over-available-turtle-and-screen-methods)15821583        - [24.4.2.1. Методы Turtle](https://python-all.ru/2.6/library/turtle.html#turtle-methods)1584        - [24.4.2.2. Методы TurtleScreen/Screen](https://python-all.ru/2.6/library/turtle.html#methods-of-turtlescreen-screen)1585      - [24.4.3. Методы RawTurtle/Turtle и соответствующие функции](https://python-all.ru/2.6/library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions)15861587        - [24.4.3.1. Движение Turtle](https://python-all.ru/2.6/library/turtle.html#turtle-motion)1588        - [24.4.3.2. Определение состояния Turtle](https://python-all.ru/2.6/library/turtle.html#tell-turtle-s-state)1589        - [24.4.3.3. Настройки измерения](https://python-all.ru/2.6/library/turtle.html#settings-for-measurement)1590        - [24.4.3.4. Управление пером](https://python-all.ru/2.6/library/turtle.html#pen-control)15911592          - [24.4.3.4.1. Состояние рисования](https://python-all.ru/2.6/library/turtle.html#drawing-state)1593          - [24.4.3.4.2. Управление цветом](https://python-all.ru/2.6/library/turtle.html#color-control)1594          - [24.4.3.4.3. Заливка](https://python-all.ru/2.6/library/turtle.html#filling)1595          - [24.4.3.4.4. Дополнительное управление рисованием](https://python-all.ru/2.6/library/turtle.html#more-drawing-control)1596        - [24.4.3.5. Состояние Turtle](https://python-all.ru/2.6/library/turtle.html#turtle-state)15971598          - [24.4.3.5.1. Видимость](https://python-all.ru/2.6/library/turtle.html#visibility)1599          - [24.4.3.5.2. Внешний вид](https://python-all.ru/2.6/library/turtle.html#appearance)1600        - [24.4.3.6. Использование событий](https://python-all.ru/2.6/library/turtle.html#using-events)1601        - [24.4.3.7. Специальные методы Turtle](https://python-all.ru/2.6/library/turtle.html#special-turtle-methods)1602        - [24.4.3.8. Экскурс об использовании составных фигур](https://python-all.ru/2.6/library/turtle.html#excursus-about-the-use-of-compound-shapes)1603      - [24.4.4. Методы TurtleScreen/Screen и соответствующие функции](https://python-all.ru/2.6/library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions)16041605        - [24.4.4.1. Управление окном](https://python-all.ru/2.6/library/turtle.html#window-control)1606        - [24.4.4.2. Управление анимацией](https://python-all.ru/2.6/library/turtle.html#animation-control)1607        - [24.4.4.3. Использование событий экрана](https://python-all.ru/2.6/library/turtle.html#using-screen-events)1608        - [24.4.4.4. Настройки и специальные методы](https://python-all.ru/2.6/library/turtle.html#settings-and-special-methods)1609        - [24.4.4.5. Методы, специфичные для Screen, не унаследованные от TurtleScreen](https://python-all.ru/2.6/library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen)1610      - [24.4.5. Публичные классы модуля `turtle`](https://python-all.ru/2.6/library/turtle.html#the-public-classes-of-the-module-turtle)1611      - [24.4.6. Справка и настройка](https://python-all.ru/2.6/library/turtle.html#help-and-configuration)16121613        - [24.4.6.1. Как пользоваться справкой](https://python-all.ru/2.6/library/turtle.html#how-to-use-help)1614        - [24.4.6.2. Перевод строк документации на разные языки](https://python-all.ru/2.6/library/turtle.html#translation-of-docstrings-into-different-languages)1615        - [24.4.6.3. Как настроить Screen и Turtles](https://python-all.ru/2.6/library/turtle.html#how-to-configure-screen-and-turtles)1616      - [24.4.7. Демонстрационные скрипты](https://python-all.ru/2.6/library/turtle.html#demo-scripts)1617    - [24.5. IDLE](https://python-all.ru/2.6/library/idle.html)16181619      - [24.5.1. Меню](https://python-all.ru/2.6/library/idle.html#menus)16201621        - [24.5.1.1. Меню «Файл»](https://python-all.ru/2.6/library/idle.html#file-menu)1622        - [24.5.1.2. Меню «Правка»](https://python-all.ru/2.6/library/idle.html#edit-menu)1623        - [24.5.1.3. Меню «Окна»](https://python-all.ru/2.6/library/idle.html#windows-menu)1624        - [24.5.1.4. Меню отладки (только в окне Python Shell)](https://python-all.ru/2.6/library/idle.html#debug-menu-in-the-python-shell-window-only)1625      - [24.5.2. Основы редактирования и навигации](https://python-all.ru/2.6/library/idle.html#basic-editing-and-navigation)16261627        - [24.5.2.1. Автоматический отступ](https://python-all.ru/2.6/library/idle.html#automatic-indentation)1628        - [24.5.2.2. Окно оболочки Python](https://python-all.ru/2.6/library/idle.html#python-shell-window)1629      - [24.5.3. Цвета синтаксиса](https://python-all.ru/2.6/library/idle.html#syntax-colors)1630      - [24.5.4. Запуск](https://python-all.ru/2.6/library/idle.html#startup)16311632        - [24.5.4.1. Использование командной строки](https://python-all.ru/2.6/library/idle.html#command-line-usage)1633    - [24.6. Другие пакеты графического интерфейса пользователя](https://python-all.ru/2.6/library/othergui.html)1634  - [25. Инструменты разработки](https://python-all.ru/2.6/library/development.html)16351636    - [25.1. `pydoc` – Генератор документации и справочная система](https://python-all.ru/2.6/library/pydoc.html)1637    - [25.2. `doctest` – Тестирование интерактивных примеров Python](https://python-all.ru/2.6/library/doctest.html)16381639      - [25.2.1. Простое использование: проверка примеров в docstrings](https://python-all.ru/2.6/library/doctest.html#simple-usage-checking-examples-in-docstrings)1640      - [25.2.2. Простое использование: проверка примеров в текстовом файле](https://python-all.ru/2.6/library/doctest.html#simple-usage-checking-examples-in-a-text-file)1641      - [25.2.3. Как это работает](https://python-all.ru/2.6/library/doctest.html#how-it-works)16421643        - [25.2.3.1. Какие docstrings проверяются?](https://python-all.ru/2.6/library/doctest.html#which-docstrings-are-examined)1644        - [25.2.3.2. Как распознаются примеры в строках документации?](https://python-all.ru/2.6/library/doctest.html#how-are-docstring-examples-recognized)1645        - [25.2.3.3. Каков контекст выполнения?](https://python-all.ru/2.6/library/doctest.html#what-s-the-execution-context)1646        - [25.2.3.4. А что насчёт исключений?](https://python-all.ru/2.6/library/doctest.html#what-about-exceptions)1647        - [25.2.3.5. Флаги опций и директивы](https://python-all.ru/2.6/library/doctest.html#option-flags-and-directives)1648        - [25.2.3.6. Предупреждения](https://python-all.ru/2.6/library/doctest.html#warnings)1649      - [25.2.4. Базовый API](https://python-all.ru/2.6/library/doctest.html#basic-api)1650      - [25.2.5. API модуля unittest](https://python-all.ru/2.6/library/doctest.html#unittest-api)1651      - [25.2.6. Продвинутый API](https://python-all.ru/2.6/library/doctest.html#advanced-api)16521653        - [25.2.6.1. Объекты DocTest](https://python-all.ru/2.6/library/doctest.html#doctest-objects)1654        - [25.2.6.2. Объекты Example](https://python-all.ru/2.6/library/doctest.html#example-objects)1655        - [25.2.6.3. Объекты DocTestFinder](https://python-all.ru/2.6/library/doctest.html#doctestfinder-objects)1656        - [25.2.6.4. Объекты DocTestParser](https://python-all.ru/2.6/library/doctest.html#doctestparser-objects)1657        - [25.2.6.5. Объекты DocTestRunner](https://python-all.ru/2.6/library/doctest.html#doctestrunner-objects)1658        - [25.2.6.6. Объекты OutputChecker](https://python-all.ru/2.6/library/doctest.html#outputchecker-objects)1659      - [25.2.7. Отладка](https://python-all.ru/2.6/library/doctest.html#debugging)1660      - [25.2.8. Разное](https://python-all.ru/2.6/library/doctest.html#soapbox)1661    - [25.3. `unittest` – фреймворк для модульного тестирования](https://python-all.ru/2.6/library/unittest.html)16621663      - [25.3.1. Простой пример](https://python-all.ru/2.6/library/unittest.html#basic-example)1664      - [25.3.2. Организация тестового кода](https://python-all.ru/2.6/library/unittest.html#organizing-test-code)1665      - [25.3.3. Повторное использование старого тестового кода](https://python-all.ru/2.6/library/unittest.html#re-using-old-test-code)1666      - [25.3.4. Классы и функции](https://python-all.ru/2.6/library/unittest.html#classes-and-functions)1667      - [25.3.5. Объекты TestCase](https://python-all.ru/2.6/library/unittest.html#testcase-objects)1668      - [25.3.6. Объекты TestSuite](https://python-all.ru/2.6/library/unittest.html#testsuite-objects)1669      - [25.3.7. Объекты TestResult](https://python-all.ru/2.6/library/unittest.html#testresult-objects)1670      - [25.3.8. Объекты TestLoader](https://python-all.ru/2.6/library/unittest.html#testloader-objects)1671    - [25.4. 2to3 – автоматическое преобразование кода Python 2 в 3](https://python-all.ru/2.6/library/2to3.html)16721673      - [25.4.1. Использование 2to3](https://python-all.ru/2.6/library/2to3.html#using-2to3)1674      - [25.4.2. Исправители](https://python-all.ru/2.6/library/2to3.html#fixers)1675      - [25.4.3. `lib2to3` – библиотека 2to3](https://python-all.ru/2.6/library/2to3.html#module-lib2to3)1676    - [25.5. `test` – пакет регрессионных тестов для Python](https://python-all.ru/2.6/library/test.html)16771678      - [25.5.1. Написание модульных тестов для пакета `test`](https://python-all.ru/2.6/library/test.html#writing-unit-tests-for-the-test-package)1679      - [25.5.2. Запуск тестов с помощью `test.regrtest`](https://python-all.ru/2.6/library/test.html#running-tests-using-test-regrtest)1680    - [25.6. `test.test_support` – Вспомогательные функции для тестов](https://python-all.ru/2.6/library/test.html#module-test.test_support)1681  - [26. Отладка и профилирование](https://python-all.ru/2.6/library/debug.html)16821683    - [26.1. `bdb` – Каркас отладчика](https://python-all.ru/2.6/library/bdb.html)1684    - [26.2. `pdb` – Отладчик Python](https://python-all.ru/2.6/library/pdb.html)1685    - [26.3. Команды отладчика](https://python-all.ru/2.6/library/pdb.html#debugger-commands)1686    - [26.4. Профилировщики Python](https://python-all.ru/2.6/library/profile.html)16871688      - [26.4.1. Введение в профилировщики](https://python-all.ru/2.6/library/profile.html#introduction-to-the-profilers)1689      - [26.4.2. Краткое руководство пользователя](https://python-all.ru/2.6/library/profile.html#instant-user-s-manual)1690      - [26.4.3. Что такое детерминированное профилирование?](https://python-all.ru/2.6/library/profile.html#what-is-deterministic-profiling)1691      - [26.4.4. Справочное руководство – `profile` и `cProfile`](https://python-all.ru/2.6/library/profile.html#module-pstats)16921693        - [26.4.4.1. Класс `Stats`](https://python-all.ru/2.6/library/profile.html#the-stats-class)1694      - [26.4.5. Ограничения](https://python-all.ru/2.6/library/profile.html#limitations)1695      - [26.4.6. Калибровка](https://python-all.ru/2.6/library/profile.html#calibration)1696      - [26.4.7. Расширения – создание более качественных профилировщиков](https://python-all.ru/2.6/library/profile.html#extensions-deriving-better-profilers)1697    - [26.5. `hotshot` – Высокопроизводительный профилировщик с журналированием](https://python-all.ru/2.6/library/hotshot.html)16981699      - [26.5.1. Объекты профиля](https://python-all.ru/2.6/library/hotshot.html#profile-objects)1700      - [26.5.2. Использование данных hotshot](https://python-all.ru/2.6/library/hotshot.html#module-hotshot.stats)1701      - [26.5.3. Пример использования](https://python-all.ru/2.6/library/hotshot.html#example-usage)1702    - [26.6. `timeit` – Измерение времени выполнения небольших фрагментов кода](https://python-all.ru/2.6/library/timeit.html)17031704      - [26.6.1. Интерфейс командной строки](https://python-all.ru/2.6/library/timeit.html#command-line-interface)1705      - [26.6.2. Примеры](https://python-all.ru/2.6/library/timeit.html#examples)1706    - [26.7. `trace` – Трассировка или отслеживание выполнения инструкций Python](https://python-all.ru/2.6/library/trace.html)17071708      - [26.7.1. Использование из командной строки](https://python-all.ru/2.6/library/trace.html#command-line-usage)17091710        - [26.7.1.1. Мета-опции](https://python-all.ru/2.6/library/trace.html#meta-options)1711        - [26.7.1.2. Основные опции](https://python-all.ru/2.6/library/trace.html#main-options)1712        - [26.7.1.3. Модификаторы](https://python-all.ru/2.6/library/trace.html#modifiers)1713        - [26.7.1.4. Фильтры](https://python-all.ru/2.6/library/trace.html#filters)1714      - [26.7.2. Программный интерфейс](https://python-all.ru/2.6/library/trace.html#programming-interface)1715  - [27. Службы времени выполнения Python](https://python-all.ru/2.6/library/python.html)17161717    - [27.1. `sys` – Системно-зависимые параметры и функции](https://python-all.ru/2.6/library/sys.html)1718    - [27.2. `__builtin__` – Встроенные объекты](https://python-all.ru/2.6/library/__builtin__.html)1719    - [27.3. `future_builtins` – Встроенные функции Python 3](https://python-all.ru/2.6/library/future_builtins.html)1720    - [27.4. `__main__` – Среда сценария верхнего уровня](https://python-all.ru/2.6/library/__main__.html)1721    - [27.5. `warnings` – Управление предупреждениями](https://python-all.ru/2.6/library/warnings.html)17221723      - [27.5.1. Категории предупреждений](https://python-all.ru/2.6/library/warnings.html#warning-categories)1724      - [27.5.2. Фильтр предупреждений](https://python-all.ru/2.6/library/warnings.html#the-warnings-filter)1725      - [27.5.3. Временное подавление предупреждений](https://python-all.ru/2.6/library/warnings.html#temporarily-suppressing-warnings)1726      - [27.5.4. Тестирование предупреждений](https://python-all.ru/2.6/library/warnings.html#testing-warnings)1727      - [27.5.5. Доступные функции](https://python-all.ru/2.6/library/warnings.html#available-functions)1728      - [27.5.6. Доступные менеджеры контекста](https://python-all.ru/2.6/library/warnings.html#available-context-managers)1729    - [27.6. `contextlib` – Утилиты для контекстов оператора `with`](https://python-all.ru/2.6/library/contextlib.html)1730    - [27.7. `abc` – Абстрактные базовые классы](https://python-all.ru/2.6/library/abc.html)1731    - [27.8. `atexit` – Обработчики завершения](https://python-all.ru/2.6/library/atexit.html)17321733      - [27.8.1. Пример `atexit`](https://python-all.ru/2.6/library/atexit.html#atexit-example)1734    - [27.9. `traceback` – Печать или получение трассировки стека](https://python-all.ru/2.6/library/traceback.html)17351736      - [27.9.1. Примеры трассировки](https://python-all.ru/2.6/library/traceback.html#traceback-examples)1737    - [27.10. `__future__` – Определения оператора future](https://python-all.ru/2.6/library/__future__.html)1738    - [27.11. `gc` – Интерфейс сборщика мусора](https://python-all.ru/2.6/library/gc.html)1739    - [27.12. `inspect` – Инспекция живых объектов](https://python-all.ru/2.6/library/inspect.html)17401741      - [27.12.1. Типы и члены](https://python-all.ru/2.6/library/inspect.html#types-and-members)1742      - [27.12.2. Получение исходного кода](https://python-all.ru/2.6/library/inspect.html#retrieving-source-code)1743      - [27.12.3. Классы и функции](https://python-all.ru/2.6/library/inspect.html#classes-and-functions)1744      - [27.12.4. Стек интерпретатора](https://python-all.ru/2.6/library/inspect.html#the-interpreter-stack)1745    - [27.13. `site` – Хук конфигурации для конкретного сайта](https://python-all.ru/2.6/library/site.html)1746    - [27.14. `user` – Пользовательский хук конфигурации](https://python-all.ru/2.6/library/user.html)1747    - [27.15. `fpectl` – Управление исключениями с плавающей точкой](https://python-all.ru/2.6/library/fpectl.html)17481749      - [27.15.1. Пример](https://python-all.ru/2.6/library/fpectl.html#example)1750      - [27.15.2. Ограничения и прочие соображения](https://python-all.ru/2.6/library/fpectl.html#limitations-and-other-considerations)1751    - [27.16. `distutils` – Сборка и установка модулей Python](https://python-all.ru/2.6/library/distutils.html)1752  - [28. Пользовательские интерпретаторы Python](https://python-all.ru/2.6/library/custominterp.html)17531754    - [28.1. `code` – Базовые классы интерпретатора](https://python-all.ru/2.6/library/code.html)17551756      - [28.1.1. Объекты интерактивного интерпретатора](https://python-all.ru/2.6/library/code.html#interactive-interpreter-objects)1757      - [28.1.2. Объекты интерактивной консоли](https://python-all.ru/2.6/library/code.html#interactive-console-objects)1758    - [28.2. `codeop` – Компиляция кода Python](https://python-all.ru/2.6/library/codeop.html)1759  - [29. Ограниченное выполнение](https://python-all.ru/2.6/library/restricted.html)17601761    - [29.1. `rexec` – Фреймворк ограниченного выполнения](https://python-all.ru/2.6/library/rexec.html)17621763      - [29.1.1. Объекты RExec](https://python-all.ru/2.6/library/rexec.html#rexec-objects)1764      - [29.1.2. Определение ограниченных сред](https://python-all.ru/2.6/library/rexec.html#defining-restricted-environments)1765      - [29.1.3. Пример](https://python-all.ru/2.6/library/rexec.html#an-example)1766    - [29.2. `Bastion` – Ограничение доступа к объектам](https://python-all.ru/2.6/library/bastion.html)1767  - [30. Импорт модулей](https://python-all.ru/2.6/library/modules.html)17681769    - [30.1. `imp` – Доступ к внутреннему устройству `import`](https://python-all.ru/2.6/library/imp.html)17701771      - [30.1.1. Примеры](https://python-all.ru/2.6/library/imp.html#examples)1772    - [30.2. `imputil` – Утилиты импорта](https://python-all.ru/2.6/library/imputil.html)17731774      - [30.2.1. Примеры](https://python-all.ru/2.6/library/imputil.html#examples)1775    - [30.3. `zipimport` – Импорт модулей из Zip-архивов](https://python-all.ru/2.6/library/zipimport.html)17761777      - [30.3.1. Объекты zipimporter](https://python-all.ru/2.6/library/zipimport.html#zipimporter-objects)1778      - [30.3.2. Примеры](https://python-all.ru/2.6/library/zipimport.html#examples)1779    - [30.4. `pkgutil` – Утилита расширения пакетов](https://python-all.ru/2.6/library/pkgutil.html)1780    - [30.5. `modulefinder` – Поиск модулей, используемых скриптом](https://python-all.ru/2.6/library/modulefinder.html)17811782      - [30.5.1. Пример использования `ModuleFinder`](https://python-all.ru/2.6/library/modulefinder.html#example-usage-of-modulefinder)1783    - [30.6. `runpy` – Поиск и выполнение модулей Python](https://python-all.ru/2.6/library/runpy.html)1784  - [31. Языковые средства Python](https://python-all.ru/2.6/library/language.html)17851786    - [31.1. `parser` – Доступ к деревьям разбора Python](https://python-all.ru/2.6/library/parser.html)17871788      - [31.1.1. Создание объектов ST](https://python-all.ru/2.6/library/parser.html#creating-st-objects)1789      - [31.1.2. Преобразование объектов ST](https://python-all.ru/2.6/library/parser.html#converting-st-objects)1790      - [31.1.3. Запросы к объектам ST](https://python-all.ru/2.6/library/parser.html#queries-on-st-objects)1791      - [31.1.4. Исключения и обработка ошибок](https://python-all.ru/2.6/library/parser.html#exceptions-and-error-handling)1792      - [31.1.5. Объекты ST](https://python-all.ru/2.6/library/parser.html#st-objects)1793      - [31.1.6. Примеры](https://python-all.ru/2.6/library/parser.html#examples)17941795        - [31.1.6.1. Эмуляция `compile()`](https://python-all.ru/2.6/library/parser.html#emulation-of-compile)1796        - [31.1.6.2. Обнаружение информации](https://python-all.ru/2.6/library/parser.html#information-discovery)1797    - [31.2. Абстрактные синтаксические деревья](https://python-all.ru/2.6/library/ast.html)17981799      - [31.2.1. Классы узлов](https://python-all.ru/2.6/library/ast.html#node-classes)1800      - [31.2.2. Абстрактная грамматика](https://python-all.ru/2.6/library/ast.html#abstract-grammar)1801      - [31.2.3. `ast` Вспомогательные функции](https://python-all.ru/2.6/library/ast.html#ast-helpers)1802    - [31.3. `symtable` – Доступ к таблицам символов компилятора](https://python-all.ru/2.6/library/symtable.html)18031804      - [31.3.1. Генерация таблиц символов](https://python-all.ru/2.6/library/symtable.html#generating-symbol-tables)1805      - [31.3.2. Изучение таблиц символов](https://python-all.ru/2.6/library/symtable.html#examining-symbol-tables)1806    - [31.4. `symbol` – Константы, используемые с деревьями разбора Python](https://python-all.ru/2.6/library/symbol.html)1807    - [31.5. `token` – Константы, используемые с деревьями разбора Python](https://python-all.ru/2.6/library/token.html)1808    - [31.6. `keyword` – Проверка ключевых слов Python](https://python-all.ru/2.6/library/keyword.html)1809    - [31.7. `tokenize` – Токенизатор исходного кода Python](https://python-all.ru/2.6/library/tokenize.html)1810    - [31.8. `tabnanny` – Обнаружение неоднозначных отступов](https://python-all.ru/2.6/library/tabnanny.html)1811    - [31.9. `pyclbr` – Поддержка просмотра классов Python](https://python-all.ru/2.6/library/pyclbr.html)18121813      - [31.9.1. Объекты классов](https://python-all.ru/2.6/library/pyclbr.html#class-objects)1814      - [31.9.2. Объекты функций](https://python-all.ru/2.6/library/pyclbr.html#function-objects)1815    - [31.10. `py_compile` – Компиляция исходных файлов Python](https://python-all.ru/2.6/library/py_compile.html)1816    - [31.11. `compileall` – Байт-компиляция библиотек Python](https://python-all.ru/2.6/library/compileall.html)1817    - [31.12. `dis` – Дизассемблер для байт-кода Python](https://python-all.ru/2.6/library/dis.html)18181819      - [31.12.1. Инструкции байт-кода Python](https://python-all.ru/2.6/library/dis.html#python-bytecode-instructions)1820    - [31.13. `pickletools` – Инструменты для разработчиков pickle](https://python-all.ru/2.6/library/pickletools.html)1821  - [32. Пакет компилятора Python](https://python-all.ru/2.6/library/compiler.html)18221823    - [32.1. Базовый интерфейс](https://python-all.ru/2.6/library/compiler.html#module-compiler)1824    - [32.2. Ограничения](https://python-all.ru/2.6/library/compiler.html#limitations)1825    - [32.3. Абстрактный синтаксис Python](https://python-all.ru/2.6/library/compiler.html#python-abstract-syntax)18261827      - [32.3.1. Узлы AST](https://python-all.ru/2.6/library/compiler.html#module-compiler.ast)1828      - [32.3.2. Узлы присваивания](https://python-all.ru/2.6/library/compiler.html#assignment-nodes)1829      - [32.3.3. Примеры](https://python-all.ru/2.6/library/compiler.html#examples)1830    - [32.4. Использование обходчиков для обхода AST](https://python-all.ru/2.6/library/compiler.html#module-compiler.visitor)1831    - [32.5. Генерация байт-кода](https://python-all.ru/2.6/library/compiler.html#bytecode-generation)1832  - [33. Прочие службы](https://python-all.ru/2.6/library/misc.html)18331834    - [33.1. `formatter` – Общее форматирование вывода](https://python-all.ru/2.6/library/formatter.html)18351836      - [33.1.1. Интерфейс форматировщика](https://python-all.ru/2.6/library/formatter.html#the-formatter-interface)1837      - [33.1.2. Реализации форматировщиков](https://python-all.ru/2.6/library/formatter.html#formatter-implementations)1838      - [33.1.3. Интерфейс записи](https://python-all.ru/2.6/library/formatter.html#the-writer-interface)1839      - [33.1.4. Реализации записывающих объектов](https://python-all.ru/2.6/library/formatter.html#writer-implementations)1840  - [34. Службы для MS Windows](https://python-all.ru/2.6/library/windows.html)18411842    - [34.1. `msilib` – Чтение и запись файлов Microsoft Installer](https://python-all.ru/2.6/library/msilib.html)18431844      - [34.1.1. Объекты базы данных](https://python-all.ru/2.6/library/msilib.html#database-objects)1845      - [34.1.2. Объекты представлений](https://python-all.ru/2.6/library/msilib.html#view-objects)1846      - [34.1.3. Объекты сводной информации](https://python-all.ru/2.6/library/msilib.html#summary-information-objects)1847      - [34.1.4. Объекты записей](https://python-all.ru/2.6/library/msilib.html#record-objects)1848      - [34.1.5. Ошибки](https://python-all.ru/2.6/library/msilib.html#errors)1849      - [34.1.6. Объекты CAB](https://python-all.ru/2.6/library/msilib.html#cab-objects)1850      - [34.1.7. Объекты каталогов](https://python-all.ru/2.6/library/msilib.html#directory-objects)1851      - [34.1.8. Возможности](https://python-all.ru/2.6/library/msilib.html#features)1852      - [34.1.9. Классы GUI](https://python-all.ru/2.6/library/msilib.html#gui-classes)1853      - [34.1.10. Предварительно вычисленные таблицы](https://python-all.ru/2.6/library/msilib.html#precomputed-tables)1854    - [34.2. `msvcrt` – Полезные процедуры из среды выполнения MS VC++](https://python-all.ru/2.6/library/msvcrt.html)18551856      - [34.2.1. Операции с файлами](https://python-all.ru/2.6/library/msvcrt.html#file-operations)1857      - [34.2.2. Консольный ввод/вывод](https://python-all.ru/2.6/library/msvcrt.html#console-i-o)1858      - [34.2.3. Прочие функции](https://python-all.ru/2.6/library/msvcrt.html#other-functions)1859    - [34.3. `_winreg` – доступ к реестру Windows](https://python-all.ru/2.6/library/_winreg.html)18601861      - [34.3.1. Константы](https://python-all.ru/2.6/library/_winreg.html#constants)18621863        - [34.3.1.1. Константы HKEY\_\*](https://python-all.ru/2.6/library/_winreg.html#hkey-constants)1864        - [34.3.1.2. Права доступа](https://python-all.ru/2.6/library/_winreg.html#access-rights)18651866          - [34.3.1.2.1. Специфичные для 64-бит](https://python-all.ru/2.6/library/_winreg.html#bit-specific)1867        - [34.3.1.3. Типы значений](https://python-all.ru/2.6/library/_winreg.html#value-types)1868      - [34.3.2. Объекты дескрипторов реестра](https://python-all.ru/2.6/library/_winreg.html#registry-handle-objects)1869    - [34.4. `winsound` – Интерфейс воспроизведения звука для Windows](https://python-all.ru/2.6/library/winsound.html)1870  - [35. Специфичные для Unix службы](https://python-all.ru/2.6/library/unix.html)18711872    - [35.1. `posix` – Наиболее распространённые системные вызовы POSIX](https://python-all.ru/2.6/library/posix.html)18731874      - [35.1.1. Поддержка больших файлов](https://python-all.ru/2.6/library/posix.html#large-file-support)1875      - [35.1.2. Примечательные возможности модуля](https://python-all.ru/2.6/library/posix.html#notable-module-contents)1876    - [35.2. `pwd` – База данных паролей](https://python-all.ru/2.6/library/pwd.html)1877    - [35.3. `spwd` – База данных теневых паролей](https://python-all.ru/2.6/library/spwd.html)1878    - [35.4. `grp` – База данных групп](https://python-all.ru/2.6/library/grp.html)1879    - [35.5. `crypt` – Функция проверки паролей Unix](https://python-all.ru/2.6/library/crypt.html)1880    - [35.6. `dl` – вызов C-функций из разделяемых объектов](https://python-all.ru/2.6/library/dl.html)18811882      - [35.6.1. Объекты Dl](https://python-all.ru/2.6/library/dl.html#dl-objects)1883    - [35.7. `termios` – управление tty в стиле POSIX](https://python-all.ru/2.6/library/termios.html)18841885      - [35.7.1. Пример](https://python-all.ru/2.6/library/termios.html#example)1886    - [35.8. `tty` – функции управления терминалом](https://python-all.ru/2.6/library/tty.html)1887    - [35.9. `pty` – утилиты псевдотерминалов](https://python-all.ru/2.6/library/pty.html)1888    - [35.10. `fcntl` – системные вызовы `fcntl()` и `ioctl()`](https://python-all.ru/2.6/library/fcntl.html)1889    - [35.11. `pipes` – интерфейс к конвейерам командной оболочки](https://python-all.ru/2.6/library/pipes.html)18901891      - [35.11.1. Объекты шаблонов](https://python-all.ru/2.6/library/pipes.html#template-objects)1892    - [35.12. `posixfile` – файлоподобные объекты с поддержкой блокировок](https://python-all.ru/2.6/library/posixfile.html)1893    - [35.13. `resource` – информация об использовании ресурсов](https://python-all.ru/2.6/library/resource.html)18941895      - [35.13.1. Ограничения ресурсов](https://python-all.ru/2.6/library/resource.html#resource-limits)1896      - [35.13.2. Использование ресурсов](https://python-all.ru/2.6/library/resource.html#resource-usage)1897    - [35.14. `nis` – интерфейс к NIS (Yellow Pages) от Sun](https://python-all.ru/2.6/library/nis.html)1898    - [35.15. `syslog` – библиотечные функции syslog в Unix](https://python-all.ru/2.6/library/syslog.html)1899    - [35.16. `commands` – утилиты для запуска команд](https://python-all.ru/2.6/library/commands.html)1900  - [36. Специфичные для Mac OS X службы](https://python-all.ru/2.6/library/mac.html)19011902    - [36.1. `ic` – доступ к Internet Config в Mac OS X](https://python-all.ru/2.6/library/ic.html)19031904      - [36.1.1. Объекты IC](https://python-all.ru/2.6/library/ic.html#ic-objects)1905    - [36.2. `MacOS` – доступ к функциям интерпретатора Mac OS](https://python-all.ru/2.6/library/macos.html)1906    - [36.3. `macostools` – удобные процедуры для работы с файлами](https://python-all.ru/2.6/library/macostools.html)1907    - [36.4. `findertools` – интерфейс Apple Events **Finder**](https://python-all.ru/2.6/library/macostools.html#module-findertools)1908    - [36.5. `EasyDialogs` – базовые диалоги Macintosh](https://python-all.ru/2.6/library/easydialogs.html)19091910      - [36.5.1. Объекты ProgressBar](https://python-all.ru/2.6/library/easydialogs.html#progressbar-objects)1911    - [36.6. `FrameWork` – интерактивная платформа приложений](https://python-all.ru/2.6/library/framework.html)19121913      - [36.6.1. Объекты Application](https://python-all.ru/2.6/library/framework.html#application-objects)1914      - [36.6.2. Объекты Window](https://python-all.ru/2.6/library/framework.html#window-objects)1915      - [36.6.3. Объект ControlsWindow](https://python-all.ru/2.6/library/framework.html#controlswindow-object)1916      - [36.6.4. Объект ScrolledWindow](https://python-all.ru/2.6/library/framework.html#scrolledwindow-object)1917      - [36.6.5. Объекты DialogWindow](https://python-all.ru/2.6/library/framework.html#dialogwindow-objects)1918    - [36.7. `autoGIL` – обработка GIL в циклах событий](https://python-all.ru/2.6/library/autogil.html)1919    - [36.8. Модули Toolbox Mac OS](https://python-all.ru/2.6/library/carbon.html)19201921      - [36.8.1. `Carbon.AE` – Apple Events](https://python-all.ru/2.6/library/carbon.html#module-Carbon.AE)1922      - [36.8.2. `Carbon.AH` – Apple Help](https://python-all.ru/2.6/library/carbon.html#module-Carbon.AH)1923      - [36.8.3. `Carbon.App` – Appearance Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.App)1924      - [36.8.4. `Carbon.Appearance` – константы Appearance Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Appearance)1925      - [36.8.5. `Carbon.CF` – Core Foundation](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CF)1926      - [36.8.6. `Carbon.CG` – Core Graphics](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CG)1927      - [36.8.7. `Carbon.CarbonEvt` – Carbon Event Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CarbonEvt)1928      - [36.8.8. `Carbon.CarbonEvents` – константы Carbon Event Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CarbonEvents)1929      - [36.8.9. `Carbon.Cm` – Component Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Cm)1930      - [36.8.10. `Carbon.Components` – константы Component Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Components)1931      - [36.8.11. `Carbon.ControlAccessor` – аксессоры Control Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.ControlAccessor)1932      - [36.8.12. `Carbon.Controls` – константы Control Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Controls)1933      - [36.8.13. `Carbon.CoreFounation` – константы CoreFoundation](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CoreFounation)1934      - [36.8.14. `Carbon.CoreGraphics` – константы CoreGraphics](https://python-all.ru/2.6/library/carbon.html#module-Carbon.CoreGraphics)1935      - [36.8.15. `Carbon.Ctl` – Control Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Ctl)1936      - [36.8.16. `Carbon.Dialogs` – константы Dialog Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Dialogs)1937      - [36.8.17. `Carbon.Dlg` – Dialog Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Dlg)1938      - [36.8.18. `Carbon.Drag` – Drag and Drop Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Drag)1939      - [36.8.19. `Carbon.Dragconst` – константы Drag and Drop Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Dragconst)1940      - [36.8.20. `Carbon.Events` – константы Event Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Events)1941      - [36.8.21. `Carbon.Evt` – Event Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Evt)1942      - [36.8.22. `Carbon.File` – File Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.File)1943      - [36.8.23. `Carbon.Files` – константы File Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Files)1944      - [36.8.24. `Carbon.Fm` – Font Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Fm)1945      - [36.8.25. `Carbon.Folder` – Folder Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Folder)1946      - [36.8.26. `Carbon.Folders` – константы Folder Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Folders)1947      - [36.8.27. `Carbon.Fonts` – константы Font Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Fonts)1948      - [36.8.28. `Carbon.Help` – Help Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Help)1949      - [36.8.29. `Carbon.IBCarbon` – Carbon InterfaceBuilder](https://python-all.ru/2.6/library/carbon.html#module-Carbon.IBCarbon)1950      - [36.8.30. `Carbon.IBCarbonRuntime` – константы Carbon InterfaceBuilder](https://python-all.ru/2.6/library/carbon.html#module-Carbon.IBCarbonRuntime)1951      - [36.8.31. `Carbon.Icn` – Carbon Icon Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Icns)1952      - [36.8.32. `Carbon.Icons` – константы Carbon Icon Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Icons)1953      - [36.8.33. `Carbon.Launch` – Carbon Launch Services](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Launch)1954      - [36.8.34. `Carbon.LaunchServices` – константы Carbon Launch Services](https://python-all.ru/2.6/library/carbon.html#module-Carbon.LaunchServices)1955      - [36.8.35. `Carbon.List` – List Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.List)1956      - [36.8.36. `Carbon.Lists` – константы List Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Lists)1957      - [36.8.37. `Carbon.MacHelp` – константы Help Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.MacHelp)1958      - [36.8.38. `Carbon.MediaDescr` – Парсеры и генераторы дескрипторов Quicktime Media](https://python-all.ru/2.6/library/carbon.html#module-Carbon.MediaDescr)1959      - [36.8.39. `Carbon.Menu` – Menu Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Menu)1960      - [36.8.40. `Carbon.Menus` – константы Menu Manager](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Menus)1961      - [36.8.41. `Carbon.Mlte` – Многоязычный текстовый редактор](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Mlte)1962      - [36.8.42. `Carbon.OSA` – Carbon OSA Interface](https://python-all.ru/2.6/library/carbon.html#module-Carbon.OSA)1963      - [36.8.43. `Carbon.OSAconst` – константы Carbon OSA Interface](https://python-all.ru/2.6/library/carbon.html#module-Carbon.OSAconst)1964      - [36.8.44. `Carbon.QDOffscreen` – константы QuickDraw Offscreen](https://python-all.ru/2.6/library/carbon.html#module-Carbon.QDOffscreen)1965      - [36.8.45. `Carbon.Qd` – QuickDraw](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Qd)1966      - [36.8.46. `Carbon.Qdoffs` – QuickDraw Offscreen](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Qdoffs)1967      - [36.8.47. `Carbon.Qt` – QuickTime](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Qt)1968      - [36.8.48. `Carbon.QuickDraw` – константы QuickDraw](https://python-all.ru/2.6/library/carbon.html#module-Carbon.QuickDraw)1969      - [36.8.49. `Carbon.QuickTime` – константы QuickTime](https://python-all.ru/2.6/library/carbon.html#module-Carbon.QuickTime)1970      - [36.8.50. `Carbon.Res` – Resource Manager и Handles](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Res)1971      - [36.8.51. `Carbon.Resources` – константы Resource Manager и Handles](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Resources)1972      - [36.8.52. `Carbon.Scrap` – Менеджер фрагментов](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Scrap)1973      - [36.8.53. `Carbon.Snd` – Менеджер звука](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Snd)1974      - [36.8.54. `Carbon.Sound` – Константы менеджера звука](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Sound)1975      - [36.8.55. `Carbon.TE` – TextEdit](https://python-all.ru/2.6/library/carbon.html#module-Carbon.TE)1976      - [36.8.56. `Carbon.TextEdit` – Константы TextEdit](https://python-all.ru/2.6/library/carbon.html#module-Carbon.TextEdit)1977      - [36.8.57. `Carbon.Win` – Менеджер окон](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Win)1978      - [36.8.58. `Carbon.Windows` – Константы менеджера окон](https://python-all.ru/2.6/library/carbon.html#module-Carbon.Windows)1979    - [36.9. `ColorPicker` – Диалог выбора цвета](https://python-all.ru/2.6/library/colorpicker.html)1980  - [37. Модули MacPython OSA](https://python-all.ru/2.6/library/macosa.html)19811982    - [37.1. `gensuitemodule` – Генерация пакетов-заглушек OSA](https://python-all.ru/2.6/library/gensuitemodule.html)1983    - [37.2. `aetools` – Поддержка клиента OSA](https://python-all.ru/2.6/library/aetools.html)1984    - [37.3. `aepack` – Преобразование между переменными Python и контейнерами данных AppleEvent](https://python-all.ru/2.6/library/aepack.html)1985    - [37.4. `aetypes` – Объекты AppleEvent](https://python-all.ru/2.6/library/aetypes.html)1986    - [37.5. `MiniAEFrame` – Поддержка сервера Open Scripting Architecture](https://python-all.ru/2.6/library/miniaeframe.html)19871988      - [37.5.1. Объекты AEServer](https://python-all.ru/2.6/library/miniaeframe.html#aeserver-objects)1989  - [38. Специфические службы SGI IRIX](https://python-all.ru/2.6/library/sgi.html)19901991    - [38.1. `al` – Аудиофункции на SGI](https://python-all.ru/2.6/library/al.html)19921993      - [38.1.1. Объекты конфигурации](https://python-all.ru/2.6/library/al.html#configuration-objects)1994      - [38.1.2. Объекты портов](https://python-all.ru/2.6/library/al.html#port-objects)1995    - [38.2. `AL` – Константы, используемые с модулем `al`](https://python-all.ru/2.6/library/al.html#module-AL)1996    - [38.3. `cd` – Доступ к CD-ROM на системах SGI](https://python-all.ru/2.6/library/cd.html)19971998      - [38.3.1. Объекты проигрывателя](https://python-all.ru/2.6/library/cd.html#player-objects)1999      - [38.3.2. Объекты синтаксического анализатора](https://python-all.ru/2.6/library/cd.html#parser-objects)2000    - [38.4. `fl` – Библиотека FORMS для графических пользовательских интерфейсов](https://python-all.ru/2.6/library/fl.html)20012002      - [38.4.1. Функции, определённые в модуле `fl`](https://python-all.ru/2.6/library/fl.html#functions-defined-in-module-fl)2003      - [38.4.2. Объекты форм](https://python-all.ru/2.6/library/fl.html#form-objects)2004      - [38.4.3. Объекты FORMS](https://python-all.ru/2.6/library/fl.html#forms-objects)2005    - [38.5. `FL` – Константы, используемые с модулем `fl`](https://python-all.ru/2.6/library/fl.html#module-FL)2006    - [38.6. `flp` – Функции для загрузки сохранённых форм FORMS](https://python-all.ru/2.6/library/fl.html#module-flp)2007    - [38.7. `fm` – Интерфейс *менеджера шрифтов*](https://python-all.ru/2.6/library/fm.html)2008    - [38.8. `gl` – Интерфейс *графической библиотеки*](https://python-all.ru/2.6/library/gl.html)2009    - [38.9. `DEVICE` – Константы, используемые с модулем `gl`](https://python-all.ru/2.6/library/gl.html#module-DEVICE)2010    - [38.10. `GL` – Константы, используемые с модулем `gl`](https://python-all.ru/2.6/library/gl.html#module-GL)2011    - [38.11. `imgfile` – Поддержка файлов SGI imglib](https://python-all.ru/2.6/library/imgfile.html)2012    - [38.12. `jpeg` – Чтение и запись файлов JPEG](https://python-all.ru/2.6/library/jpeg.html)2013  - [39. Службы SunOS](https://python-all.ru/2.6/library/sun.html)20142015    - [39.1. `sunaudiodev` – Доступ к аудиооборудованию Sun](https://python-all.ru/2.6/library/sunaudio.html)20162017      - [39.1.1. Объекты аудиоустройств](https://python-all.ru/2.6/library/sunaudio.html#audio-device-objects)2018    - [39.2. `SUNAUDIODEV` – Константы, используемые с `sunaudiodev`](https://python-all.ru/2.6/library/sunaudio.html#module-SUNAUDIODEV)2019  - [40. Недокументированные модули](https://python-all.ru/2.6/library/undoc.html)20202021    - [40.1. Разные полезные утилиты](https://python-all.ru/2.6/library/undoc.html#miscellaneous-useful-utilities)2022    - [40.2. Платформозависимые модули](https://python-all.ru/2.6/library/undoc.html#platform-specific-modules)2023    - [40.3. Мультимедиа](https://python-all.ru/2.6/library/undoc.html#multimedia)2024    - [40.4. Недокументированные модули Mac OS](https://python-all.ru/2.6/library/undoc.html#undocumented-mac-os-modules)20252026      - [40.4.1. `applesingle` – Декодер AppleSingle](https://python-all.ru/2.6/library/undoc.html#module-applesingle)2027      - [40.4.2. `buildtools` – Вспомогательный модуль для BuildApplet и Friends](https://python-all.ru/2.6/library/undoc.html#module-buildtools)2028      - [40.4.3. `cfmfile` – Модуль ресурсов фрагментов кода](https://python-all.ru/2.6/library/undoc.html#module-cfmfile)2029      - [40.4.4. `icopen` – Замена Internet Config для `open()`](https://python-all.ru/2.6/library/undoc.html#module-icopen)2030      - [40.4.5. `macerrors` – Ошибки Mac OS](https://python-all.ru/2.6/library/undoc.html#module-macerrors)2031      - [40.4.6. `macresource` – Поиск ресурсов скриптов](https://python-all.ru/2.6/library/undoc.html#module-macresource)2032      - [40.4.7. `Nav` – Вызовы NavServices](https://python-all.ru/2.6/library/undoc.html#module-Nav)2033      - [40.4.8. `PixMapWrapper` – Обёртка для объектов PixMap](https://python-all.ru/2.6/library/undoc.html#module-PixMapWrapper)2034      - [40.4.9. `videoreader` – Чтение фильмов QuickTime](https://python-all.ru/2.6/library/undoc.html#module-videoreader)2035      - [40.4.10. `W` – Виджеты, построенные на `FrameWork`](https://python-all.ru/2.6/library/undoc.html#module-W)2036    - [40.5. Устаревшее](https://python-all.ru/2.6/library/undoc.html#obsolete)2037    - [40.6. Модули расширения для SGI](https://python-all.ru/2.6/library/undoc.html#sgi-specific-extension-modules)2038- [Расширение и встраивание интерпретатора Python](https://python-all.ru/2.6/extending/index.html)20392040  - [1. Расширение Python с помощью C или C++](https://python-all.ru/2.6/extending/extending.html)20412042    - [1.1. Простой пример](https://python-all.ru/2.6/extending/extending.html#a-simple-example)2043    - [1.2. Интермеццо: ошибки и исключения](https://python-all.ru/2.6/extending/extending.html#intermezzo-errors-and-exceptions)2044    - [1.3. Возвращение к примеру](https://python-all.ru/2.6/extending/extending.html#back-to-the-example)2045    - [1.4. Таблица методов модуля и функция инициализации](https://python-all.ru/2.6/extending/extending.html#the-module-s-method-table-and-initialization-function)2046    - [1.5. Компиляция и компоновка](https://python-all.ru/2.6/extending/extending.html#compilation-and-linkage)2047    - [1.6. Вызов функций Python из C](https://python-all.ru/2.6/extending/extending.html#calling-python-functions-from-c)2048    - [1.7. Извлечение параметров в функциях расширения](https://python-all.ru/2.6/extending/extending.html#extracting-parameters-in-extension-functions)2049    - [1.8. Именованные параметры для функций расширения](https://python-all.ru/2.6/extending/extending.html#keyword-parameters-for-extension-functions)2050    - [1.9. Построение произвольных значений](https://python-all.ru/2.6/extending/extending.html#building-arbitrary-values)2051    - [1.10. Счетчики ссылок](https://python-all.ru/2.6/extending/extending.html#reference-counts)20522053      - [1.10.1. Подсчёт ссылок в Python](https://python-all.ru/2.6/extending/extending.html#reference-counting-in-python)2054      - [1.10.2. Правила владения](https://python-all.ru/2.6/extending/extending.html#ownership-rules)2055      - [1.10.3. Тонкий лёд](https://python-all.ru/2.6/extending/extending.html#thin-ice)2056      - [1.10.4. Указатели NULL](https://python-all.ru/2.6/extending/extending.html#null-pointers)2057    - [1.11. Написание расширений на C++](https://python-all.ru/2.6/extending/extending.html#writing-extensions-in-c)2058    - [1.12. Предоставление C API для модуля расширения](https://python-all.ru/2.6/extending/extending.html#providing-a-c-api-for-an-extension-module)2059  - [2. Определение новых типов](https://python-all.ru/2.6/extending/newtypes.html)20602061    - [2.1. Основы](https://python-all.ru/2.6/extending/newtypes.html#the-basics)20622063      - [2.1.1. Добавление данных и методов в базовый пример](https://python-all.ru/2.6/extending/newtypes.html#adding-data-and-methods-to-the-basic-example)2064      - [2.1.2. Обеспечение более тонкого контроля над атрибутами данных](https://python-all.ru/2.6/extending/newtypes.html#providing-finer-control-over-data-attributes)2065      - [2.1.3. Поддержка циклической сборки мусора](https://python-all.ru/2.6/extending/newtypes.html#supporting-cyclic-garbage-collection)2066      - [2.1.4. Наследование от других типов](https://python-all.ru/2.6/extending/newtypes.html#subclassing-other-types)2067    - [2.2. Методы типов](https://python-all.ru/2.6/extending/newtypes.html#type-methods)20682069      - [2.2.1. Финализация и освобождение памяти](https://python-all.ru/2.6/extending/newtypes.html#finalization-and-de-allocation)2070      - [2.2.2. Представление объекта](https://python-all.ru/2.6/extending/newtypes.html#object-presentation)2071      - [2.2.3. Управление атрибутами](https://python-all.ru/2.6/extending/newtypes.html#attribute-management)20722073        - [2.2.3.1. Общее управление атрибутами](https://python-all.ru/2.6/extending/newtypes.html#generic-attribute-management)2074        - [2.2.3.2. Управление атрибутами, специфичными для типа](https://python-all.ru/2.6/extending/newtypes.html#type-specific-attribute-management)2075      - [2.2.4. Сравнение объектов](https://python-all.ru/2.6/extending/newtypes.html#object-comparison)2076      - [2.2.5. Поддержка абстрактных протоколов](https://python-all.ru/2.6/extending/newtypes.html#abstract-protocol-support)2077      - [2.2.6. Поддержка слабых ссылок](https://python-all.ru/2.6/extending/newtypes.html#weak-reference-support)2078      - [2.2.7. Дополнительные рекомендации](https://python-all.ru/2.6/extending/newtypes.html#more-suggestions)2079  - [3. Сборка расширений на C и C++ с помощью distutils](https://python-all.ru/2.6/extending/building.html)20802081    - [3.1. Распространение модулей расширения](https://python-all.ru/2.6/extending/building.html#distributing-your-extension-modules)2082  - [4. Сборка расширений C и C++ в Windows](https://python-all.ru/2.6/extending/windows.html)20832084    - [4.1. Подход «Кулинарная книга»](https://python-all.ru/2.6/extending/windows.html#a-cookbook-approach)2085    - [4.2. Различия между Unix и Windows](https://python-all.ru/2.6/extending/windows.html#differences-between-unix-and-windows)2086    - [4.3. Использование DLL на практике](https://python-all.ru/2.6/extending/windows.html#using-dlls-in-practice)2087  - [5. Встраивание Python в другое приложение](https://python-all.ru/2.6/extending/embedding.html)20882089    - [5.1. Встраивание на очень высоком уровне](https://python-all.ru/2.6/extending/embedding.html#very-high-level-embedding)2090    - [5.2. За пределами встраивания на очень высоком уровне: обзор](https://python-all.ru/2.6/extending/embedding.html#beyond-very-high-level-embedding-an-overview)2091    - [5.3. Чистое встраивание](https://python-all.ru/2.6/extending/embedding.html#pure-embedding)2092    - [5.4. Расширение встроенного Python](https://python-all.ru/2.6/extending/embedding.html#extending-embedded-python)2093    - [5.5. Встраивание Python в C++](https://python-all.ru/2.6/extending/embedding.html#embedding-python-in-c)2094    - [5.6. Требования к компоновке](https://python-all.ru/2.6/extending/embedding.html#linking-requirements)2095- [Справочное руководство по Python/C API](https://python-all.ru/2.6/c-api/index.html)20962097  - [Введение](https://python-all.ru/2.6/c-api/intro.html)20982099    - [Заголовочные файлы](https://python-all.ru/2.6/c-api/intro.html#include-files)2100    - [Объекты, типы и счетчики ссылок](https://python-all.ru/2.6/c-api/intro.html#objects-types-and-reference-counts)21012102      - [Счётчики ссылок](https://python-all.ru/2.6/c-api/intro.html#reference-counts)21032104        - [Подробности подсчёта ссылок](https://python-all.ru/2.6/c-api/intro.html#reference-count-details)2105      - [Типы](https://python-all.ru/2.6/c-api/intro.html#types)2106    - [Исключения](https://python-all.ru/2.6/c-api/intro.html#exceptions)2107    - [Встраивание Python](https://python-all.ru/2.6/c-api/intro.html#embedding-python)2108    - [Отладочные сборки](https://python-all.ru/2.6/c-api/intro.html#debugging-builds)2109  - [Очень высокоуровневый слой](https://python-all.ru/2.6/c-api/veryhigh.html)2110  - [Подсчёт ссылок](https://python-all.ru/2.6/c-api/refcounting.html)2111  - [Обработка исключений](https://python-all.ru/2.6/c-api/exceptions.html)21122113    - [Управление рекурсией](https://python-all.ru/2.6/c-api/exceptions.html#recursion-control)2114    - [Стандартные исключения](https://python-all.ru/2.6/c-api/exceptions.html#standard-exceptions)2115    - [Устаревание строковых исключений](https://python-all.ru/2.6/c-api/exceptions.html#deprecation-of-string-exceptions)2116  - [Утилиты](https://python-all.ru/2.6/c-api/utilities.html)21172118    - [Утилиты операционной системы](https://python-all.ru/2.6/c-api/sys.html)2119    - [Системные функции](https://python-all.ru/2.6/c-api/sys.html#system-functions)2120    - [Управление процессами](https://python-all.ru/2.6/c-api/sys.html#process-control)2121    - [Импорт модулей](https://python-all.ru/2.6/c-api/import.html)2122    - [Поддержка маршалинга данных](https://python-all.ru/2.6/c-api/marshal.html)2123    - [Разбор аргументов и сборка значений](https://python-all.ru/2.6/c-api/arg.html)2124    - [Преобразование и форматирование строк](https://python-all.ru/2.6/c-api/conversion.html)2125    - [Рефлексия](https://python-all.ru/2.6/c-api/reflection.html)2126  - [Слой абстрактных объектов](https://python-all.ru/2.6/c-api/abstract.html)21272128    - [Протокол объекта](https://python-all.ru/2.6/c-api/object.html)2129    - [Протокол чисел](https://python-all.ru/2.6/c-api/number.html)2130    - [Протокол последовательностей](https://python-all.ru/2.6/c-api/sequence.html)2131    - [Протокол отображений](https://python-all.ru/2.6/c-api/mapping.html)2132    - [Протокол итератора](https://python-all.ru/2.6/c-api/iter.html)2133    - [Старый буферный протокол](https://python-all.ru/2.6/c-api/objbuffer.html)2134  - [Слой конкретных объектов](https://python-all.ru/2.6/c-api/concrete.html)21352136    - [Базовые объекты](https://python-all.ru/2.6/c-api/concrete.html#fundamental-objects)21372138      - [Объекты типов](https://python-all.ru/2.6/c-api/type.html)2139      - [Объект None](https://python-all.ru/2.6/c-api/none.html)2140    - [Числовые объекты](https://python-all.ru/2.6/c-api/concrete.html#numeric-objects)21412142      - [Объекты обычных целых чисел](https://python-all.ru/2.6/c-api/int.html)2143      - [Объекты логических значений](https://python-all.ru/2.6/c-api/bool.html)2144      - [Объекты длинных целых чисел](https://python-all.ru/2.6/c-api/long.html)2145      - [Объекты чисел с плавающей запятой](https://python-all.ru/2.6/c-api/float.html)2146      - [Объекты комплексных чисел](https://python-all.ru/2.6/c-api/complex.html)21472148        - [Комплексные числа как структуры C](https://python-all.ru/2.6/c-api/complex.html#complex-numbers-as-c-structures)2149        - [Комплексные числа как объекты Python](https://python-all.ru/2.6/c-api/complex.html#complex-numbers-as-python-objects)2150    - [Объекты последовательностей](https://python-all.ru/2.6/c-api/concrete.html#sequence-objects)21512152      - [Объекты массива байтов](https://python-all.ru/2.6/c-api/bytearray.html)21532154        - [Макросы проверки типа](https://python-all.ru/2.6/c-api/bytearray.html#type-check-macros)2155        - [Функции прямого API](https://python-all.ru/2.6/c-api/bytearray.html#direct-api-functions)2156        - [Макросы](https://python-all.ru/2.6/c-api/bytearray.html#macros)2157      - [Объекты строк и байтов](https://python-all.ru/2.6/c-api/string.html)2158      - [Объекты Unicode и кодеки](https://python-all.ru/2.6/c-api/unicode.html)21592160        - [Объекты Unicode](https://python-all.ru/2.6/c-api/unicode.html#unicode-objects)21612162          - [Тип Юникода](https://python-all.ru/2.6/c-api/unicode.html#unicode-type)2163          - [Свойства символов Юникода](https://python-all.ru/2.6/c-api/unicode.html#unicode-character-properties)2164          - [Простой Py\_UNICODE](https://python-all.ru/2.6/c-api/unicode.html#plain-py-unicode)2165          - [Поддержка wchar\_t](https://python-all.ru/2.6/c-api/unicode.html#wchar-t-support)2166        - [Встроенные кодеки](https://python-all.ru/2.6/c-api/unicode.html#built-in-codecs)21672168          - [Общие кодеки](https://python-all.ru/2.6/c-api/unicode.html#generic-codecs)2169          - [Кодеки UTF-8](https://python-all.ru/2.6/c-api/unicode.html#utf-8-codecs)2170          - [Кодеки UTF-32](https://python-all.ru/2.6/c-api/unicode.html#utf-32-codecs)2171          - [Кодеки UTF-16](https://python-all.ru/2.6/c-api/unicode.html#utf-16-codecs)2172          - [Кодеки UTF-7](https://python-all.ru/2.6/c-api/unicode.html#utf-7-codecs)2173          - [Кодеки Unicode-Escape](https://python-all.ru/2.6/c-api/unicode.html#unicode-escape-codecs)2174          - [Кодеки Raw-Unicode-Escape](https://python-all.ru/2.6/c-api/unicode.html#raw-unicode-escape-codecs)2175          - [Кодеки Latin-1](https://python-all.ru/2.6/c-api/unicode.html#latin-1-codecs)2176          - [Кодеки ASCII](https://python-all.ru/2.6/c-api/unicode.html#ascii-codecs)2177          - [Кодеки символьной карты](https://python-all.ru/2.6/c-api/unicode.html#character-map-codecs)2178          - [Кодеки MBCS для Windows](https://python-all.ru/2.6/c-api/unicode.html#mbcs-codecs-for-windows)2179          - [Методы и слоты](https://python-all.ru/2.6/c-api/unicode.html#methods-slots)2180        - [Методы и слот-функции](https://python-all.ru/2.6/c-api/unicode.html#methods-and-slot-functions)2181      - [Буферные объекты](https://python-all.ru/2.6/c-api/buffer.html)21822183        - [Структура Py\_buffer нового стиля](https://python-all.ru/2.6/c-api/buffer.html#the-new-style-py-buffer-struct)2184        - [Функции для работы с буферами](https://python-all.ru/2.6/c-api/buffer.html#buffer-related-functions)2185        - [Буферные объекты старого стиля](https://python-all.ru/2.6/c-api/buffer.html#old-style-buffer-objects)2186      - [Кортежи](https://python-all.ru/2.6/c-api/tuple.html)2187      - [Списки](https://python-all.ru/2.6/c-api/list.html)2188    - [Объекты-отображения](https://python-all.ru/2.6/c-api/concrete.html#mapping-objects)21892190      - [Объекты словарей](https://python-all.ru/2.6/c-api/dict.html)2191    - [Прочие объекты](https://python-all.ru/2.6/c-api/concrete.html#other-objects)21922193      - [Объекты классов и экземпляров](https://python-all.ru/2.6/c-api/class.html)2194      - [Объекты функций](https://python-all.ru/2.6/c-api/function.html)2195      - [Объекты методов](https://python-all.ru/2.6/c-api/method.html)2196      - [Объекты файлов](https://python-all.ru/2.6/c-api/file.html)2197      - [Объекты модулей](https://python-all.ru/2.6/c-api/module.html)2198      - [Объекты итераторов](https://python-all.ru/2.6/c-api/iterator.html)2199      - [Объекты дескрипторов](https://python-all.ru/2.6/c-api/descriptor.html)2200      - [Объекты срезов](https://python-all.ru/2.6/c-api/slice.html)2201      - [Объекты слабых ссылок](https://python-all.ru/2.6/c-api/weakref.html)2202      - [CObjects](https://python-all.ru/2.6/c-api/cobject.html)2203      - [Объекты ячеек](https://python-all.ru/2.6/c-api/cell.html)2204      - [Объекты-генераторы](https://python-all.ru/2.6/c-api/gen.html)2205      - [Объекты datetime](https://python-all.ru/2.6/c-api/datetime.html)2206      - [Множества](https://python-all.ru/2.6/c-api/set.html)2207  - [Инициализация, финализация и потоки](https://python-all.ru/2.6/c-api/init.html)22082209    - [Состояние потока и глобальная блокировка интерпретатора](https://python-all.ru/2.6/c-api/init.html#thread-state-and-the-global-interpreter-lock)2210    - [Профилирование и трассировка](https://python-all.ru/2.6/c-api/init.html#profiling-and-tracing)2211    - [Расширенная поддержка отладчика](https://python-all.ru/2.6/c-api/init.html#advanced-debugger-support)2212  - [Управление памятью](https://python-all.ru/2.6/c-api/memory.html)22132214    - [Обзор](https://python-all.ru/2.6/c-api/memory.html#overview)2215    - [Интерфейс памяти](https://python-all.ru/2.6/c-api/memory.html#memory-interface)2216    - [Примеры](https://python-all.ru/2.6/c-api/memory.html#examples)2217  - [Поддержка реализации объектов](https://python-all.ru/2.6/c-api/objimpl.html)22182219    - [Выделение объектов в куче](https://python-all.ru/2.6/c-api/allocation.html)2220    - [Общие структуры объектов](https://python-all.ru/2.6/c-api/structures.html)2221    - [Объекты типов](https://python-all.ru/2.6/c-api/typeobj.html)2222    - [Структуры числовых объектов](https://python-all.ru/2.6/c-api/typeobj.html#number-object-structures)2223    - [Структуры объектов отображений](https://python-all.ru/2.6/c-api/typeobj.html#mapping-object-structures)2224    - [Структуры объектов последовательностей](https://python-all.ru/2.6/c-api/typeobj.html#sequence-object-structures)2225    - [Структуры буферных объектов](https://python-all.ru/2.6/c-api/typeobj.html#buffer-object-structures)2226    - [Поддержка циклической сборки мусора](https://python-all.ru/2.6/c-api/gcsupport.html)2227- [Распространение модулей Python](https://python-all.ru/2.6/distutils/index.html)22282229  - [1. Введение в Distutils](https://python-all.ru/2.6/distutils/introduction.html)22302231    - [1.1. Понятия и терминология](https://python-all.ru/2.6/distutils/introduction.html#concepts-terminology)2232    - [1.2. Простой пример](https://python-all.ru/2.6/distutils/introduction.html#a-simple-example)2233    - [1.3. Общая терминология Python](https://python-all.ru/2.6/distutils/introduction.html#general-python-terminology)2234    - [1.4. Терминология Distutils](https://python-all.ru/2.6/distutils/introduction.html#distutils-specific-terminology)2235  - [2. Написание скрипта установки](https://python-all.ru/2.6/distutils/setupscript.html)22362237    - [2.1. Перечисление целых пакетов](https://python-all.ru/2.6/distutils/setupscript.html#listing-whole-packages)2238    - [2.2. Перечисление отдельных модулей](https://python-all.ru/2.6/distutils/setupscript.html#listing-individual-modules)2239    - [2.3. Описание модулей расширения](https://python-all.ru/2.6/distutils/setupscript.html#describing-extension-modules)22402241      - [2.3.1. Имена расширений и пакеты](https://python-all.ru/2.6/distutils/setupscript.html#extension-names-and-packages)2242      - [2.3.2. Исходные файлы расширений](https://python-all.ru/2.6/distutils/setupscript.html#extension-source-files)2243      - [2.3.3. Опции препроцессора](https://python-all.ru/2.6/distutils/setupscript.html#preprocessor-options)2244      - [2.3.4. Опции библиотек](https://python-all.ru/2.6/distutils/setupscript.html#library-options)2245      - [2.3.5. Другие опции](https://python-all.ru/2.6/distutils/setupscript.html#other-options)2246    - [2.4. Связи между дистрибутивами и пакетами](https://python-all.ru/2.6/distutils/setupscript.html#relationships-between-distributions-and-packages)2247    - [2.5. Установка скриптов](https://python-all.ru/2.6/distutils/setupscript.html#installing-scripts)2248    - [2.6. Установка данных пакета](https://python-all.ru/2.6/distutils/setupscript.html#installing-package-data)2249    - [2.7. Установка дополнительных файлов](https://python-all.ru/2.6/distutils/setupscript.html#installing-additional-files)2250    - [2.8. Дополнительные метаданные](https://python-all.ru/2.6/distutils/setupscript.html#additional-meta-data)2251    - [2.9. Отладка скрипта установки](https://python-all.ru/2.6/distutils/setupscript.html#debugging-the-setup-script)2252  - [3. Написание файла конфигурации установки](https://python-all.ru/2.6/distutils/configfile.html)2253  - [4. Создание исходного дистрибутива](https://python-all.ru/2.6/distutils/sourcedist.html)22542255    - [4.1. Указание файлов для распространения](https://python-all.ru/2.6/distutils/sourcedist.html#specifying-the-files-to-distribute)2256    - [4.2. Опции, связанные с манифестом](https://python-all.ru/2.6/distutils/sourcedist.html#manifest-related-options)2257  - [5. Создание готовых дистрибутивов](https://python-all.ru/2.6/distutils/builtdist.html)22582259    - [5.1. Создание dumb-сборок](https://python-all.ru/2.6/distutils/builtdist.html#creating-dumb-built-distributions)2260    - [5.2. Создание RPM-пакетов](https://python-all.ru/2.6/distutils/builtdist.html#creating-rpm-packages)2261    - [5.3. Создание установщиков для Windows](https://python-all.ru/2.6/distutils/builtdist.html#creating-windows-installers)2262    - [5.4. Кросс-компиляция в Windows](https://python-all.ru/2.6/distutils/builtdist.html#cross-compiling-on-windows)22632264      - [5.4.1. Постинсталляционный скрипт](https://python-all.ru/2.6/distutils/builtdist.html#the-postinstallation-script)2265    - [5.5. Контроль учётных записей (UAC) в Windows Vista](https://python-all.ru/2.6/distutils/builtdist.html#vista-user-access-control-uac)2266  - [6. Регистрация в индексе пакетов](https://python-all.ru/2.6/distutils/packageindex.html)22672268    - [6.1. Файл .pypirc](https://python-all.ru/2.6/distutils/packageindex.html#the-pypirc-file)2269  - [7. Загрузка пакетов в индекс пакетов](https://python-all.ru/2.6/distutils/uploading.html)2270  - [8. Примеры](https://python-all.ru/2.6/distutils/examples.html)22712272    - [8.1. Чисто Python-дистрибутив (по модулям)](https://python-all.ru/2.6/distutils/examples.html#pure-python-distribution-by-module)2273    - [8.2. Чисто Python-дистрибутив (по пакетам)](https://python-all.ru/2.6/distutils/examples.html#pure-python-distribution-by-package)2274    - [8.3. Один модуль расширения](https://python-all.ru/2.6/distutils/examples.html#single-extension-module)2275  - [9. Расширение Distutils](https://python-all.ru/2.6/distutils/extending.html)22762277    - [9.1. Интеграция новых команд](https://python-all.ru/2.6/distutils/extending.html#integrating-new-commands)2278    - [9.2. Добавление новых типов дистрибутивов](https://python-all.ru/2.6/distutils/extending.html#adding-new-distribution-types)2279  - [10. Справочник команд](https://python-all.ru/2.6/distutils/commandref.html)22802281    - [10.1. Установка модулей: семейство команд **install**](https://python-all.ru/2.6/distutils/commandref.html#installing-modules-the-install-command-family)22822283      - [10.1.1. **install\_data**](https://python-all.ru/2.6/distutils/commandref.html#install-data)2284      - [10.1.2. **install\_scripts**](https://python-all.ru/2.6/distutils/commandref.html#install-scripts)2285    - [10.2. Создание исходного дистрибутива: команда **sdist**](https://python-all.ru/2.6/distutils/commandref.html#creating-a-source-distribution-the-sdist-command)2286  - [11. Справочник по API](https://python-all.ru/2.6/distutils/apiref.html)22872288    - [11.1. `distutils.core` – Основные возможности Distutils](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.core)2289    - [11.2. `distutils.ccompiler` – Базовый класс CCompiler](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.ccompiler)2290    - [11.3. `distutils.unixccompiler` – Компилятор C для Unix](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.unixccompiler)2291    - [11.4. `distutils.msvccompiler` – Компилятор Microsoft](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.msvccompiler)2292    - [11.5. `distutils.bcppcompiler` – Компилятор Borland](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.bcppcompiler)2293    - [11.6. `distutils.cygwincompiler` – Компилятор Cygwin](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.cygwinccompiler)2294    - [11.7. `distutils.emxccompiler` – Компилятор OS/2 EMX](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.emxccompiler)2295    - [11.8. `distutils.mwerkscompiler` – Поддержка Metrowerks CodeWarrior](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.mwerkscompiler)2296    - [11.9. `distutils.archive_util` – Утилиты архивирования](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.archive_util)2297    - [11.10. `distutils.dep_util` – Проверка зависимостей](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.dep_util)2298    - [11.11. `distutils.dir_util` – Операции с деревом каталогов](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.dir_util)2299    - [11.12. `distutils.file_util` – Операции с отдельными файлами](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.file_util)2300    - [11.13. `distutils.util` – Прочие вспомогательные функции](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.util)2301    - [11.14. `distutils.dist` – Класс Distribution](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.dist)2302    - [11.15. `distutils.extension` – Класс Extension](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.extension)2303    - [11.16. `distutils.debug` – Режим отладки Distutils](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.debug)2304    - [11.17. `distutils.errors` – Исключения Distutils](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.errors)2305    - [11.18. `distutils.fancy_getopt` – Обёртка вокруг стандартного модуля getopt](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.fancy_getopt)2306    - [11.19. `distutils.filelist` – Класс FileList](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.filelist)2307    - [11.20. `distutils.log` – Простое логирование в стиле PEP 282](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.log)2308    - [11.21. `distutils.spawn` – Запуск подпроцесса](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.spawn)2309    - [11.22. `distutils.sysconfig` – Информация о системной конфигурации](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.sysconfig)2310    - [11.23. `distutils.text_file` – Класс TextFile](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.text_file)2311    - [11.24. `distutils.version` – Классы номеров версий](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.version)2312    - [11.25. `distutils.cmd` – Абстрактный базовый класс для команд Distutils](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.cmd)2313    - [11.26. `distutils.command` – Отдельные команды Distutils](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command)2314    - [11.27. `distutils.command.bdist` – Сборка бинарного установщика](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist)2315    - [11.28. `distutils.command.bdist_packager` – Абстрактный базовый класс для упаковщиков](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist_packager)2316    - [11.29. `distutils.command.bdist_dumb` – Сборка «dumb»-установщика](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist_dumb)2317    - [11.30. `distutils.command.bdist_msi` – Сборка бинарного пакета Microsoft Installer](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist_msi)2318    - [11.31. `distutils.command.bdist_rpm` – Сборка бинарного дистрибутива в виде RPM и SRPM для Red Hat](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist_rpm)2319    - [11.32. `distutils.command.bdist_wininst` – Сборка установщика для Windows](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.bdist_wininst)2320    - [11.33. `distutils.command.sdist` – Сборка дистрибутива исходного кода](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.sdist)2321    - [11.34. `distutils.command.build` – Сборка всех файлов пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.build)2322    - [11.35. `distutils.command.build_clib` – Сборка любых библиотек C в пакете](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.build_clib)2323    - [11.36. `distutils.command.build_ext` – Сборка любых расширений в пакете](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.build_ext)2324    - [11.37. `distutils.command.build_py` – Сборка .py/.pyc файлов пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.build_py)2325    - [11.38. `distutils.command.build_scripts` – Сборка скриптов пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.build_scripts)2326    - [11.39. `distutils.command.clean` – Очистка области сборки пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.clean)2327    - [11.40. `distutils.command.config` – Выполнение конфигурации пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.config)2328    - [11.41. `distutils.command.install` – Установка пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.install)2329    - [11.42. `distutils.command.install_data` – Установка файлов данных из пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.install_data)2330    - [11.43. `distutils.command.install_headers` – Установка заголовочных файлов C/C++ из пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.install_headers)2331    - [11.44. `distutils.command.install_lib` – Установка файлов библиотек из пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.install_lib)2332    - [11.45. `distutils.command.install_scripts` – Установка файлов скриптов из пакета](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.install_scripts)2333    - [11.46. `distutils.command.register` – Регистрация модуля в Python Package Index](https://python-all.ru/2.6/distutils/apiref.html#module-distutils.command.register)2334    - [11.47. Создание новой команды Distutils](https://python-all.ru/2.6/distutils/apiref.html#creating-a-new-distutils-command)2335- [Установка модулей Python](https://python-all.ru/2.6/install/index.html)23362337  - [Введение](https://python-all.ru/2.6/install/index.html#introduction)23382339    - [Идеальный случай: простая установка](https://python-all.ru/2.6/install/index.html#best-case-trivial-installation)2340    - [Новый стандарт: Distutils](https://python-all.ru/2.6/install/index.html#the-new-standard-distutils)2341  - [Стандартная сборка и установка](https://python-all.ru/2.6/install/index.html#standard-build-and-install)23422343    - [Различия платформ](https://python-all.ru/2.6/install/index.html#platform-variations)2344    - [Разделение задачи на части](https://python-all.ru/2.6/install/index.html#splitting-the-job-up)2345    - [Как работает сборка](https://python-all.ru/2.6/install/index.html#how-building-works)2346    - [Как работает установка](https://python-all.ru/2.6/install/index.html#how-installation-works)2347  - [Альтернативная установка](https://python-all.ru/2.6/install/index.html#alternate-installation)23482349    - [Альтернативная установка: домашняя схема](https://python-all.ru/2.6/install/index.html#alternate-installation-the-home-scheme)2350    - [Альтернативная установка: Unix (схема префикса)](https://python-all.ru/2.6/install/index.html#alternate-installation-unix-the-prefix-scheme)2351    - [Альтернативная установка: Windows (схема префикса)](https://python-all.ru/2.6/install/index.html#alternate-installation-windows-the-prefix-scheme)2352  - [Пользовательская установка](https://python-all.ru/2.6/install/index.html#custom-installation)23532354    - [Изменение пути поиска Python](https://python-all.ru/2.6/install/index.html#modifying-python-s-search-path)2355  - [Файлы конфигурации Distutils](https://python-all.ru/2.6/install/index.html#distutils-configuration-files)23562357    - [Расположение и имена файлов конфигурации](https://python-all.ru/2.6/install/index.html#location-and-names-of-config-files)2358    - [Синтаксис файлов конфигурации](https://python-all.ru/2.6/install/index.html#syntax-of-config-files)2359  - [Сборка расширений: советы и рекомендации](https://python-all.ru/2.6/install/index.html#building-extensions-tips-and-tricks)23602361    - [Настройка флагов компилятора/компоновщика](https://python-all.ru/2.6/install/index.html#tweaking-compiler-linker-flags)2362    - [Использование компиляторов, отличных от Microsoft, в Windows](https://python-all.ru/2.6/install/index.html#using-non-microsoft-compilers-on-windows)23632364      - [Borland/CodeGear C++](https://python-all.ru/2.6/install/index.html#borland-codegear-c)2365      - [GNU C / Cygwin / MinGW](https://python-all.ru/2.6/install/index.html#gnu-c-cygwin-mingw)2366- [Документирование Python](https://python-all.ru/2.6/documenting/index.html)23672368  - [1. Введение](https://python-all.ru/2.6/documenting/intro.html)2369  - [2. Руководство по стилю](https://python-all.ru/2.6/documenting/style.html)2370  - [3. Введение в reStructuredText](https://python-all.ru/2.6/documenting/rest.html)23712372    - [3.1. Абзацы](https://python-all.ru/2.6/documenting/rest.html#paragraphs)2373    - [3.2. Встроенная разметка](https://python-all.ru/2.6/documenting/rest.html#inline-markup)2374    - [3.3. Списки и цитаты](https://python-all.ru/2.6/documenting/rest.html#lists-and-quotes)2375    - [3.4. Исходный код](https://python-all.ru/2.6/documenting/rest.html#source-code)2376    - [3.5. Гиперссылки](https://python-all.ru/2.6/documenting/rest.html#hyperlinks)23772378      - [3.5.1. Внешние ссылки](https://python-all.ru/2.6/documenting/rest.html#external-links)2379      - [3.5.2. Внутренние ссылки](https://python-all.ru/2.6/documenting/rest.html#internal-links)2380    - [3.6. Разделы](https://python-all.ru/2.6/documenting/rest.html#sections)2381    - [3.7. Явная разметка](https://python-all.ru/2.6/documenting/rest.html#explicit-markup)2382    - [3.8. Директивы](https://python-all.ru/2.6/documenting/rest.html#directives)2383    - [3.9. Сноски](https://python-all.ru/2.6/documenting/rest.html#footnotes)2384    - [3.10. Комментарии](https://python-all.ru/2.6/documenting/rest.html#comments)2385    - [3.11. Кодировка исходного текста](https://python-all.ru/2.6/documenting/rest.html#source-encoding)2386    - [3.12. Подводные камни](https://python-all.ru/2.6/documenting/rest.html#gotchas)2387  - [4. Дополнительные конструкции разметки](https://python-all.ru/2.6/documenting/markup.html)23882389    - [4.1. Разметка мета-информации](https://python-all.ru/2.6/documenting/markup.html#meta-information-markup)2390    - [4.2. Разметка для модулей](https://python-all.ru/2.6/documenting/markup.html#module-specific-markup)2391    - [4.3. Информационные единицы](https://python-all.ru/2.6/documenting/markup.html#information-units)2392    - [4.4. Примеры кода](https://python-all.ru/2.6/documenting/markup.html#showing-code-examples)2393    - [4.5. Встроенная разметка](https://python-all.ru/2.6/documenting/markup.html#inline-markup)2394    - [4.6. Разметка перекрёстных ссылок](https://python-all.ru/2.6/documenting/markup.html#cross-linking-markup)2395    - [4.7. Разметка на уровне абзаца](https://python-all.ru/2.6/documenting/markup.html#paragraph-level-markup)2396    - [4.8. Разметка оглавления](https://python-all.ru/2.6/documenting/markup.html#table-of-contents-markup)2397    - [4.9. Разметка для генерации указателя](https://python-all.ru/2.6/documenting/markup.html#index-generating-markup)2398    - [4.10. Отображение грамматических правил](https://python-all.ru/2.6/documenting/markup.html#grammar-production-displays)2399    - [4.11. Подстановки](https://python-all.ru/2.6/documenting/markup.html#substitutions)2400  - [5. Отличия от разметки LaTeX](https://python-all.ru/2.6/documenting/fromlatex.html)24012402    - [5.1. Встроенная разметка](https://python-all.ru/2.6/documenting/fromlatex.html#inline-markup)2403    - [5.2. Информационные единицы](https://python-all.ru/2.6/documenting/fromlatex.html#information-units)2404    - [5.3. Структура](https://python-all.ru/2.6/documenting/fromlatex.html#structure)2405  - [6. Сборка документации](https://python-all.ru/2.6/documenting/building.html)24062407    - [6.1. Использование make](https://python-all.ru/2.6/documenting/building.html#using-make)2408    - [6.2. Без make](https://python-all.ru/2.6/documenting/building.html#without-make)2409- [Руководства Python HOWTO](https://python-all.ru/2.6/howto/index.html)24102411  - [HOWTO по продвижению Python](https://python-all.ru/2.6/howto/advocacy.html)24122413    - [Причины использовать Python](https://python-all.ru/2.6/howto/advocacy.html#reasons-to-use-python)24142415      - [Программируемость](https://python-all.ru/2.6/howto/advocacy.html#programmability)2416      - [Прототипирование](https://python-all.ru/2.6/howto/advocacy.html#prototyping)2417      - [Простота и лёгкость понимания](https://python-all.ru/2.6/howto/advocacy.html#simplicity-and-ease-of-understanding)2418      - [Интеграция с Java](https://python-all.ru/2.6/howto/advocacy.html#java-integration)2419    - [Аргументы и контраргументы](https://python-all.ru/2.6/howto/advocacy.html#arguments-and-rebuttals)2420    - [Полезные ресурсы](https://python-all.ru/2.6/howto/advocacy.html#useful-resources)2421  - [Перенос модулей расширения на версию 3.0](https://python-all.ru/2.6/howto/cporting.html)24222423    - [Условная компиляция](https://python-all.ru/2.6/howto/cporting.html#conditional-compilation)2424    - [Изменения в объектных API](https://python-all.ru/2.6/howto/cporting.html#changes-to-object-apis)24252426      - [Объединение str/unicode](https://python-all.ru/2.6/howto/cporting.html#str-unicode-unification)2427      - [Объединение long/int](https://python-all.ru/2.6/howto/cporting.html#long-int-unification)2428    - [Инициализация и состояние модулей](https://python-all.ru/2.6/howto/cporting.html#module-initialization-and-state)2429    - [Другие опции](https://python-all.ru/2.6/howto/cporting.html#other-options)2430  - [Программирование с curses на Python](https://python-all.ru/2.6/howto/curses.html)24312432    - [Что такое curses?](https://python-all.ru/2.6/howto/curses.html#what-is-curses)24332434      - [Модуль curses в Python](https://python-all.ru/2.6/howto/curses.html#the-python-curses-module)2435    - [Запуск и завершение приложения curses](https://python-all.ru/2.6/howto/curses.html#starting-and-ending-a-curses-application)2436    - [Окна и пады](https://python-all.ru/2.6/howto/curses.html#windows-and-pads)2437    - [Отображение текста](https://python-all.ru/2.6/howto/curses.html#displaying-text)24382439      - [Атрибуты и цвет](https://python-all.ru/2.6/howto/curses.html#attributes-and-color)2440    - [Ввод пользователя](https://python-all.ru/2.6/howto/curses.html#user-input)2441    - [Для получения дополнительных сведений](https://python-all.ru/2.6/howto/curses.html#for-more-information)2442  - [Руководство по дескрипторам](https://python-all.ru/2.6/howto/descriptor.html)24432444    - [Аннотация](https://python-all.ru/2.6/howto/descriptor.html#abstract)2445    - [Определение и введение](https://python-all.ru/2.6/howto/descriptor.html#definition-and-introduction)2446    - [Протокол дескрипторов](https://python-all.ru/2.6/howto/descriptor.html#descriptor-protocol)2447    - [Вызов дескрипторов](https://python-all.ru/2.6/howto/descriptor.html#invoking-descriptors)2448    - [Пример дескриптора](https://python-all.ru/2.6/howto/descriptor.html#descriptor-example)2449    - [Свойства](https://python-all.ru/2.6/howto/descriptor.html#properties)2450    - [Функции и методы](https://python-all.ru/2.6/howto/descriptor.html#functions-and-methods)2451    - [Статические методы и методы класса](https://python-all.ru/2.6/howto/descriptor.html#static-methods-and-class-methods)2452  - [Идиомы и анти-идиомы в Python](https://python-all.ru/2.6/howto/doanddont.html)24532454    - [Конструкции языка, которые не следует использовать](https://python-all.ru/2.6/howto/doanddont.html#language-constructs-you-should-not-use)24552456      - [from module import \*](https://python-all.ru/2.6/howto/doanddont.html#from-module-import)24572458        - [Внутри определений функций](https://python-all.ru/2.6/howto/doanddont.html#inside-function-definitions)2459        - [На уровне модуля](https://python-all.ru/2.6/howto/doanddont.html#at-module-level)2460        - [Когда это нормально](https://python-all.ru/2.6/howto/doanddont.html#when-it-is-just-fine)2461      - [Без украшений `exec`, `execfile()` и другие](https://python-all.ru/2.6/howto/doanddont.html#unadorned-exec-execfile-and-friends)2462      - [from module import name1, name2](https://python-all.ru/2.6/howto/doanddont.html#from-module-import-name1-name2)2463      - [except:](https://python-all.ru/2.6/howto/doanddont.html#except)2464    - [Исключения](https://python-all.ru/2.6/howto/doanddont.html#exceptions)2465    - [Использование батареек](https://python-all.ru/2.6/howto/doanddont.html#using-the-batteries)2466    - [Использование обратной косой черты для продолжения инструкций](https://python-all.ru/2.6/howto/doanddont.html#using-backslash-to-continue-statements)2467  - [HOWTO по функциональному программированию](https://python-all.ru/2.6/howto/functional.html)24682469    - [Введение](https://python-all.ru/2.6/howto/functional.html#introduction)24702471      - [Формальная доказуемость](https://python-all.ru/2.6/howto/functional.html#formal-provability)2472      - [Модульность](https://python-all.ru/2.6/howto/functional.html#modularity)2473      - [Простота отладки и тестирования](https://python-all.ru/2.6/howto/functional.html#ease-of-debugging-and-testing)2474      - [Композируемость](https://python-all.ru/2.6/howto/functional.html#composability)2475    - [Итераторы](https://python-all.ru/2.6/howto/functional.html#iterators)24762477      - [Типы данных, поддерживающие итераторы](https://python-all.ru/2.6/howto/functional.html#data-types-that-support-iterators)2478    - [Генераторные выражения и списковые включения](https://python-all.ru/2.6/howto/functional.html#generator-expressions-and-list-comprehensions)2479    - [Генераторы](https://python-all.ru/2.6/howto/functional.html#generators)24802481      - [Передача значений в генератор](https://python-all.ru/2.6/howto/functional.html#passing-values-into-a-generator)2482    - [Встроенные функции](https://python-all.ru/2.6/howto/functional.html#built-in-functions)2483    - [Небольшие функции и лямбда-выражение](https://python-all.ru/2.6/howto/functional.html#small-functions-and-the-lambda-expression)2484    - [Модуль itertools](https://python-all.ru/2.6/howto/functional.html#the-itertools-module)24852486      - [Создание новых итераторов](https://python-all.ru/2.6/howto/functional.html#creating-new-iterators)2487      - [Вызов функций для элементов](https://python-all.ru/2.6/howto/functional.html#calling-functions-on-elements)2488      - [Выбор элементов](https://python-all.ru/2.6/howto/functional.html#selecting-elements)2489      - [Группировка элементов](https://python-all.ru/2.6/howto/functional.html#grouping-elements)2490    - [Модуль functools](https://python-all.ru/2.6/howto/functional.html#the-functools-module)24912492      - [Модуль operator](https://python-all.ru/2.6/howto/functional.html#the-operator-module)2493      - [Модуль functional](https://python-all.ru/2.6/howto/functional.html#the-functional-module)2494    - [История изменений и благодарности](https://python-all.ru/2.6/howto/functional.html#revision-history-and-acknowledgements)2495    - [Ссылки](https://python-all.ru/2.6/howto/functional.html#references)24962497      - [Общие](https://python-all.ru/2.6/howto/functional.html#general)2498      - [Специфичное для Python](https://python-all.ru/2.6/howto/functional.html#python-specific)2499      - [Документация Python](https://python-all.ru/2.6/howto/functional.html#python-documentation)2500  - [HOWTO по регулярным выражениям](https://python-all.ru/2.6/howto/regex.html)25012502    - [Введение](https://python-all.ru/2.6/howto/regex.html#introduction)2503    - [Простые шаблоны](https://python-all.ru/2.6/howto/regex.html#simple-patterns)25042505      - [Сопоставление символов](https://python-all.ru/2.6/howto/regex.html#matching-characters)2506      - [Повторение](https://python-all.ru/2.6/howto/regex.html#repeating-things)2507    - [Использование регулярных выражений](https://python-all.ru/2.6/howto/regex.html#using-regular-expressions)25082509      - [Компиляция регулярных выражений](https://python-all.ru/2.6/howto/regex.html#compiling-regular-expressions)2510      - [Проблема обратной косой черты](https://python-all.ru/2.6/howto/regex.html#the-backslash-plague)2511      - [Выполнение сопоставлений](https://python-all.ru/2.6/howto/regex.html#performing-matches)2512      - [Функции уровня модуля](https://python-all.ru/2.6/howto/regex.html#module-level-functions)2513      - [Флаги компиляции](https://python-all.ru/2.6/howto/regex.html#compilation-flags)2514    - [Дополнительные возможности шаблонов](https://python-all.ru/2.6/howto/regex.html#more-pattern-power)25152516      - [Дополнительные метасимволы](https://python-all.ru/2.6/howto/regex.html#more-metacharacters)2517      - [Группировка](https://python-all.ru/2.6/howto/regex.html#grouping)2518      - [Незахватывающие и именованные группы](https://python-all.ru/2.6/howto/regex.html#non-capturing-and-named-groups)2519      - [Опережающие проверки](https://python-all.ru/2.6/howto/regex.html#lookahead-assertions)2520    - [Изменение строк](https://python-all.ru/2.6/howto/regex.html#modifying-strings)25212522      - [Разделение строк](https://python-all.ru/2.6/howto/regex.html#splitting-strings)2523      - [Поиск и замена](https://python-all.ru/2.6/howto/regex.html#search-and-replace)2524    - [Распространённые проблемы](https://python-all.ru/2.6/howto/regex.html#common-problems)25252526      - [Использование строковых методов](https://python-all.ru/2.6/howto/regex.html#use-string-methods)2527      - [match() и search()](https://python-all.ru/2.6/howto/regex.html#match-versus-search)2528      - [Жадные и нежадные квантификаторы](https://python-all.ru/2.6/howto/regex.html#greedy-versus-non-greedy)2529      - [Не используя re.VERBOSE](https://python-all.ru/2.6/howto/regex.html#not-using-re-verbose)2530    - [Обратная связь](https://python-all.ru/2.6/howto/regex.html#feedback)2531  - [Руководство по программированию сокетов](https://python-all.ru/2.6/howto/sockets.html)25322533    - [Сокеты](https://python-all.ru/2.6/howto/sockets.html#sockets)25342535      - [История](https://python-all.ru/2.6/howto/sockets.html#history)2536    - [Создание сокета](https://python-all.ru/2.6/howto/sockets.html#creating-a-socket)25372538      - [Межпроцессное взаимодействие](https://python-all.ru/2.6/howto/sockets.html#ipc)2539    - [Использование сокета](https://python-all.ru/2.6/howto/sockets.html#using-a-socket)25402541      - [Двоичные данные](https://python-all.ru/2.6/howto/sockets.html#binary-data)2542    - [Отключение](https://python-all.ru/2.6/howto/sockets.html#disconnecting)25432544      - [Когда сокеты завершают работу](https://python-all.ru/2.6/howto/sockets.html#when-sockets-die)2545    - [Неблокирующие сокеты](https://python-all.ru/2.6/howto/sockets.html#non-blocking-sockets)25462547      - [Производительность](https://python-all.ru/2.6/howto/sockets.html#performance)2548  - [Руководство по сортировке](https://python-all.ru/2.6/howto/sorting.html)25492550    - [Основы сортировки](https://python-all.ru/2.6/howto/sorting.html#sorting-basics)2551    - [Ключевые функции](https://python-all.ru/2.6/howto/sorting.html#key-functions)2552    - [Функции модуля operator](https://python-all.ru/2.6/howto/sorting.html#operator-module-functions)2553    - [По возрастанию и по убыванию](https://python-all.ru/2.6/howto/sorting.html#ascending-and-descending)2554    - [Стабильность сортировки и сложные сортировки](https://python-all.ru/2.6/howto/sorting.html#sort-stability-and-complex-sorts)2555    - [Старый способ: Decorate-Sort-Undecorate](https://python-all.ru/2.6/howto/sorting.html#the-old-way-using-decorate-sort-undecorate)2556    - [Старый способ: использование параметра *cmp*](https://python-all.ru/2.6/howto/sorting.html#the-old-way-using-the-cmp-parameter)2557    - [Разное](https://python-all.ru/2.6/howto/sorting.html#odd-and-ends)2558  - [Руководство по Unicode](https://python-all.ru/2.6/howto/unicode.html)25592560    - [Введение в Unicode](https://python-all.ru/2.6/howto/unicode.html#introduction-to-unicode)25612562      - [История кодов символов](https://python-all.ru/2.6/howto/unicode.html#history-of-character-codes)2563      - [Определения](https://python-all.ru/2.6/howto/unicode.html#definitions)2564      - [Кодировки](https://python-all.ru/2.6/howto/unicode.html#encodings)2565      - [Ссылки](https://python-all.ru/2.6/howto/unicode.html#references)2566    - [Поддержка Unicode в Python](https://python-all.ru/2.6/howto/unicode.html#python-s-unicode-support)25672568      - [Тип Unicode](https://python-all.ru/2.6/howto/unicode.html#the-unicode-type)2569      - [Unicode-литералы в исходном коде Python](https://python-all.ru/2.6/howto/unicode.html#unicode-literals-in-python-source-code)2570      - [Свойства Unicode](https://python-all.ru/2.6/howto/unicode.html#unicode-properties)2571      - [Ссылки](https://python-all.ru/2.6/howto/unicode.html#id1)2572    - [Чтение и запись данных Unicode](https://python-all.ru/2.6/howto/unicode.html#reading-and-writing-unicode-data)25732574      - [Имена файлов в Unicode](https://python-all.ru/2.6/howto/unicode.html#unicode-filenames)2575      - [Советы по написанию программ с поддержкой Unicode](https://python-all.ru/2.6/howto/unicode.html#tips-for-writing-unicode-aware-programs)2576      - [Ссылки](https://python-all.ru/2.6/howto/unicode.html#id2)2577    - [История изменений и благодарности](https://python-all.ru/2.6/howto/unicode.html#revision-history-and-acknowledgements)2578  - [Руководство по получению интернет-ресурсов с помощью urllib2](https://python-all.ru/2.6/howto/urllib2.html)25792580    - [Введение](https://python-all.ru/2.6/howto/urllib2.html#introduction)2581    - [Получение URL-адресов](https://python-all.ru/2.6/howto/urllib2.html#fetching-urls)25822583      - [Данные](https://python-all.ru/2.6/howto/urllib2.html#data)2584      - [Заголовки](https://python-all.ru/2.6/howto/urllib2.html#headers)2585    - [Обработка исключений](https://python-all.ru/2.6/howto/urllib2.html#handling-exceptions)25862587      - \<[URLError](https://python-all.ru/2.6/howto/urllib2.html#urlerror)\>2588      - [HTTPError](https://python-all.ru/2.6/howto/urllib2.html#httperror)25892590        - [Коды ошибок](https://python-all.ru/2.6/howto/urllib2.html#error-codes)2591      - [Заключение](https://python-all.ru/2.6/howto/urllib2.html#wrapping-it-up)25922593        - [Номер 1](https://python-all.ru/2.6/howto/urllib2.html#number-1)2594        - [Номер 2](https://python-all.ru/2.6/howto/urllib2.html#number-2)2595    - [info и geturl](https://python-all.ru/2.6/howto/urllib2.html#info-and-geturl)2596    - [Открыватели и обработчики](https://python-all.ru/2.6/howto/urllib2.html#openers-and-handlers)2597    - [Базовая аутентификация](https://python-all.ru/2.6/howto/urllib2.html#id6)2598    - [Прокси](https://python-all.ru/2.6/howto/urllib2.html#proxies)2599    - [Сокеты и слои](https://python-all.ru/2.6/howto/urllib2.html#sockets-and-layers)2600    - [Сноски](https://python-all.ru/2.6/howto/urllib2.html#footnotes)2601  - [HOWTO: использование Python в вебе](https://python-all.ru/2.6/howto/webservers.html)26022603    - [Низкоуровневое представление](https://python-all.ru/2.6/howto/webservers.html#the-low-level-view)26042605      - [Общий шлюзовый интерфейс](https://python-all.ru/2.6/howto/webservers.html#common-gateway-interface)26062607        - [Простой скрипт для тестирования CGI](https://python-all.ru/2.6/howto/webservers.html#simple-script-for-testing-cgi)2608        - [Настройка CGI на собственном сервере](https://python-all.ru/2.6/howto/webservers.html#setting-up-cgi-on-your-own-server)2609        - [Типичные проблемы CGI-скриптов](https://python-all.ru/2.6/howto/webservers.html#common-problems-with-cgi-scripts)2610      - [mod\_python](https://python-all.ru/2.6/howto/webservers.html#mod-python)2611      - [FastCGI и SCGI](https://python-all.ru/2.6/howto/webservers.html#fastcgi-and-scgi)26122613        - [Настройка FastCGI](https://python-all.ru/2.6/howto/webservers.html#setting-up-fastcgi)2614      - [mod\_wsgi](https://python-all.ru/2.6/howto/webservers.html#mod-wsgi)2615    - [Отступление: WSGI](https://python-all.ru/2.6/howto/webservers.html#step-back-wsgi)26162617      - [WSGI-серверы](https://python-all.ru/2.6/howto/webservers.html#wsgi-servers)2618      - [Пример: MoinMoin](https://python-all.ru/2.6/howto/webservers.html#case-study-moinmoin)2619    - [Модель-Представление-Контроллер](https://python-all.ru/2.6/howto/webservers.html#model-view-controller)2620    - [Составляющие веб-сайтов](https://python-all.ru/2.6/howto/webservers.html#ingredients-for-websites)26212622      - [Шаблоны](https://python-all.ru/2.6/howto/webservers.html#templates)2623      - [Постоянное хранение данных](https://python-all.ru/2.6/howto/webservers.html#data-persistence)2624    - [Фреймворки](https://python-all.ru/2.6/howto/webservers.html#frameworks)26252626      - [Некоторые известные фреймворки](https://python-all.ru/2.6/howto/webservers.html#some-notable-frameworks)26272628        - [Django](https://python-all.ru/2.6/howto/webservers.html#django)2629        - [TurboGears](https://python-all.ru/2.6/howto/webservers.html#turbogears)2630        - [Zope](https://python-all.ru/2.6/howto/webservers.html#zope)2631        - [Другие известные фреймворки](https://python-all.ru/2.6/howto/webservers.html#other-notable-frameworks)2632- [Часто задаваемые вопросы по Python](https://python-all.ru/2.6/faq/index.html)26332634  - [Общие вопросы по Python](https://python-all.ru/2.6/faq/general.html)26352636    - [Общая информация](https://python-all.ru/2.6/faq/general.html#general-information)2637    - [Python в реальном мире](https://python-all.ru/2.6/faq/general.html#python-in-the-real-world)2638    - [Обновление Python](https://python-all.ru/2.6/faq/general.html#upgrading-python)2639  - [Вопросы по программированию](https://python-all.ru/2.6/faq/programming.html)26402641    - [Общие вопросы](https://python-all.ru/2.6/faq/programming.html#general-questions)2642    - [Ядро языка](https://python-all.ru/2.6/faq/programming.html#core-language)2643    - [Числа и строки](https://python-all.ru/2.6/faq/programming.html#numbers-and-strings)2644    - [Последовательности (кортежи/списки)](https://python-all.ru/2.6/faq/programming.html#sequences-tuples-lists)2645    - [Словари](https://python-all.ru/2.6/faq/programming.html#dictionaries)2646    - [Объекты](https://python-all.ru/2.6/faq/programming.html#objects)2647    - [Модули](https://python-all.ru/2.6/faq/programming.html#modules)2648  - [Вопросы по дизайну и истории](https://python-all.ru/2.6/faq/design.html)26492650    - [Почему в Python для группировки инструкций используются отступы?](https://python-all.ru/2.6/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements)2651    - [Почему при простых арифметических операциях получаются странные результаты?](https://python-all.ru/2.6/faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations)2652    - [Почему вычисления с плавающей точкой такие неточные?](https://python-all.ru/2.6/faq/design.html#why-are-floating-point-calculations-so-inaccurate)2653    - [Почему строки в Python неизменяемы?](https://python-all.ru/2.6/faq/design.html#why-are-python-strings-immutable)2654    - [Почему self нужно явно указывать в определениях и вызовах методов?](https://python-all.ru/2.6/faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls)2655    - [Почему в выражении нельзя использовать присваивание?](https://python-all.ru/2.6/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression)2656    - [Почему в Python для одних возможностей используются методы (например, list.index()), а для других – функции (например, len(list))?](https://python-all.ru/2.6/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list)2657    - [Почему join() – метод строки, а не списка или кортежа?](https://python-all.ru/2.6/faq/design.html#why-is-join-a-string-method-instead-of-a-list-or-tuple-method)2658    - [Насколько быстры исключения?](https://python-all.ru/2.6/faq/design.html#how-fast-are-exceptions)2659    - [Почему в Python нет оператора switch или case?](https://python-all.ru/2.6/faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python)2660    - [Разве нельзя эмулировать потоки в интерпретаторе, вместо того чтобы полагаться на реализацию потоков, зависящую от ОС?](https://python-all.ru/2.6/faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation)2661    - [Почему лямбда-формы не могут содержать инструкции?](https://python-all.ru/2.6/faq/design.html#why-can-t-lambda-forms-contain-statements)2662    - [Можно ли скомпилировать Python в машинный код, C или другой язык?](https://python-all.ru/2.6/faq/design.html#can-python-be-compiled-to-machine-code-c-or-some-other-language)2663    - [Как Python управляет памятью?](https://python-all.ru/2.6/faq/design.html#how-does-python-manage-memory)2664    - [Почему при завершении Python освобождается не вся память?](https://python-all.ru/2.6/faq/design.html#why-isn-t-all-memory-freed-when-python-exits)2665    - [Почему существуют отдельные типы данных кортеж и список?](https://python-all.ru/2.6/faq/design.html#why-are-there-separate-tuple-and-list-data-types)2666    - [Как реализованы списки?](https://python-all.ru/2.6/faq/design.html#how-are-lists-implemented)2667    - [Как реализованы словари?](https://python-all.ru/2.6/faq/design.html#how-are-dictionaries-implemented)2668    - [Почему ключи словаря должны быть неизменяемыми?](https://python-all.ru/2.6/faq/design.html#why-must-dictionary-keys-be-immutable)2669    - [Почему list.sort() не возвращает отсортированный список?](https://python-all.ru/2.6/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list)2670    - [Как задать и обеспечить соблюдение спецификации интерфейса в Python?](https://python-all.ru/2.6/faq/design.html#how-do-you-specify-and-enforce-an-interface-spec-in-python)2671    - [Почему значения по умолчанию разделяются между объектами?](https://python-all.ru/2.6/faq/design.html#why-are-default-values-shared-between-objects)2672    - [Почему нет goto?](https://python-all.ru/2.6/faq/design.html#why-is-there-no-goto)2673    - [Почему сырые строки (r-строки) не могут заканчиваться обратной косой чертой?](https://python-all.ru/2.6/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash)2674    - [Почему в Python нет оператора with для присваивания атрибутов?](https://python-all.ru/2.6/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments)2675    - [Почему в операторах if/while/def/class требуется двоеточие?](https://python-all.ru/2.6/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements)2676    - [Почему Python разрешает запятые в конце списков и кортежей?](https://python-all.ru/2.6/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples)2677  - [FAQ по библиотекам и расширениям](https://python-all.ru/2.6/faq/library.html)26782679    - [Общие вопросы по библиотекам](https://python-all.ru/2.6/faq/library.html#general-library-questions)2680    - [Типовые задачи](https://python-all.ru/2.6/faq/library.html#common-tasks)2681    - [Потоки](https://python-all.ru/2.6/faq/library.html#threads)2682    - [Ввод и вывод](https://python-all.ru/2.6/faq/library.html#input-and-output)2683    - [Сетевое и интернет-программирование](https://python-all.ru/2.6/faq/library.html#network-internet-programming)2684    - [Базы данных](https://python-all.ru/2.6/faq/library.html#databases)2685    - [Математика и численные методы](https://python-all.ru/2.6/faq/library.html#mathematics-and-numerics)2686  - [FAQ по расширению и встраиванию](https://python-all.ru/2.6/faq/extending.html)26872688    - [Можно ли создавать собственные функции на C?](https://python-all.ru/2.6/faq/extending.html#can-i-create-my-own-functions-in-c)2689    - [Можно ли создавать собственные функции на C++?](https://python-all.ru/2.6/faq/extending.html#id1)2690    - [Писать на C сложно; есть ли альтернативы?](https://python-all.ru/2.6/faq/extending.html#writing-c-is-hard-are-there-any-alternatives)2691    - [Как выполнить произвольные инструкции Python из C?](https://python-all.ru/2.6/faq/extending.html#how-can-i-execute-arbitrary-python-statements-from-c)2692    - [Как вычислить произвольное выражение Python из C?](https://python-all.ru/2.6/faq/extending.html#how-can-i-evaluate-an-arbitrary-python-expression-from-c)2693    - [Как извлечь значения C из объекта Python?](https://python-all.ru/2.6/faq/extending.html#how-do-i-extract-c-values-from-a-python-object)2694    - [Как использовать Py\_BuildValue() для создания кортежа произвольной длины?](https://python-all.ru/2.6/faq/extending.html#how-do-i-use-py-buildvalue-to-create-a-tuple-of-arbitrary-length)2695    - [Как вызвать метод объекта из C?](https://python-all.ru/2.6/faq/extending.html#how-do-i-call-an-object-s-method-from-c)2696    - [Как перехватить вывод PyErr\_Print() (или любого другого вывода в stdout/stderr)?](https://python-all.ru/2.6/faq/extending.html#how-do-i-catch-the-output-from-pyerr-print-or-anything-that-prints-to-stdout-stderr)2697    - [Как получить доступ к модулю, написанному на Python, из C?](https://python-all.ru/2.6/faq/extending.html#how-do-i-access-a-module-written-in-python-from-c)2698    - [Как организовать взаимодействие с объектами C++ из Python?](https://python-all.ru/2.6/faq/extending.html#how-do-i-interface-to-c-objects-from-python)2699    - [Почему make завершается ошибкой после добавления модуля через файл Setup?](https://python-all.ru/2.6/faq/extending.html#i-added-a-module-using-the-setup-file-and-the-make-fails-why)2700    - [Как отлаживать расширение?](https://python-all.ru/2.6/faq/extending.html#how-do-i-debug-an-extension)2701    - [Почему при компиляции модуля Python в Linux отсутствуют некоторые файлы?](https://python-all.ru/2.6/faq/extending.html#i-want-to-compile-a-python-module-on-my-linux-system-but-some-files-are-missing-why)2702    - [Что означает «SystemError: \_PyImport\_FixupExtension: module yourmodule not loaded»?](https://python-all.ru/2.6/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean)2703    - [Как отличить «неполный ввод» от «неверного ввода»?](https://python-all.ru/2.6/faq/extending.html#how-do-i-tell-incomplete-input-from-invalid-input)2704    - [Как найти неопределённые символы g++ \_\_builtin\_new или \_\_pure\_virtual?](https://python-all.ru/2.6/faq/extending.html#how-do-i-find-undefined-g-symbols-builtin-new-or-pure-virtual)2705    - [Можно ли создать класс объекта, в котором часть методов реализована на C, а часть – на Python (например, через наследование)?](https://python-all.ru/2.6/faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance)2706    - [Почему при импорте модуля X возникает ошибка «undefined symbol: PyUnicodeUCS2\*»?](https://python-all.ru/2.6/faq/extending.html#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2)2707  - [FAQ по Python в Windows](https://python-all.ru/2.6/faq/windows.html)27082709    - [Как запустить программу Python в Windows?](https://python-all.ru/2.6/faq/windows.html#how-do-i-run-a-python-program-under-windows)2710    - [Как сделать скрипты Python исполняемыми?](https://python-all.ru/2.6/faq/windows.html#how-do-i-make-python-scripts-executable)2711    - [Почему Python иногда так долго запускается?](https://python-all.ru/2.6/faq/windows.html#why-does-python-sometimes-take-so-long-to-start)2712    - [Где найти Freeze для Windows?](https://python-all.ru/2.6/faq/windows.html#where-is-freeze-for-windows)2713    - [Является ли файл `*.pyd` тем же самым, что и DLL?](https://python-all.ru/2.6/faq/windows.html#is-a-pyd-file-the-same-as-a-dll)2714    - [Как встроить Python в приложение Windows?](https://python-all.ru/2.6/faq/windows.html#how-can-i-embed-python-into-a-windows-application)2715    - [Как использовать Python для CGI?](https://python-all.ru/2.6/faq/windows.html#how-do-i-use-python-for-cgi)2716    - [Как запретить редакторам вставлять табуляцию в исходный код Python?](https://python-all.ru/2.6/faq/windows.html#how-do-i-keep-editors-from-inserting-tabs-into-my-python-source)2717    - [Как проверить нажатие клавиши без блокировки?](https://python-all.ru/2.6/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking)2718    - [Как эмулировать os.kill() в Windows?](https://python-all.ru/2.6/faq/windows.html#how-do-i-emulate-os-kill-in-windows)2719    - [Почему os.path.isdir() не работает с общими каталогами NT?](https://python-all.ru/2.6/faq/windows.html#why-does-os-path-isdir-fail-on-nt-shared-directories)2720    - [cgi.py (или другие CGI-программы) иногда не работают на NT или win95!](https://python-all.ru/2.6/faq/windows.html#cgi-py-or-other-cgi-programming-doesn-t-work-sometimes-on-nt-or-win95)2721    - [Почему os.popen() не работает в PythonWin на NT?](https://python-all.ru/2.6/faq/windows.html#why-doesn-t-os-popen-work-in-pythonwin-on-nt)2722    - [Почему os.popen()/win32pipe.popen() не работают на Win9x?](https://python-all.ru/2.6/faq/windows.html#why-doesn-t-os-popen-win32pipe-popen-work-on-win9x)2723    - [PyRun\_SimpleFile() падает на Windows, но не на Unix; почему?](https://python-all.ru/2.6/faq/windows.html#pyrun-simplefile-crashes-on-windows-but-not-on-unix-why)2724    - [Импорт \_tkinter не удаётся на Windows 95/98: почему?](https://python-all.ru/2.6/faq/windows.html#importing-tkinter-fails-on-windows-95-98-why)2725    - [Как извлечь загруженную документацию в Windows?](https://python-all.ru/2.6/faq/windows.html#how-do-i-extract-the-downloaded-documentation-on-windows)2726    - [Отсутствует cw3215mt.dll (или cw3215.dll)](https://python-all.ru/2.6/faq/windows.html#missing-cw3215mt-dll-or-missing-cw3215-dll)2727    - [Предупреждение о версии CTL3D32 от установщика](https://python-all.ru/2.6/faq/windows.html#warning-about-ctl3d32-version-from-installer)2728  - [Часто задаваемые вопросы о графическом интерфейсе пользователя](https://python-all.ru/2.6/faq/gui.html)27292730    - [Общие вопросы по GUI](https://python-all.ru/2.6/faq/gui.html#general-gui-questions)2731    - [Вопросы по Tkinter](https://python-all.ru/2.6/faq/gui.html#tkinter-questions)2732  - [FAQ «Почему Python установлен на моём компьютере?»](https://python-all.ru/2.6/faq/installed.html)27332734    - [Что такое Python?](https://python-all.ru/2.6/faq/installed.html#what-is-python)2735    - [Почему Python установлен на моём компьютере?](https://python-all.ru/2.6/faq/installed.html#why-is-python-installed-on-my-machine)2736    - [Можно ли удалить Python?](https://python-all.ru/2.6/faq/installed.html#can-i-delete-python)2737- [Глоссарий](https://python-all.ru/2.6/glossary.html)2738- [Об этих документах](https://python-all.ru/2.6/about.html)27392740  - [Участники документации Python](https://python-all.ru/2.6/about.html#contributors-to-the-python-documentation)2741- [Сообщение об ошибках](https://python-all.ru/2.6/bugs.html)27422743  - [Ошибки в документации](https://python-all.ru/2.6/bugs.html#documentation-bugs)2744  - [Использование трекера задач Python](https://python-all.ru/2.6/bugs.html#using-the-python-issue-tracker)2745- [Авторские права](https://python-all.ru/2.6/copyright.html)2746- [История и лицензия](https://python-all.ru/2.6/license.html)27472748  - [История программного обеспечения](https://python-all.ru/2.6/license.html#history-of-the-software)2749  - [Условия доступа и использования Python](https://python-all.ru/2.6/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python)2750  - [Лицензии и благодарности для включённого программного обеспечения](https://python-all.ru/2.6/license.html#licenses-and-acknowledgements-for-incorporated-software)27512752    - [Вихрь Мерсенна](https://python-all.ru/2.6/license.html#mersenne-twister)2753    - [Сокеты](https://python-all.ru/2.6/license.html#sockets)2754    - [Управление исключениями с плавающей точкой](https://python-all.ru/2.6/license.html#floating-point-exception-control)2755    - [Алгоритм дайджеста сообщений MD5](https://python-all.ru/2.6/license.html#md5-message-digest-algorithm)2756    - [Асинхронные службы сокетов](https://python-all.ru/2.6/license.html#asynchronous-socket-services)2757    - [Управление cookie](https://python-all.ru/2.6/license.html#cookie-management)2758    - [Трассировка выполнения](https://python-all.ru/2.6/license.html#execution-tracing)2759    - [Функции UUencode и UUdecode](https://python-all.ru/2.6/license.html#uuencode-and-uudecode-functions)2760    - [XML-вызовы удалённых процедур](https://python-all.ru/2.6/license.html#xml-remote-procedure-calls)2761    - [test\_epoll](https://python-all.ru/2.6/license.html#test-epoll)2762    - [Select kqueue](https://python-all.ru/2.6/license.html#select-kqueue)2763