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

Class B_with_slots_dict

Lib/test/test_descr.py:4260–4261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4258 self.assertEqual(repr(b), '<A>')
4259
4260 class B_with_slots_dict:
4261 __slots__ = ('x', '__dict__')
4262 b = B_with_slots_dict()
4263 with self.assertRaisesRegex(TypeError, 'layout differs'):
4264 B_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…