INNER CODE UNIT · Python

update

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

    def update(self, other: dict) -> None:
        """Update self with key-value pairs from another dict.

        This overwrite any existing mappings with keys that are also
        mapped in other.

        update() accepts either another dictionary object or an iterable of
        key/value pairs (as tuples or other iterables of length two). If
        keyword arguments are specified, the dictionary is then updated with
        those key/value pairs: d.update(red=1, blue=2).

        Parameters
        ----------
        other : dict
            The dict to get new key-value pairs from.

        """
        if not self._locked:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…