Message233203
| Author |
ronaldoussoren |
| Recipients |
hakril, mark.dickinson, r.david.murray, rhettinger, ronaldoussoren, serhiy.storchaka, vstinner |
| Date |
2014年12月30日.11:50:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1419940239.91.0.171489673109.issue22939@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Is it necessary to raise when it_index is PY_SSIZE_T_MAX?
An alternative is to set it_index to -1 when there would be overflow and raise an exception on the next call to next(). That way a virtual sequence with PY_SSIZE_T_MAX-1 items would still work (instead of failing unexpectedly). |
|