> **Источник:** https://python-all.ru/3.0/reference/index.html
>
> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.

---

# Справочник по языку Python

| Версия: | 3.0 |
| --- | --- |
| Дата: | 14 февраля 2009 |

Данное справочное руководство описывает синтаксис и «основную семантику» языка. Оно краткое, но стремится к точности и полноте. Семантика необязательных встроенных типов объектов, а также встроенных функций и модулей описана в [*Стандартной библиотеке Python*](https://python-all.ru/3.0/library/index.html#library-index). Неформальное введение в язык можно найти в [*Учебнике Python*](https://python-all.ru/3.0/tutorial/index.html#tutorial-index). Для программистов на C или C++ существуют два дополнительных руководства: [*«Расширение и встраивание интерпретатора Python»*](https://python-all.ru/3.0/extending/index.html#extending-index) описывает общую картину написания модулей расширения Python, а [*Справочное руководство по Python/C API*](https://python-all.ru/3.0/c-api/index.html#c-api-index) подробно описывает интерфейсы, доступные программистам на C/C++.

- [Введение](https://python-all.ru/3.0/reference/introduction.html)

  - [Альтернативные реализации](https://python-all.ru/3.0/reference/introduction.html#alternate-implementations)
  - [Нотация](https://python-all.ru/3.0/reference/introduction.html#id2)
- [Лексический анализ](https://python-all.ru/3.0/reference/lexical_analysis.html)

  - [Структура строк](https://python-all.ru/3.0/reference/lexical_analysis.html#id1)
  - [Другие токены](https://python-all.ru/3.0/reference/lexical_analysis.html#id7)
  - [Идентификаторы и ключевые слова](https://python-all.ru/3.0/reference/lexical_analysis.html#identifiers-and-keywords)
  - [Литералы](https://python-all.ru/3.0/reference/lexical_analysis.html#id9)
  - [Операторы](https://python-all.ru/3.0/reference/lexical_analysis.html#id10)
  - [Разделители](https://python-all.ru/3.0/reference/lexical_analysis.html#id11)
- [Модель данных](https://python-all.ru/3.0/reference/datamodel.html)

  - [Объекты, значения и типы](https://python-all.ru/3.0/reference/datamodel.html#objects-values-and-types)
  - [Стандартная иерархия типов](https://python-all.ru/3.0/reference/datamodel.html#the-standard-type-hierarchy)
  - [Имена специальных методов](https://python-all.ru/3.0/reference/datamodel.html#special-method-names)
- [Модель выполнения](https://python-all.ru/3.0/reference/executionmodel.html)

  - [Именование и связывание](https://python-all.ru/3.0/reference/executionmodel.html#naming-and-binding)
  - [Исключения](https://python-all.ru/3.0/reference/executionmodel.html#id2)
- [Выражения](https://python-all.ru/3.0/reference/expressions.html)

  - [Арифметические преобразования](https://python-all.ru/3.0/reference/expressions.html#arithmetic-conversions)
  - [Атомы](https://python-all.ru/3.0/reference/expressions.html#id2)
  - [Первичные выражения](https://python-all.ru/3.0/reference/expressions.html#id3)
  - [Оператор возведения в степень](https://python-all.ru/3.0/reference/expressions.html#the-power-operator)
  - [Унарные арифметические операции](https://python-all.ru/3.0/reference/expressions.html#unary-arithmetic-operations)
  - [Бинарные арифметические операции](https://python-all.ru/3.0/reference/expressions.html#binary-arithmetic-operations)
  - [Операции сдвига](https://python-all.ru/3.0/reference/expressions.html#shifting-operations)
  - [Бинарные поразрядные операции](https://python-all.ru/3.0/reference/expressions.html#binary-bitwise-operations)
  - [Сравнения](https://python-all.ru/3.0/reference/expressions.html#id10)
  - [Логические операции](https://python-all.ru/3.0/reference/expressions.html#boolean-operations)
  - [Лямбда-выражения](https://python-all.ru/3.0/reference/expressions.html#id15)
  - [Списки выражений](https://python-all.ru/3.0/reference/expressions.html#expression-lists)
  - [Порядок вычислений](https://python-all.ru/3.0/reference/expressions.html#evaluation-order)
  - [Сводка](https://python-all.ru/3.0/reference/expressions.html#summary)
- [Простые инструкции](https://python-all.ru/3.0/reference/simple_stmts.html)

  - [Инструкции-выражения](https://python-all.ru/3.0/reference/simple_stmts.html#expression-statements)
  - [Инструкции присваивания](https://python-all.ru/3.0/reference/simple_stmts.html#assignment-statements)
  - [Инструкция `assert`](https://python-all.ru/3.0/reference/simple_stmts.html#the-assert-statement)
  - [Инструкция `pass`](https://python-all.ru/3.0/reference/simple_stmts.html#the-pass-statement)
  - [Инструкция `del`](https://python-all.ru/3.0/reference/simple_stmts.html#the-del-statement)
  - [Инструкция `return`](https://python-all.ru/3.0/reference/simple_stmts.html#the-return-statement)
  - [Инструкция `yield`](https://python-all.ru/3.0/reference/simple_stmts.html#the-yield-statement)
  - [Инструкция `raise`](https://python-all.ru/3.0/reference/simple_stmts.html#the-raise-statement)
  - [Инструкция `break`](https://python-all.ru/3.0/reference/simple_stmts.html#the-break-statement)
  - [Инструкция `continue`](https://python-all.ru/3.0/reference/simple_stmts.html#the-continue-statement)
  - [Инструкция `import`](https://python-all.ru/3.0/reference/simple_stmts.html#the-import-statement)
  - [Инструкция `global`](https://python-all.ru/3.0/reference/simple_stmts.html#the-global-statement)
  - [Инструкция `nonlocal`](https://python-all.ru/3.0/reference/simple_stmts.html#the-nonlocal-statement)
- [Составные инструкции](https://python-all.ru/3.0/reference/compound_stmts.html)

  - [Инструкция `if`](https://python-all.ru/3.0/reference/compound_stmts.html#the-if-statement)
  - [Инструкция `while`](https://python-all.ru/3.0/reference/compound_stmts.html#the-while-statement)
  - [Инструкция `for`](https://python-all.ru/3.0/reference/compound_stmts.html#the-for-statement)
  - [Инструкция `try`](https://python-all.ru/3.0/reference/compound_stmts.html#the-try-statement)
  - [Инструкция `with`](https://python-all.ru/3.0/reference/compound_stmts.html#the-with-statement)
  - [Определения функций](https://python-all.ru/3.0/reference/compound_stmts.html#function-definitions)
  - [Определения классов](https://python-all.ru/3.0/reference/compound_stmts.html#class-definitions)
- [Компоненты верхнего уровня](https://python-all.ru/3.0/reference/toplevel_components.html)

  - [Полные программы на Python](https://python-all.ru/3.0/reference/toplevel_components.html#complete-python-programs)
  - [Ввод из файла](https://python-all.ru/3.0/reference/toplevel_components.html#id1)
  - [Интерактивный ввод](https://python-all.ru/3.0/reference/toplevel_components.html#interactive-input)
  - [Ввод выражений](https://python-all.ru/3.0/reference/toplevel_components.html#id2)
- [Полная спецификация грамматики](https://python-all.ru/3.0/reference/grammar.html)
