'Dictionary style assignment.'

def __setitem__(self, key, value):

    if isinstance(value, Morsel):
        dict.__setitem__(self, key, value)
    else:
        (rval, cval) = self.value_encode(value)
        self.__set(key, rval, cval)
