This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients casevh, ezio.melotti, mark.dickinson, rhettinger, skrah
Date 2012-11-14.08:23:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352881397.73.0.200476813421.issue16469@psf.upfronthosting.co.za>
In-reply-to
Content
Certainly TypeError seems inappropriate here, and using ValueError for conversions from NaN sounds good to me.

I'm not a big fan of the OverflowError for converting infinities to an integer:  nothing's actually overflowed here.  I think that should have been ValueError, too.  So either of ValueError or OverflowError works for me there.

I'd suggest fixing this for >= 3.4 only.
History
Date User Action Args
2012-11-14 08:23:17mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, casevh, ezio.melotti, skrah
2012-11-14 08:23:17mark.dickinsonsetmessageid: <1352881397.73.0.200476813421.issue16469@psf.upfronthosting.co.za>
2012-11-14 08:23:17mark.dickinsonlinkissue16469 messages
2012-11-14 08:23:17mark.dickinsoncreate