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

-19

u/baconcleaner Mar 19 '21

omg, seriously? What was wrong in using a dict to emulate a switch-case? Do we really need new statements at this point?

6

u/CashAccomplished7309 Mar 19 '21

If you don't like the feature, you don't need to use it.

I personally like it, coming from PHP.

→ More replies (3)