~/talk

Pattern Matching in Python

TalkinSpanishat PyCon Latam 2021 · 2021-08-27..08-28· [python, functional-programming]
links:none on file
slides:none on file

Explains Python's structural pattern matching feature (the match/case syntax) as an alternative to if-else branching. Covers how to use pattern matching in Python and the practical benefits it brings, comparing it to similar features in languages like Haskell and Ruby.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What is pattern matching
  3. 4:43Existing sequence unpacking
  4. 6:50Pattern matching benefits
  5. 7:55Syntax basics
  6. 9:43Literal matching
  7. 11:07Recursive list patterns
  8. 13:58Mapping patterns
  9. 17:32Color triangle example
  10. 20:47Pattern matching vs if-else
  11. 25:55Blackjack card evaluation
  12. 30:35Class pattern matching
  13. 33:47Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.