Message270362
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:14 | martin.panter | set | recipients:
+ martin.panter, serhiy.storchaka, xiang.zhang |
2016-07-14 04:14:14 | martin.panter | set | messageid: <1468469654.73.0.779451185502.issue27507@psf.upfronthosting.co.za> |
2016-07-14 04:14:14 | martin.panter | link | issue27507 messages |
2016-07-14 04:14:14 | martin.panter | create | |
|