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

Function _get_dump

Lib/test/libregrtest/refleak.py:20–25  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

18 import weakref
19
20 def _get_dump(cls):
21 # Reimplement _get_dump() for pure-Python implementation of
22 # the abc module (Lib/_py_abc.py)
23 registry_weakrefs = set(weakref.ref(obj) for obj in cls._abc_registry)
24 return (registry_weakrefs, cls._abc_cache,
25 cls._abc_negative_cache, cls._abc_negative_cache_version)
26
27
28def save_support_xml(filename):

Callers 2

_dump_registryMethod · 0.85
runtest_refleakFunction · 0.85

Calls 1

setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…