Mark Dickinson <dicki...@gmail.com> added the comment: Unfortunately, that line is wrong (or at least incomplete), since decimals in exponential form are also accepted:
>>> Fraction('2.3e4') Fraction(23000, 1) I could try to reinstate a fixed version. Attaching a second version of the patch: same as the first, except for some doc tweaks. (Rewording, markup fixes.) ---------- Added file: http://bugs.python.org/file16740/fraction_from_float2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8294> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com