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

Method __setitem__

Lib/weakref.py:138–139  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

136 return "<%s at %#x>" % (self.__class__.__name__, id(self))
137
138 def __setitem__(self, key, value):
139 self.data[key] = KeyedRef(value, self._remove, key)
140
141 def copy(self):
142 new = WeakValueDictionary()

Callers

nothing calls this directly

Calls 1

KeyedRefClass · 0.70

Tested by

no test coverage detected