➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 robert_smallshire
收信人 Austin Bingham, christian.heimes, facundobatista, mark.dickinson, rhettinger, robert_smallshire, serhiy.storchaka, skrah, tim.peters
日期 2016-04-05.14:20:19
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za>
In-reply-to
内容
>> 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:19robert_smallshire修改recipients: + robert_smallshire, tim.peters, rhettinger, facundobatista, mark.dickinson, christian.heimes, skrah, serhiy.storchaka, Austin Bingham
2016-04-05 14:20:19robert_smallshire修改messageid: <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za>
2016-04-05 14:20:19robert_smallshire链接issue26680 messages
2016-04-05 14:20:19robert_smallshire创建