PyCon AU 2025

I learned everything about the match statement so you don't have to
2025-09-13 , Ballroom 3

Python has match statements now. What are they? Why are they? How do they work? Discovering the true power of Python's structural pattern matching has made my classes more powerful than ever! Want to learn this power? Then come to my talk! It promises to inform, engage and entertain with real world worked examples, arcane facts, and interactive questions.


Most of the Python devs I know just don't get the match statement. They're great at ifs. They know their elses. Surely the match statement is just those but… rearranged a bit? I thought like this once. But then I saw the light! Have you ever been working in a project with a dozen different classes, each with eighteen different attributes and fifteen different methods? No? Just me? Well you can check all of those in a single match statement, with no ands in sight, and with easy readability! Don't believe me? Come and be amazed! This talk will be accessible to novices and still interesting for the more experienced.

Sam

Hi! I'm Sam, a student at UTS doing IT. I've been writing Python about five years fewer than I've been writing English, but it took most of that time to figure out how classes work. I spend most of my free time bouldering, at scouts, tinkering with elderly laptops, and coding python. This is my fourth time speaking at PyconAU, thanks to the student showcase.