Description
Structural Pattern Matching is a new feature in Python 3.10. I think it's a big feature added to Python after a long time. In this talk, I will show you the basic usage of the feature with various sample code. Let's try to understand how to use Pattern Matching and start using it in 3.10.
In this talk, I will introduce the motivation behind Strucral Pattern Matching from PEP. Then I will explain the syntax and basic usage of Structural Pattern Matching. Next I will show how to use the various patterns with sample code. The patterns introduced are Literal, Capture, Wildcard, OR, Value, Group, Class, Sequence, Mapping, AS and Guards.
Takanori Suzuki Takanori is a Chairperson of PyCon JP Association (www.pycon.jp). He is also a director of BeProud Inc.(www.beproud.jp), and his title is "Python Climber". Takanori held PyCon JP 2014 to 2016 as the chairperson. Currently he teaches Python to beginners as a lecturer at Python Boot Camp(pycamp.pycon.jp) all over Japan. In addition, he published several Python books. Tananori plays trumpet, climbs boulder, loves Lego, ferrets and beer.