graphit/graph_storage_drivers/graph_driver_baseclass.py
def pop(self, key, default=__marker):
        """
        Dictionary like pop methods
        
        Removes the key and returns the corresponding value or default if the
        key was not found and default is defined, otherwise a KeyError is
        raised.
        
        :param key:     key to return value for
        :param default: option default value if key is not found
        
        :return:        value
        """
        
        try:
            value = self[key]
        except KeyError:
            if default is self.__marker:
                raise
            return default
        else:
            del self[key]
            return value

        Dictionary like pop methods
        
        Removes the key and returns the corresponding value or default if the
        key was not found and default is defined, otherwise a KeyError is
        raised.
        
        :param key:     key to return value for
        :param default: option default value if key is not found
        
        :return:        value
        
Dictionary like pop methods
Removes the key and returns the corresponding value or default if the
key was not found and default is defined, otherwise a KeyError is
raised.
Dictionary like pop methods Removes the key and returns the corresponding value or default if the key was not found and default is defined otherwise a KeyError is raised .
def pop(self, key, default=__marker):
        try:
            value = self[key]
        except KeyError:
            if default is self.__marker:
                raise
            return default
        else:
            del self[key]
            return value
def pop ( self , key , default = __marker ) : try : value = self [ key ] except KeyError : if default is self . __marker : raise return default else : del self [ key ] return value
Dictionary like pop methods
Removes the key and returns the corresponding value or default if the
key was not found and default is defined, otherwise a KeyError is
raised.
Dictionary like pop methods Removes the key and returns the corresponding value or default if the key was not found and default is defined otherwise a KeyError is raised .
"""
        Dictionary like pop methods
        
        Removes the key and returns the corresponding value or default if the
        key was not found and default is defined, otherwise a KeyError is
        raised.
        
        :param key:     key to return value for
        :param default: option default value if key is not found
        
        :return:        value
        """
None
self
key
key to return value for
key to return value for
default
option default value if key is not found
option default value if key is not found