def popitem ( self ):
        result = dict.popitem( self )

        if self.name_items is not None:
            self._send_trait_items_event( self.name_items,
                TraitDictEvent( removed = { result[0]: result[1] } ) )

        return result
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitDictObject.popitem/original