Python Language Reference
Official docs outline
9 sections- Lexical analysis
Tokens, indentation, literals and f-strings.
- Data model: objects, values and types
Identity, type and mutability.
- Special method names
__init__, __repr__, __eq__, context manager and descriptor protocols.
- Execution model
Name binding, scopes, global and nonlocal.
- The import system
Finders, loaders, sys.modules and packages.
- Expressions
Operators, precedence, comprehensions, await and lambda.
- Simple statements
assignment, import, global, assert, raise and return.
- Compound statements
if, while, for, try, with, match, function and class definitions.
- Full grammar specification
The PEG grammar of Python.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
More in Language and platform specs
All 33- Java Language Specification
- Java Virtual Machine Specification
- Language Server Protocol
- Model Context Protocol Specification
- PEP 8 Style Guide for Python Code
- POSIX (IEEE Std 1003.1 and Open Group Base Specifications)
- Python Typing Specification
- Selectors Level 4
- Service Workers (W3C)
- SQL (ISO/IEC 9075)
- Streams Standard (WHATWG)
- The Go Programming Language Specification