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 <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za>
In-reply-to
Content
>> 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?
History
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: <1459866019.75.0.0135797844922.issue26680@psf.upfronthosting.co.za>
2016-04-05 14:20:19robert_smallshirelinkissue26680 messages
2016-04-05 14:20:19robert_smallshirecreate