Python Enhancement Protocol (PEP) 622 proposes introducing support for structural pattern matching into Python 3.10, much like other functional programming languages like Haskell and ML. It's still a draft, and Python 3.10 is still more than a year away from an official release, but there's a working implementation to try! Here, I take a look at pattern matching in action.
0:00 PEP 622
0:46 Structural Pattern Matching
2:23 Extracting Values from Patterns
5:41 Guards
6:41 Maximum
8:56 Closing
***
Spanning Tree is an educational video series about computer science and mathematics. See more at https://spanningtree.me
To be notified when a new video is released, sign up for the Spanning Tree mailing list at https://spanningtree.substack.com/
Spanning Tree is created by Brian Yu. https://brianyu.me/
Email me at brian@spanningtree.me to suggest a future topic.
On this page of the site you can watch the video online Pattern Matching in Python? with a duration of hours minute second in good quality, which was uploaded by the user Spanning Tree 24 June 2020, share the link with friends and acquaintances, this video has already been watched 20,672 times on youtube and it was liked by 457 viewers. Enjoy your viewing!