~/talk

Dynamic Pattern Matching with Python

Talkat DLS 2022 · on Wednesday, 2022-12-07· [python]
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Pattern matching lands in Python 3.10 as a structural matcher that binds names as local variables (function scope only), provides positional patterns plus class-driven and explicit mappings for objects, and defers powerful active extractors to future work. The implementation adds new bytecode and a sequence matcher that does not consume iterators so failed matches can backtrack. The feature is shipped but provokes community tradeoffs on syntax and will take years to reach wide adoption across distributions.

AI-written summary · about

  1. 0:00Dynamic pattern matching intro
  2. 2:28Why Python needed it
  3. 6:26Core concepts
  4. 12:28Pattern matching vs switch
  5. 13:10Dynamic objects challenges
  6. 20:43Solutions for dynamic objects
  7. 22:32Python 3.10 implementation
  8. 25:03Community resistance
  9. 26:08Adoption metrics
  10. 28:39Teaching pattern matching
  11. 30:47Implementation details
  12. 33:16Closing remarks
~/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.