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 Sergey.Kirpichev, docs@python, mark.dickinson, rhettinger
Date 2021-03-23.10:21:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616494909.96.0.966499377348.issue43602@roundup.psfhosted.org>
In-reply-to
Content
> I assume, the reason is: there is no lossless conversion to float's (and vice verse).

No, I don't think that's the reason (and in fact we _do_ have lossless conversion of floats to Decimal instances). IMO, the reasons are:

- it's not obvious what the *type* of the result of some_float + some_other_decimal should be, and

- it seems rather likely that any attempt to combine a float and a Decimal instance in this way is a bug, or at least something that hasn't been fully thought through by the developer, so we force the developer to make an explicit conversion

For historical discussions, see #1682.
History
Date User Action Args
2021-03-23 10:21:50mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, docs@python, Sergey.Kirpichev
2021-03-23 10:21:49mark.dickinsonsetmessageid: <1616494909.96.0.966499377348.issue43602@roundup.psfhosted.org>
2021-03-23 10:21:49mark.dickinsonlinkissue43602 messages
2021-03-23 10:21:49mark.dickinsoncreate