Message175570
The description of OverflowError is that is is "raised when the result of an arithmetic operation is too large to be represented", so it doesn't actually need to overflow. Still, I see that ∞ actually isn't too large to be represented (and the documentation points out that integer operations will raise MemoryError instead of OverflowError). So yes, ValueError seems more appropriate.
+1 for fixing this in 3.4, only. |
|
Date |
User |
Action |
Args |
2012-11-14 15:09:39 | loewis | set | recipients:
+ loewis, rhettinger, mark.dickinson, casevh, ezio.melotti, asvetlov, skrah |
2012-11-14 15:09:39 | loewis | set | messageid: <1352905779.21.0.818574653621.issue16469@psf.upfronthosting.co.za> |
2012-11-14 15:09:39 | loewis | link | issue16469 messages |
2012-11-14 15:09:38 | loewis | create | |
|