Mark Dickinson <[email protected]> added the comment:
> 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.)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com