~/talk

I learned everything about the match statement so you don't have to

Talkat PyCon AU 2025 · 2025-09-12..09-16· [python]
name:Sam
links:none on file
slides:none on file

Shows concrete code: builds Circle, Rectangle and Square classes and implements an area method for shapes and a point-in-shape containment using positional matches, demonstrating match_args, capture names, star and star-star captures, and the walrus operator. Compares line-for-line with equivalent if chains, highlights when match simplifies type, sequence and mapping checks, and warns it doesn’t replace every if. Examples run live and produce working outputs so viewers can reuse patterns immediately.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Python match statement
  3. 1:51Match vs if statements
  4. 2:37Matching constants and types
  5. 3:43Capturing matches and defaults
  6. 4:45Walrus operator in matches
  7. 5:27Matching sequences
  8. 6:31Advanced mapping and set matching
  9. 7:36Matching with classes
  10. 10:41Q&A
~/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.