MCPcopy Index your code
hub / github.com/python/cpython / _update

Method _update

Lib/optparse.py:854–860  ·  view source on GitHub ↗
(self, dict, mode)

Source from the content-addressed store, hash-verified

852 self.__dict__.update(dict)
853
854 def _update(self, dict, mode):
855 if mode == "careful":
856 self._update_careful(dict)
857 elif mode == "loose":
858 self._update_loose(dict)
859 else:
860 raise ValueError("invalid update mode: %r" % mode)
861
862 def read_module(self, modname, mode="careful"):
863 __import__(modname)

Callers 2

read_moduleMethod · 0.95
read_fileMethod · 0.95

Calls 2

_update_carefulMethod · 0.95
_update_looseMethod · 0.95

Tested by

no test coverage detected