What I Read: Structural pattern matching, Python

https://benhoyt.com/writings/python-pattern-matching/


Structural pattern matching in Python 3.10
Ben Hoyt
September 2021


“Part of what I want to do here is evaluate some real code and see how much (or little) pattern matching improves it. But first, let’s take a brief look at what structural pattern matching in Python looks like.”