~/talk

A Perfect Match The history, design, implementation, and future of Python's...

Talkat PyCon US 2022 · 2022-04-27..05-03· [python]
links:none on file
slides:none on file

Python 3.10 adds structural pattern matching as a genuine destructuring + control-flow construct rather than a switch, backed by PEPs 622/634/635/636 and a working CPython implementation that preserves existing code via soft keywords. The implementation produces new bytecode (eg optimized match_sequence and length opcodes) from a dedicated spam compiler, shows real performance gains, enables class and mapping patterns, and experiments with decision trees and unreachable-pattern warnings for future Python versions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19History
  3. 3:50Repository
  4. 5:32Design
  5. 8:22Match Statement
  6. 15:12Soft Keywords
  7. 16:42Structural Pattern Matching
  8. 20:12The Future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.