[issue29534] _decimal difference with _pydecimal

Mark Dickinson report at bugs.python.org
Mon Feb 13 07:03:38 EST 2017


Mark Dickinson added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29534>
_______________________________________


More information about the Python-bugs-list mailing list