4 ms·
Even though there is no native "switch" statement in Python, the same control flow structure can be done with a dict construct: http://simonwillison.net/2004/m
by devy 15y ago
Even though there is no native "switch" statement in Python, the same control flow structure can be done with a dict construct:
http://simonwillison.net/2004/may/7/switch/ http://simonwillison.net/2004/may/7/switch/
- hack_edu 15y agoWhenever the debate comes up in official channels, there is near-unanimous support for omitting it.