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 <1468469654.73.0.779451185502.issue27507@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-14 04:14:14martin.pantersetrecipients: + martin.panter, serhiy.storchaka, xiang.zhang
2016-07-14 04:14:14martin.pantersetmessageid: <1468469654.73.0.779451185502.issue27507@psf.upfronthosting.co.za>
2016-07-14 04:14:14martin.panterlinkissue27507 messages
2016-07-14 04:14:14martin.pantercreate