> Wouldn't it make sense to enable the byte code compiler to take the > above construct and turn it into a dictionary based switch statement > ? That won't work. You cannot know what type "x" has, so you don't know in advance how "x == 'one'" is evaluated. Regards, Martin