~/talk

meet the best feature in python 3.10: match-case

Talkat PyCon Israel 2022 · 2022-06-28..06-29· [python, developer-experience]
name:Dror Ivry
links:none on file
slides:none on file

A subtle bug where lines like "1,1 == 1,1" and tuples such as "1, True, 1" are parsed as tuples rather than comparisons leads to incorrect boolean logic; debugging uses ast to inspect the interpreter tree, then replaces a fragile, multi-if flake8 visitor with a single structural pattern matching case that detects a constant compared to a tuple. The flake8 plugin is built and works, catching the pattern before it reaches CI; match-case also proves useful for CLIs and validating custom syntax.

AI-written summary · about

  1. 0:00Intro
  2. 1:08Storytime
  3. 5:17The problem
  4. 8:40Structural pattern matching
  5. 13:43Potential use cases
  6. 15:43Key takeaways
~/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.