Message227165
>> What should Decimal('1e123456')//1 return?
>
> I think Decimal case should be considered separately. Note that unlike float, they are not part of the numerical tower, so PEP 3141 arguments don't apply:
>
>>>> isinstance(1.0, numbers.Real)
> True
>>>> isinstance(decimal.Decimal(1), numbers.Real)
> False
>
I maintain gmpy2 and I've had requests to support the numeric tower.
gmpy2 has integral, rational, real, and complex types so I should be
able to. |
|
Date |
User |
Action |
Args |
2014-09-20 17:13:22 | casevh | set | recipients:
+ casevh, rhettinger, belopolsky, pitrou, skrah |
2014-09-20 17:13:22 | casevh | link | issue22444 messages |
2014-09-20 17:13:22 | casevh | create | |
|