7th May 2004 Python doesn’t support a native switch statement. I’ve found myself using the following coding idiom instead recently which seems to work pretty well: {'option1': function1, 'option2': function2, 'option3': function3, 'option4': function4}[value]() This works with lambdas as well, for inline calculations. Here’s a switch statement that assigns to a variable in PHP: switch ($value) { c