>So, it seems that 'is' is interpreted differently when .pyc file is used. >I think this is a serious problem and should be fixed. The 'is' operator tests for object identity, only use it when you know what you're doing ;-). You need the '==' operator. Just