Message 289660 - Python tracker
> I think an OverflowError is appropriate here for denoting the platform and implementation limitation. It's common that integer overflow on memory allocation in C code raises a MemoryError, not an OverflowError. >>> "x" * (2**60) Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError I suggest to raise a MemoryError.