def pop ( self, key, value = Undefined ):
        if (value is Undefined) or key in self:
            result = dict.pop( self, key )

            if self.name_items is not None:
                self._send_trait_items_event( self.name_items,
                    TraitDictEvent( removed = { key: result } ) )

            return result

        return value
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitDictObject.pop/original