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 eric.araujo, eric.smith, mark.dickinson, rhettinger
Date 2010-04-02.09:17:14
SpamBayes Score 2.107351e-06
Marked as misclassified No
Message-id <1270199836.48.0.918975039114.issue8257@psf.upfronthosting.co.za>
In-reply-to
Content
Raymond, do you want this to go into 2.7 as well?  I'm assuming that we're not going to allow mixed-type float+decimal operations in 2.7.

Also, if we're doing this, it seems to me that all the reasons you give for the Decimal constructor accepting floats also apply to the Fraction constructor.

The patch looks fine to me.  The new testcase is specific to IEEE 754 binary64 floating-point format, so I'll slap a 'requires_IEEE_754' decorator on it (copying the definition from test_math.py), if that's okay.
History
Date User Action Args
2010-04-02 09:17:16mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, eric.smith, eric.araujo
2010-04-02 09:17:16mark.dickinsonsetmessageid: <1270199836.48.0.918975039114.issue8257@psf.upfronthosting.co.za>
2010-04-02 09:17:15mark.dickinsonlinkissue8257 messages
2010-04-02 09:17:15mark.dickinsoncreate