Message227163
> 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 |
|
Date |
User |
Action |
Args |
2014-09-20 16:44:52 | belopolsky | set | recipients:
+ belopolsky, rhettinger, pitrou, casevh, skrah |
2014-09-20 16:44:52 | belopolsky | set | messageid: <1411231492.71.0.0479328543707.issue22444@psf.upfronthosting.co.za> |
2014-09-20 16:44:52 | belopolsky | link | issue22444 messages |
2014-09-20 16:44:52 | belopolsky | create | |
|