PEP 570 Positional Only
TL;DR
PEP 570 introduced the /
separator to mark positional-only parameters, giving API designers control over function call semantics and preventing keyword argument usage.
PEP 570 introduced the /
separator to mark positional-only parameters, giving API designers control over function call semantics and preventing keyword argument usage.
PEP 622 introduced match-case
statements for structural pattern matching, enabling elegant destructuring and dispatch based on data shape and values.
Pattern matching brings functional programming elegance to Python - you can destructure complex nested data in a single line and handle different cases cleanly!