News
The traditional ways to do this in Python aren’t elegant. One is to write an if/elif/else chain of expressions. The other is to store values to match as keys in a dictionary, then use the values ...
So, we’ve got a switch statement with slightly different syntax ... right out of the feature proposal to add the keyword in question to Python: I find an efficiency hit a small price to pay ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results