~/talk

The Road to Pattern Matching in Python

Talkat PyCon US 2021 · 2021-05-14..05-15· [python]
links:none on file
slides:none on file

Explains why pattern matching becomes a new statement with match and case are soft keywords, shows the concrete one-line area example that both selects branch and extracts radius/width/height, gives deterministic binding rules — e.g. all simple names are binding targets and each alternative must bind the same variables exactly once — and sketches extensibility via custom match methods so classes can expose alternative views of objects.

AI-written summary · about

  1. 0:00Start
  2. 0:50Three Main Tasks of Pattern Matching
  3. 4:53Early Beginnings of Pattern Matching
  4. 7:44Conditional Unpacking
  5. 20:01Names in Patterns
  6. 21:56Example a Complex Number
~/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.