Message227301
Mark,
Raymond suggested that "The PEP 3141 should be revised to say that floor division is defined to return a value that is *equal* to an Integral".
Since nan or inf are not *equal* to any Integral, the current implementation does not comply. In the absence of a recommendation in the PEP, implementers of new numeric types are left with little guidance because existing types are inconsistent:
>>> Decimal('inf') // 1
Decimal('Infinity')
>>> float('inf') // 1
nan |
|
Date |
User |
Action |
Args |
2014-09-22 19:40:43 | belopolsky | set | recipients:
+ belopolsky, tim.peters, rhettinger, mark.dickinson, pitrou, casevh, Arfrever, alex, skrah |
2014-09-22 19:40:43 | belopolsky | set | messageid: <1411414843.09.0.670249390173.issue22444@psf.upfronthosting.co.za> |
2014-09-22 19:40:43 | belopolsky | link | issue22444 messages |
2014-09-22 19:40:42 | belopolsky | create | |
|