Python Language Reference
Describes the syntax and "core semantics" of the language.
- 1. Introduction
- 2. Lexical analysis
- 3. Data model
- 4. Execution model
- 5. The import system
- 6. Expressions
- 6.1. Arithmetic conversions
- 6.2. Atoms
- 6.3. Primaries
- 6.4. Await expression
- 6.5. The power operator
- 6.6. Unary arithmetic and bitwise operations
- 6.7. Binary arithmetic operations
- 6.8. Shifting operations
- 6.9. Binary bitwise operations
- 6.10. Comparisons
- 6.11. Boolean operations
- 6.12. Conditional expressions
- 6.13. Lambdas
- 6.14. Expression lists
- 6.15. Evaluation order
- 6.16. Operator precedence
- 7. Simple statements
- 7.1. Expression statements
- 7.2. Assignment statements
- 7.3. Theassertstatement
- 7.4. Thepassstatement
- 7.5. Thedelstatement
- 7.6. Thereturnstatement
- 7.7. Theyieldstatement
- 7.8. Theraisestatement
- 7.9. Thebreakstatement
- 7.10. Thecontinuestatement
- 7.11. Theimportstatement
- 7.12. Theglobalstatement
- 7.13. Thenonlocalstatement
- 8. Compound statements
- 9. Top-level components
- 10. Full Grammar specification