- 23 Şub, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 14 Şub, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3)` 31.7 usec/loop -> 9.2 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)'` 27.7 usec/loop -> 9.32 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'Fraction(f)' 31.9 usec/loop -> 14.3 usec/loop
-
- 12 Şub, 2008 2 kayıt (commit)
-
-
Mark Dickinson yazdı
test_fractions.py. This should have been part of the name change from Rational to Fraction.
-
Mark Dickinson yazdı
Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction
-
- 11 Şub, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
Fraction(1, 2) instead of Fraction(1,2).
-
- 10 Şub, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
with numbers.Rational. See issue #1682 for related discussion.
-
- 08 Şub, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
-
- 02 Şub, 2008 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 01 Şub, 2008 2 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
instances.
-
Jeffrey Yasskin yazdı
http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965.
-
- 31 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
this patch to py3k.
-
- 27 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
Raymond's advice.
-
- 25 Ock, 2008 2 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
-
- 24 Ock, 2008 3 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
Add first-cut at an approximation function (still needs rounding tweaks). Add continued fraction conversions.
-
- 19 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
__init__ to __new__ to enforce immutability, and remove "rational." from repr and the parens from str.
-
- 15 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
precision. This has been discussed at http://bugs.python.org/issue1682. It's useful primarily for teaching, but it also demonstrates how to implement a member of the numeric tower, including fallbacks for mixed-mode arithmetic. I expect to write a couple more patches in this area: * Rational.from_decimal() * Rational.trim/approximate() (maybe with different names) * Maybe remove the parentheses from Rational.__str__() * Maybe rename one of the Rational classes * Maybe make Rational('3/2') work.
-