| CARVIEW |
Select Language
HTTP/2 301
server: nginx
content-type: text/html
location: https://docs.python.org/3/reference/index.html
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 171066
date: Fri, 26 Dec 2025 15:30:23 GMT
x-served-by: cache-lga21982-LGA, cache-bom-vanm7210066-BOM
x-cache: HIT, HIT
x-cache-hits: 5, 0
x-timer: S1766763024.684221,VS0,VE1
content-length: 162
HTTP/2 200
server: nginx
content-type: text/html
last-modified: Fri, 26 Dec 2025 06:22:49 GMT
etag: "694e29b9-688a"
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
content-encoding: gzip
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 3899
date: Fri, 26 Dec 2025 15:30:23 GMT
x-served-by: cache-lga21924-LGA, cache-bom-vanm7210066-BOM
x-cache: HIT, HIT
x-cache-hits: 5, 0
x-timer: S1766763024.698088,VS0,VE1
vary: Accept-Encoding
content-length: 5012
The Python Language Reference — Python 3.14.2 documentation
Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.14.2 Documentation »
- The Python Language Reference
-
|
- |
The Python Language Reference¶
This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact and complete. The semantics of non-essential built-in object types and of the built-in functions and modules are described in The Python Standard Library. For an informal introduction to the language, see The Python Tutorial. For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API Reference Manual describes the interfaces available to C/C++ programmers in detail.
- 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. Assignment expressions
- 6.13. Conditional expressions
- 6.14. Lambdas
- 6.15. Expression lists
- 6.16. Evaluation order
- 6.17. Operator precedence
- 7. Simple statements
- 7.1. Expression statements
- 7.2. Assignment statements
- 7.3. The
assertstatement - 7.4. The
passstatement - 7.5. The
delstatement - 7.6. The
returnstatement - 7.7. The
yieldstatement - 7.8. The
raisestatement - 7.9. The
breakstatement - 7.10. The
continuestatement - 7.11. The
importstatement - 7.12. The
globalstatement - 7.13. The
nonlocalstatement - 7.14. The
typestatement
- 8. Compound statements
- 9. Top-level components
- 10. Full Grammar specification
«
Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.14.2 Documentation »
- The Python Language Reference
-
|
- |
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Dec 26, 2025 (06:21 UTC). Found a bug?
Created using Sphinx 9.0.4.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Dec 26, 2025 (06:21 UTC). Found a bug?
Created using Sphinx 9.0.4.