Mark Dickinson added the comment:

> I think consistent behavior between int() and Fraction() is valuable.

Agreed.  If no-one objects I'll fix the Decimal -> Fraction and float -> 
Fraction conversions to match what Decimal -> int and float -> int currently do 
(ValueError and OverflowError).

Then we can open a new issue to discuss having infinities give ValueError 
versus OverflowError for all four cases of {float, Decimal} -> {int, Fraction}.


Python tracker <>
Python-bugs-list mailing list

Reply via email to