Python 3.6 Release History

Python 3.6 (released December 23, 2016) marked the beginning of modern Python, introducing syntax and runtime improvements that are still widely used today.

Formatted String Literals (f-strings)

The major highlight of Python 3.6 is PEP 498: f-strings.

They allow embedding expressions directly inside string literals:

name = "Fred"
age = 50

print(f"He said his name is {name} and he is {age} years old.")

Variable Annotations

PEP 526 introduced syntax for variable type hints:

count: int = 0
users: list[str] = ["Alice", "Bob"]

Dictionary Implementation Improvements

Python 3.6 redesigned the internal dict structure:

Note: order preservation became a language guarantee in Python 3.7.

Runtime Improvements

Syntax Improvements

budget = 1_000_000
a, b, *rest = [1, 2, 3, 4]

Async Features

Subversions log


Official 3.6 documentation