Since the advent of extended slicing, operator.isMappingType() returns a misleading result. >>> map(operator.isMappingType, ([], (), {}, '', u'')) [True, True, True, True, True] I recommend removing it from the operator module. Raymond Hettinger