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 andrewnester, arigo, mark.dickinson, rhettinger, skrah
Date 2017-02-13.12:03:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486987418.55.0.887259549446.issue29534@psf.upfronthosting.co.za>
In-reply-to
Content
BTW, as a user, I'd expect `Decimal.from_float` to simply coerce its input to float if given an input that isn't actually a float in the first place; the fact that it has special handling in place for int inputs (and that that special handling takes the form of an isinstance check, rather than something more duck-typed) is surprising.
History
Date User Action Args
2017-02-13 12:03:38mark.dickinsonsetrecipients: + mark.dickinson, arigo, rhettinger, skrah, andrewnester
2017-02-13 12:03:38mark.dickinsonsetmessageid: <1486987418.55.0.887259549446.issue29534@psf.upfronthosting.co.za>
2017-02-13 12:03:38mark.dickinsonlinkissue29534 messages
2017-02-13 12:03:38mark.dickinsoncreate