"Greg" == Greg Ewing email@example.com writes:
Greg> Two things are mildly annoying about if-elif chains as a Greg> substitute for a switch statement:
Greg> 1) Repeating the name of the thing being switched on all the Greg> time, and the operator being used for comparison.
What's worse, to my mind, is the not infrequent case where the thing being switched on or the operator changes. Sure, that's bad style, but sometimes you have to read other people's code like that.