Brussels / 3 & 4 February 2024

schedule

Match all things Python: Parsing structured content with Python's new match statement


The talk gives a short introduction into the new Python match statement, 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 the match statement 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.

Speakers

Photo of Marc-André Lemburg Marc-André Lemburg

Links