INNER CODE UNIT · Python

get

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

    def get(self, key: object, default: object = None) -> object:
        """Return the value for key if key is in the dictionary, else default.

        If default is not given, it defaults to None, so that this method never
        raises a KeyError.

        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
            mapped, then default is returned. If default was not provided,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…