Message232282
Thanks for the comments.
I corrected the patch and updated the test. I also added a test that check the behavior of setstate with negative indice.
Just one question:
> __setstate__ must implement the same check.
Why should __setstate__ check for PY_SSIZE_T_MAX (throwing OverflowError when unpickling) if the check will be done when calling next on the resulting iterator ? |
|
Date |
User |
Action |
Args |
2014-12-07 21:26:59 | hakril | set | recipients:
+ hakril, rhettinger, mark.dickinson, vstinner, r.david.murray, serhiy.storchaka |
2014-12-07 21:26:59 | hakril | set | messageid: <1417987619.48.0.191261477246.issue22939@psf.upfronthosting.co.za> |
2014-12-07 21:26:59 | hakril | link | issue22939 messages |
2014-12-07 21:26:59 | hakril | create | |
|