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

Method _update_loose

Lib/optparse.py:846–852  ·  view source on GitHub ↗

Update the option values from an arbitrary dictionary, using all keys from the dictionary regardless of whether they have a corresponding attribute in self or not.

(self, dict)

Source from the content-addressed store, hash-verified

844 setattr(self, attr, dval)
845
846 def _update_loose(self, dict):
847 """
848 Update the option values from an arbitrary dictionary,
849 using all keys from the dictionary regardless of whether
850 they have a corresponding attribute in self or not.
851 """
852 self.__dict__.update(dict)
853
854 def _update(self, dict, mode):
855 if mode == "careful":

Callers 1

_updateMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected