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

Class B_int

Lib/test/test_descr.py:4316–4317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4314 def __repr__(self):
4315 return '<A_int>'
4316 class B_int(int):
4317 __slots__ = ()
4318 b = B_int(42)
4319 with self.assertRaisesRegex(TypeError, 'layout differs'):
4320 B_int.__bases__ = (object,)

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…