Author robert_smallshire
Recipients Austin Bingham, christian.heimes, facundobatista, mark.dickinson, rhettinger, robert_smallshire, serhiy.storchaka, skrah, tim.peters
Date 2016-04-05.14:20:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> 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:19robert_smallshiresetrecipients: + robert_smallshire, tim.peters, rhettinger, facundobatista, mark.dickinson, christian.heimes, skrah, serhiy.storchaka, Austin Bingham
2016-04-05 14:20:19robert_smallshiresetmessageid: <>
2016-04-05 14:20:19robert_smallshirelinkissue26680 messages
2016-04-05 14:20:19robert_smallshirecreate