Simon's switch-a-like for Python

Simon Willison: Switch statements in Python

I remember doing something like this in another language that didn't have a switch/case statement... it might have been UserTalk (Frontier's native programming language) I don't know why I didn't think of this for Python. Nice one Simon!

Written on May 7, 2004