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

Method __init__

python/pyfory/lib/collection.py:169–171  ·  view source on GitHub ↗
(self, weakcontainer)

Source from the content-addressed store, hash-verified

167 # This technique should be relatively thread-safe (since sets are).
168
169 def __init__(self, weakcontainer):
170 # Don't create cycles
171 self.weakcontainer = IdentityWeakRef(weakcontainer)
172
173 def __enter__(self):
174 w = self.weakcontainer()

Callers

nothing calls this directly

Calls 1

IdentityWeakRefClass · 0.85

Tested by

no test coverage detected