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

Class W

Lib/test/test_descr.py:1347–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345 weakref.ref(a)
1346
1347 class W(object):
1348 __slots__ = ["__weakref__"]
1349 a = W()
1350 self.assertHasAttr(a, "__weakref__")
1351 self.assertNotHasAttr(a, "__dict__")

Calls

no outgoing calls

Tested by 3

test_slots_specialMethod · 0.56