This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Oren Milman, mark.dickinson, serhiy.storchaka, vstinner
Date 2017-03-15.10:03:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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>

I suggest to raise a MemoryError.
Date User Action Args
2017-03-15 10:03:27vstinnersetrecipients: + vstinner, mark.dickinson, serhiy.storchaka, Oren Milman
2017-03-15 10:03:27vstinnersetmessageid: <>
2017-03-15 10:03:27vstinnerlinkissue29816 messages
2017-03-15 10:03:27vstinnercreate