[issue5812] Fraction('1e6') should be valid.

Mark Dickinson report at bugs.python.org
Wed Apr 22 14:00:29 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

> Also, it would be nice if the Fraction constructor accepted both a
> numerator and denominator that we also fractions.

This makes sense to me.  It reminds me of the way that complex(real,
imag) allows real and imag to be complex numbers, and does the 'right
thing'.

----------

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


More information about the Python-bugs-list mailing list