def __setstate__ ( self, state ):
        name   = state.setdefault('name', '')
        object = state.pop( 'object', None )
        if object is not None:
            self.object = ref( object )
            self.rename( name )
        else:
            self.object = lambda: None

        self.__dict__.update( state )


#-------------------------------------------------------------------------------
#  'TraitDictEvent' class:
#-------------------------------------------------------------------------------
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitSetObject.__setstate__/original