Message 262904 - Python tracker (original) (raw)
Message262904
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: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 |