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

Class longclone

Lib/test/test_descr.py:2920–2921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2918 # Because octlong overrides __add__, we can't check the absence of +0
2919 # optimizations using octlong.
2920 class longclone(int):
2921 pass
2922 a = longclone(1)
2923 self.assertIs((a + 0).__class__, int)
2924 self.assertIs((0 + a).__class__, int)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…