Marc-André Lemburg, FOSDEM 2024:
The talk gives a short introduction into the new Python
matchstatement, which was added to Python in version 3.10. The feature has only been gaining traction very slowly in the Python world, which is a bit sad, since thematchstatement does prove to be very useful in many parsing situations.We start with an overview, then discuss the different parts of the match statements, the terminology used, showcase ways to match patterns and finally how to use capturing variables.