Message232267
| Author |
vstinner |
| Recipients |
hakril, mark.dickinson, r.david.murray, rhettinger, serhiy.storchaka, vstinner |
| Date |
2014年12月07日.08:44:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAMpsgwY0iS9Z4vAgRPhMXUOZRL_7W+5AV=C2OeDWPb_D=POieA@mail.gmail.com> |
| In-reply-to |
<1417896496.07.0.755848796156.issue22939@psf.upfronthosting.co.za> |
| Content |
You should not rely on undefined behaviour: check if the index is greater
or equal than PY_SSIZET_MAX - 1. __setstate__ must implement the same check.
You must always raise an error, not hide it in a second call to next (raise
StopIteration). Your unit test must check this behaviour. |
|