Python 313 Release Notes Verified !!link!! Now

| Benchmark | 3.12 (seconds) | 3.13 (seconds) | Improvement | |-------------------|----------------|----------------|-------------| | regex_compile | 0.162 | 0.151 | +6.8% | | json_loads | 0.085 | 0.082 | +3.5% | | chaos | 0.109 | 0.102 | +6.4% | | crypto_pyaes | 0.654 | 0.631 | +3.5% | | go (board game) | 0.388 | 0.376 | +3.1% | | | 1.00 | 0.96 | ~4% faster |

from typing import TypedDict, ReadOnly class Movie(TypedDict): title: ReadOnly[str] # Cannot be reassigned year: int python 313 release notes verified

def test(): x = 10 locs = locals() locs['x'] = 20 print(x) # In Python 3.12: prints 20 (unspecified behavior). In Python 3.13: prints 10. test() | Benchmark | 3

| Benchmark | 3.12 (seconds) | 3.13 (seconds) | Improvement | |-------------------|----------------|----------------|-------------| | regex_compile | 0.162 | 0.151 | +6.8% | | json_loads | 0.085 | 0.082 | +3.5% | | chaos | 0.109 | 0.102 | +6.4% | | crypto_pyaes | 0.654 | 0.631 | +3.5% | | go (board game) | 0.388 | 0.376 | +3.1% | | | 1.00 | 0.96 | ~4% faster |

from typing import TypedDict, ReadOnly class Movie(TypedDict): title: ReadOnly[str] # Cannot be reassigned year: int

def test(): x = 10 locs = locals() locs['x'] = 20 print(x) # In Python 3.12: prints 20 (unspecified behavior). In Python 3.13: prints 10. test()