[issue8257] Decimal constructor to accept float
report at bugs.python.org
Fri Apr 2 19:06:41 CEST 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list