Jon Clements <[email protected]> added the comment:
The more I think about this - the shades of grey kick in.
D.from_fraction(F or creatable F)
Then it would be 'reasonable to assume' for a F.to_decimal() to exist.
Possibly with an optional context argument.
Then, what happens if I do D('2.45') * F(24 / 19)...
I'll leave it to the experts, but have noticed Raymond has ideas for this, but
not yet commented?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15136>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com