Message262904
>> Were float to inherit from Rational, rather than Real ...
> This would break the Liskov substitution principle.
How so? Rational extends Real with only numerator, denominator and __float__. Isn't the existence of float.as_integer_ratio demonstration that numerator and denominator could be implemented? |
|
Date |
User |
Action |
Args |
2016-04-05 14:20:19 | robert_smallshire | set | recipients:
+ robert_smallshire, tim.peters, rhettinger, facundobatista, mark.dickinson, christian.heimes, skrah, serhiy.storchaka, Austin Bingham |
2016-04-05 14:20:19 | robert_smallshire | set | messageid: <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za> |
2016-04-05 14:20:19 | robert_smallshire | link | issue26680 messages |
2016-04-05 14:20:19 | robert_smallshire | create | |
|