3.8
Python Language Reference
The Python Language Reference is the official, authoritative specification of the Python programming language.
Python 3.8.0 was released in October 2019. It introduced the following new language features:
- assignment expressions (walrus operator
:=
) - positional-only parameters
- f-strings support
=
- support for
continue
insidefinally
See What’s New In Python 3.8 for more details.
Our Python misconceptions relate to the following sections of that specification:
2.4
Literals
3.0
Data model
3.1
Objects, values, and types
3.2
The standard type hierarchy
3.3.1
__init__
6.0
Expressions
6.3.1
Attribute references
6.3.4
Calls
6.7
Binary arithmetic operations
6.9
Binary bitwise operations
6.10
Comparisons
6.13
Conditional expressions
6.15
Expression lists
6.16
Evaluation order
7.0
Simple statements
7.6
The return statement
8.1
The if statement
Library
Boolean operations
Library
Dictionary
Library
Functions
Library
Keywords