The match
statement was introduced in Python 3.10, but has not yet seen wide adoption. This talk will highlight practical use cases for parsing JSON, XML and ASTs, and compare expressiveness and performance to the classic if-elif-else approach.
The match
statement was introduced in Python 3.10, but has not yet seen wide adoption.
In this talk, I’d like to show case a few more advanced use cases to demonstrate it’s expressiveness and versatility, compared to classic parsers using if-elif-else chains.
We will have a look at parsing JSON, XML and ASTs, and also compare performance to the classic parsing strategy.
Knowledge of how the match
statement works and familiarity with at least one of JSON, XML and ASTs are prerequisite for this talk.
Marc-Andre is the CEO and founder of eGenix.com, a Python-focused boutique project and consulting company based in Germany, specializing in the data, finance and database space. He has a degree in mathematics from the University of Düsseldorf.
His work with and for Python started in 1994. He is a Python Core Developer, designed and implemented the Unicode support in Python, the editor of the Python DB-API and author of several open source libraries and tools (e.g. the mx Extensions mxDateTime and mxODBC).
Marc-Andre is a EuroPython Society (EPS) Fellow, a Python Software Foundation (PSF) founding Fellow and co-founded a local Python meeting in Düsseldorf (PyDDF). He served on the board of the PSF and EPS for many years and loves to contribute to the growth of Python wherever he can.
More information is available on https://malemburg.com/