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

Class Weak

Lib/test/test_descr.py:2413–2414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2411 else:
2412 self.fail("weakref.ref(no) should be illegal")
2413 class Weak(object):
2414 __slots__ = ['foo', '__weakref__']
2415 yes = Weak()
2416 r = weakref.ref(yes)
2417 self.assertEqual(r(), yes)

Callers 1

test_weakrefsMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_weakrefsMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…