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

Method remove

Lib/importlib/_bootstrap.py:83–91  ·  view source on GitHub ↗
(wr)

Source from the content-addressed store, hash-verified

81
82 @staticmethod
83 def remove(wr):
84 nonlocal self_weakref
85
86 self = self_weakref()
87 if self is not None:
88 if self._iterating:
89 self._pending_removals.append(wr.key)
90 else:
91 _weakref._remove_dead_weakref(self.data, wr.key)
92
93 self._KeyedRef = KeyedRef
94 self.clear()

Callers 15

mainFunction · 0.45
SaveMethod · 0.45
GetExtensionsMethod · 0.45
listmodulesMethod · 0.45
load_extensionsMethod · 0.45
storeMethod · 0.45
expandMethod · 0.45
destroyMethod · 0.45
unbindMethod · 0.45
unbindMethod · 0.45
event_deleteMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected