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

Method remove

python/pyfory/lib/collection.py:52–58  ·  view source on GitHub ↗
(k, selfref=IdentityWeakRef(self))

Source from the content-addressed store, hash-verified

50 self.data = {}
51
52 def remove(k, selfref=IdentityWeakRef(self)):
53 self = selfref()
54 if self is not None:
55 if self._iterating:
56 self._pending_removals.append(k)
57 else:
58 del self.data[k]
59
60 self._remove = remove
61 # A list of dead weakrefs (keys to be removed)

Callers 15

__exit__Method · 0.45
test_debug_compiledFunction · 0.45
registerSerializersMethod · 0.45
collect_schema_graphFunction · 0.45
compile_file_recursiveFunction · 0.45
strong_connectFunction · 0.45
visitMethod · 0.45
union_supports_traitMethod · 0.45
visitMethod · 0.45

Calls 2

IdentityWeakRefClass · 0.85
appendMethod · 0.45

Tested by 1

test_debug_compiledFunction · 0.36