Message 217957 - Python tracker
I want to use big numbers for length.
>>> class A:
... __len__ = lambda self: 10 ** 20
>>> len(A())
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
len(A())
OverflowError: cannot fit 'int' into an index-sized integer