Author loewis
Recipients asvetlov, casevh, ezio.melotti, loewis, mark.dickinson, rhettinger, skrah
Date 2012-11-14.15:09:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352905779.21.0.818574653621.issue16469@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-11-14 15:09:39loewissetrecipients: + loewis, rhettinger, mark.dickinson, casevh, ezio.melotti, asvetlov, skrah
2012-11-14 15:09:39loewissetmessageid: <1352905779.21.0.818574653621.issue16469@psf.upfronthosting.co.za>
2012-11-14 15:09:39loewislinkissue16469 messages
2012-11-14 15:09:38loewiscreate