Message215852
Josh: well spotted; thanks for picking up on this. I was wondering whether anyone would pick up on that, and I should have mentioned the change explicitly.
I do think ValueError is the correct exception here. My interpretation of OverflowError is that it represents an overflow occurring during the computation, and that's not what's happening here: we're flat-out rejecting an input value because it's out of the range of values we accept. Stefan's message influenced me a bit in that direction, too. |
|
Date |
User |
Action |
Args |
2014-04-09 22:11:06 | mark.dickinson | set | recipients:
+ mark.dickinson, ncoghlan, pitrou, vstinner, skrah, gdr@garethrees.org, garybernhardt, josh.r |
2014-04-09 22:11:06 | mark.dickinson | set | messageid: <1397081466.91.0.459967160971.issue20539@psf.upfronthosting.co.za> |
2014-04-09 22:11:06 | mark.dickinson | link | issue20539 messages |
2014-04-09 22:11:06 | mark.dickinson | create | |
|