[issue29534] _decimal difference with _pydecimal

Andrew Nester report at bugs.python.org
Mon Feb 13 07:04:27 EST 2017


Andrew Nester added the comment:

actually, it's more related to subclassing, because the problem comes from the fact that before the fix __init__ method receives value as int not Decimal if int passed to from_float call. 
That's why only subclasses of Decimal can see difference in arguments received by __init__

----------

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


More information about the Python-bugs-list mailing list