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 mark.dickinson
Date 2012-11-15.21:17:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353014232.58.0.902552345028.issue16483@psf.upfronthosting.co.za>
In-reply-to
Content
[Broken out of the issue 16469 discussion about infinity -> Fraction and nan -> Fraction conversions.]

Conversions from float('inf') or Decimal('inf') to int (or Fraction) currently generate an OverflowError, while conversions from nan give a ValueError.  I'm of the opinion that it would make more sense for both conversions to generate ValueError, and I'm opening this issue to track discussion for that.  There's also a reasonable case that the behaviour is fine as it is, and there's little to be gained by changing it.
History
Date User Action Args
2012-11-15 21:17:12mark.dickinsonsetrecipients: + mark.dickinson
2012-11-15 21:17:12mark.dickinsonsetmessageid: <1353014232.58.0.902552345028.issue16483@psf.upfronthosting.co.za>
2012-11-15 21:17:12mark.dickinsonlinkissue16483 messages
2012-11-15 21:17:12mark.dickinsoncreate