[issue15136] Decimal accepting Fraction

Jon Clements report at bugs.python.org
Fri Jun 22 14:40:18 CEST 2012


Jon Clements <joncle at googlemail.com> added the comment:

Mark - I bow to your superiour knowledge here. However, would not a classmethod of .from_fraction be welcome?

ie, I could write:

d = D.from_fraction(5, 7)

Then the documents labour the point about what you've mentioned?

Just an idea, but fully realise you're the man best suited to decide, so I'll be happy with whatever you say.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15136>
_______________________________________


More information about the Python-bugs-list mailing list