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

Method add

Lib/_weakrefset.py:45–46  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

43 return self.__class__, (list(self),), self.__getstate__()
44
45 def add(self, item):
46 self.data.add(ref(item, self._remove))
47
48 def clear(self):
49 self.data.clear()

Callers 3

updateMethod · 0.95

Calls

no outgoing calls