def clear ( self ):
        if len( self ) > 0:
            if self.name_items is not None:
                removed = self.copy()

            dict.clear( self )

            if self.name_items is not None:
                self._send_trait_items_event( self.name_items,
                    TraitDictEvent( removed = removed ) )
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitDictObject.clear/original