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

Class HugeLen

Lib/test/test_builtin.py:1337–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335 return -10
1336 self.assertRaises(ValueError, len, NegativeLen())
1337 class HugeLen:
1338 def __len__(self):
1339 return sys.maxsize + 1
1340 self.assertRaises(OverflowError, len, HugeLen())
1341 class HugeNegativeLen:
1342 def __len__(self):

Callers 1

test_lenMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_lenMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…