(self, key, value)
Dictionary style assignment.
Dictionary style assignment.
Dictionary style assignment .
def __setitem__(self, key, value):
        """Dictionary style assignment."""
        if isinstance(value, Morsel):
            # allow assignment of constructed Morsels (e.g. for pickling)
            dict.__setitem__(self, key, value)
        else:
            rval, cval = self.value_encode(value)
            self.__set(key, rval, cval)
def __setitem__ ( self , key , value ) : if isinstance ( value , Morsel ) : # allow assignment of constructed Morsels (e.g. for pickling) dict . __setitem__ ( self , key , value ) else : rval , cval = self . value_encode ( value ) self . __set ( key , rval , cval )