MCPcopy Create free account
hub / github.com/apache/fory / __setitem__

Method __setitem__

python/pyfory/lib/collection.py:90–91  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

88 return "<%s at %#x>" % (self.__class__.__name__, id(self))
89
90 def __setitem__(self, key, value):
91 self.data[IdentityWeakRef(key, self._remove)] = value
92
93 def get(self, key, default=None):
94 return self.data.get(IdentityWeakRef(key), default)

Callers

nothing calls this directly

Calls 1

IdentityWeakRefClass · 0.85

Tested by

no test coverage detected