def __setitem__(self, key, value):
        if key in self or self.__fields == None:
            dict.__setitem__(self, key, value)
        elif str(key).lower() in self.__fields:
            dict.__setitem__(self, self.__fields[key.lower()], value)
        else:
            raise P4Error, ("Illegal field " + str(key), [])
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/perforce/p426/win64/P4.py/Spec.__setitem__/original