INNER CODE UNIT · Python

pop

pdpipe/pdpipe · src/pdpipe/core.py:166

    def pop(self, key: object, default: object) -> object:
        """Remove the given key from this dict and return its mapped value.

        If key is in the dictionary, remove it and return its value, else
        return default. If default is not given and key is not in the
        dictionary, a KeyError is raised.

        Parameters
        ----------
        key : object
            The key of the mapping to get.
        default : object
            The the key is not found, this value is returned instead.

        Returns
        -------
        object
            The value mapped to the given key in this dictionary. If it is not

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…