[issue15136] Decimal accepting Fraction
report at bugs.python.org
Fri Jun 22 14:48:33 CEST 2012
Mark Dickinson <dickinsm at gmail.com> added the comment:
> would not a classmethod of .from_fraction be welcome?
That depends. :-) Certainly a new classmethod seems better to me than extending the constructor to allow Fractions. I'm not convinced that there's a real need for this feature, though, especially given how easy it is do directly.
So I'm -1 on extending the constructor, -0 on adding a .from_fraction method.
I'm adding other decimally people to the nosy for their opinions.
versions: +Python 3.3
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list