MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / update

Method update

tools/python-3.11.9-amd64/Lib/weakref.py:510–518  ·  view source on GitHub ↗
(self, dict=None, /, **kwargs)

Source from the content-addressed store, hash-verified

508 return self.data.setdefault(ref(key, self._remove),default)
509
510 def update(self, dict=None, /, **kwargs):
511 d = self.data
512 if dict is not None:
513 if not hasattr(dict, "items"):
514 dict = type({})(dict)
515 for key, value in dict.items():
516 d[ref(key, self._remove)] = value
517 if len(kwargs):
518 self.update(kwargs)
519
520 def __ior__(self, other):
521 self.update(other)

Callers 6

__init__Method · 0.95
__ior__Method · 0.95
__or__Method · 0.45
__ror__Method · 0.45
__or__Method · 0.45
__ror__Method · 0.45

Calls 2

typeClass · 0.50
itemsMethod · 0.45

Tested by

no test coverage detected