消息 [262904]
>> 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? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2016-04-05 14:20:19 | robert_smallshire | 修改 | recipients:
+ robert_smallshire, tim.peters, rhettinger, facundobatista, mark.dickinson, christian.heimes, skrah, serhiy.storchaka, Austin Bingham |
| 2016-04-05 14:20:19 | robert_smallshire | 修改 | messageid: <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za> |
| 2016-04-05 14:20:19 | robert_smallshire | 链接 | issue26680 messages |
| 2016-04-05 14:20:19 | robert_smallshire | 创建 | |
|