[issue15136] Decimal accepting Fraction
Mark Dickinson
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>
<http://bugs.python.org/issue15136>
_______________________________________
More information about the Python-bugs-list
mailing list