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

Method copy

tools/python-3.11.9-amd64/Lib/weakref.py:430–437  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 self.data[ref(key, self._remove)] = value
429
430 def copy(self):
431 new = WeakKeyDictionary()
432 with _IterationGuard(self):
433 for key, value in self.data.items():
434 o = key()
435 if o is not None:
436 new[o] = value
437 return new
438
439 __copy__ = copy
440

Callers 1

__or__Method · 0.95

Calls 3

_IterationGuardClass · 0.90
WeakKeyDictionaryClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected