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 martin.panter
Recipients martin.panter, serhiy.storchaka, xiang.zhang
Date 2016-07-14.04:14:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It is possible to make an infinite iterable, e.g. iter(int, 1), so it is definitely worth checking for overflow. The patch looks okay to me. An alternative would be to raise the error without trying to allocate Py_SSIZE_T_MAX first, but I am okay with either way.
Date User Action Args
2016-07-14 04:14:14martin.pantersetrecipients: + martin.panter, serhiy.storchaka, xiang.zhang
2016-07-14 04:14:14martin.pantersetmessageid: <>
2016-07-14 04:14:14martin.panterlinkissue27507 messages
2016-07-14 04:14:14martin.pantercreate