[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

Raymond Hettinger report at bugs.python.org
Wed Jun 25 17:57:24 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

+1 on removing the L. Also, it would be nice if reduced fractions were 
restored to ints after the gcd step:

>>> Fraction(1*10**18, 3*10**18)
Fraction(1L, 3L)

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


More information about the Python-bugs-list mailing list