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, skrah, steven.daprano
Date 2012-08-03.07:06:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343977576.73.0.142770280543.issue15544@psf.upfronthosting.co.za>
In-reply-to
Content
Yep, Decimal.__float__ isn't too sophisticated.  Probably it should convert all Decimal quiet NaNs (at least) to float NaNs, keeping the sign if possible but discarding any payload.

Not so sure about signaling NaNs, though;  I think it would be fine for those to continue to raise ValueError (on the basis that doing pretty much anything with a signaling NaN should give an exception).
History
Date User Action Args
2012-08-03 07:06:16mark.dickinsonsetrecipients: + mark.dickinson, steven.daprano, skrah
2012-08-03 07:06:16mark.dickinsonsetmessageid: <1343977576.73.0.142770280543.issue15544@psf.upfronthosting.co.za>
2012-08-03 07:06:16mark.dickinsonlinkissue15544 messages
2012-08-03 07:06:15mark.dickinsoncreate