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

Class B_with_slots

Lib/test/test_descr.py:4250–4251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4248 B_with_dict_weakref.__bases__ = (object,)
4249
4250 class B_with_slots:
4251 __slots__ = ('x',)
4252 b = B_with_slots()
4253 with self.assertRaisesRegex(TypeError, 'layout differs'):
4254 B_with_slots.__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…