Mark Dickinson <dicki...@gmail.com> added the comment:

After discussions on IRC, I'm going to close this as rejected.  Convergence of 
the float and Decimal APIs is a nice idea, but in this case it's not clear that 
it really works.  In particular, for duck typing to be sensible, int and 
Fraction would also have to grow an as_integer_ratio method.  And that seems a 
superfluous when those two types already have the same functionality in the 
form of .numerator and .denominator attributes.

I also agree with Raymond that we shouldn't be fattening the decimal API 
without good reason.

Alexander:  wouldn't conversion to Fraction solve the issue in this case?  The 
Fraction constructor accepts floats, Decimal instances and ints directly.

----------
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to