MCPcopy Create free account
hub / github.com/python/cpython / C_with_slots_dict

Class C_with_slots_dict

Lib/test/test_descr.py:4298–4299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4296 self.assertEqual(repr(c), '<A_with_slots>')
4297
4298 class C_with_slots_dict(A_with_slots):
4299 pass
4300 c = C_with_slots_dict()
4301 with self.assertRaisesRegex(TypeError, 'layout differs'):
4302 C_with_slots_dict.__bases__ = (A_with_dict_weakref,)

Callers 1

test_mutable_basesMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_mutable_basesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…