Message 102181 - Python tracker (original) (raw)
Added the requires decorator as requested. Committed in r79602. Will backport to 2.7 this weekend.
And yes, I agree that Fraction(somedecimal) should work too. It would be weird to have Fraction("1.1") work but not Fraction(Decimal("1.1")).
Mark, I do think we should have decimal+float-->float in 2.7 also. I don't see any reason to have the two versions diverge on this issue.