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.13:03:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616504627.78.0.253653247438.issue43602@roundup.psfhosted.org>
In-reply-to
Content
> Seems so, for a static typing.  But Python is a dynamically typed
> language, isn't?

I think we're talking at cross purposes. Static and dynamic typing have nothing to do with this.

What do you think the result of `1.0 + Decimal(1)` should be, and more importantly why? Possible options are:

- Decimal('2')
- 2.0 (a float)
- a `TypeError` (as now)
- some kind of horrible user-configurable-global-state-dependent answer

Bear in mind that you have to pick a behaviour that's a good default choice for all potential application domains, and that's *hard*. ("In the face of ambiguity ...", and all that.)
History
Date User Action Args
2021-03-23 13:03:47mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, docs@python, Sergey.Kirpichev
2021-03-23 13:03:47mark.dickinsonsetmessageid: <1616504627.78.0.253653247438.issue43602@roundup.psfhosted.org>
2021-03-23 13:03:47mark.dickinsonlinkissue43602 messages
2021-03-23 13:03:47mark.dickinsoncreate