[issue22939] integer overflow in iterator object

Clement Rouault report at bugs.python.org
Sat Dec 6 21:08:16 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22939>
_______________________________________


More information about the Python-bugs-list mailing list