[Python-ideas] Fix some special cases in Fractions?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 30 02:08:03 EDT 2018


Jeroen Demeyer wrote:
> On 2018-08-30 06:39, Neil Girdhar wrote:
> 
>> I'd like these to be Fraction(1), Fraction(1), and Fraction(0).
> 
> Why? I cannot think of any natural use case why you would want Fractions 
> for a few special cases on an operation which returns non-Fractions 
> generically.

Also, Fraction(1) for the second case would be flat-out wrong.

-- 
Greg


More information about the Python-ideas mailing list