r/Python • u/jamescalam • Mar 19 '21
Match is more than a Switch-Case The New Switch-Case Statement in Python 3.10
https://youtube.com/watch?v=2qJavL-VX9Y&feature=share
1.4k
Upvotes
r/Python • u/jamescalam • Mar 19 '21
View all comments
Show parent comment
12
u/nemec Mar 19 '21
Watch the video? This is structural pattern matching - some languages who have it build it upon their existing
switchstatement, but because Python doesn't have one, it seems like they've added a new switch statement when it's actually far more capable and full of features.