Clement Rouault added the comment: Here is a first try for a patch.
There are two points I am not sure about: 1) The message for the OverflowError: is that explicit enough ? 2) The behaviour of the iterator after the raise of OverflowError. With this patch every call to `next(it)` where `it` have overflowed will raise `OverflowError` again. Does this behaviour seems correct our should it raise StopIteration after the first OverflowError ? ---------- keywords: +patch Added file: http://bugs.python.org/file37375/issue22939.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22939> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com