Is there changes in this usual Python builtin ? import types # somewhere in a method... if type(x) == types.UnicodeType: Raises... Error Type: UnboundLocalError Error Value: local variable 'type' referenced before assignment What did I miss ? Thanks by advance. --Gilles