def pop(self, key, default=__marker):
        """D.pop(k[,d]) -> v, remove specified key and return the value.

        If key is not found, d is returned if given, otherwise KeyError is
        raised.
        """
        # Using the MutableMapping function directly fails due to the private
        # marker.
        # Using ordinary dict.pop would expose the internal structures.
        # So let's reinvent the wheel.
        try:
            value = self[key]
        except __HOLE__:
            if default is self.__marker:
                raise
            return default
        else:
            del self[key]
            return value
dataset/ETHPy150Open sigmavirus24/betamax/betamax/headers.py/HTTPHeaderDict.pop