STINNER Victor added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29816> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com