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

Method valuerefs

Lib/weakref.py:245–255  ·  view source on GitHub ↗

Return a list of weak references to the values. The references are not guaranteed to be 'live' at the time they are used, so the result of calling the references needs to be checked before being used. This can be used to avoid creating references that will cause the

(self)

Source from the content-addressed store, hash-verified

243 d[key] = KeyedRef(o, self._remove, key)
244
245 def valuerefs(self):
246 """Return a list of weak references to the values.
247
248 The references are not guaranteed to be 'live' at the time
249 they are used, so the result of calling the references needs
250 to be checked before being used. This can be used to avoid
251 creating references that will cause the garbage collector to
252 keep the values around longer than needed.
253
254 """
255 return list(self.data.copy().values())
256
257 def __ior__(self, other):
258 self.update(other)

Callers 1

Calls 3

listClass · 0.85
valuesMethod · 0.45
copyMethod · 0.45

Tested by 1