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).
History
Date User Action Args
2014-12-30 11:50:40ronaldoussorensetrecipients: + ronaldoussoren, rhettinger, mark.dickinson, vstinner, r.david.murray, serhiy.storchaka, hakril
2014-12-30 11:50:39ronaldoussorensetmessageid: <1419940239.91.0.171489673109.issue22939@psf.upfronthosting.co.za>
2014-12-30 11:50:39ronaldoussorenlinkissue22939 messages
2014-12-30 11:50:39ronaldoussorencreate