def pop(key, d):
    """D.pop(k[, d]) -> v, remove key and return the corresponding value.

        If key is not found, d is returned if given, otherwise :class:`KeyError` is
        raised.
        """
