Grant Edwards <invalid at invalid.invalid>: > any decent compiler should be able to generate the same code for a > switch statement and for an equivalent chained if/else. It's not so easy to be decent, especially when it comes to a language as dynamic as Python. Marko