[issue21559] OverflowError should not happen for integer operations

R. David Murray report at bugs.python.org
Mon Jun 2 20:45:05 CEST 2014


R. David Murray added the comment:

"Integers are outside a required range" makes me wonder why it isn't a ValueError.  An OverflowError should be the result of a *computation*, IMO, not a bounds check.

So, maybe add your sentence with the additional phrase "for historical reasons"? :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21559>
_______________________________________


More information about the Python-bugs-list mailing list