MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _remove

Method _remove

lib/sqlalchemy/util/_collections.py:276–279  ·  view source on GitHub ↗
(item, selfref=weakref.ref(self))

Source from the content-addressed store, hash-verified

274 # adapted from weakref.WeakKeyDictionary, prevent reference
275 # cycles in the collection itself
276 def _remove(item, selfref=weakref.ref(self)):
277 self = selfref()
278 if self is not None:
279 self._storage.remove(item)
280
281 self._remove = _remove
282 self._storage = [

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected