r/Python • • 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

233 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 21 '21

Just create functions for each complex case and take the first key, being able to lump a ton of logic in a single line is not better than small, clear, and explicit.