- 14 Feb, 2008 15 commits
-
-
Thomas Heller authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Christian Heimes authored
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
when trying to remove a pid that in not in the activechildren list.
-
Jeffrey Yasskin authored
self._numerator and self._denominator. This speeds abs() up from 12.2us to 10.8us and trunc() from 2.07us to 1.11us. This doesn't change _add and friends because they're more complicated.
-
Jeffrey Yasskin authored
./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
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Kurt B. Kaiser authored
-
- 13 Feb, 2008 5 commits
-
-
Thomas Heller authored
-
Thomas Heller authored
-
Brett Cannon authored
works. Thanks to Jeroen Ruigrok van der Werven for the fix.
-
Jeffrey Yasskin authored
./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'isinstance(3, Fraction); isinstance(f, Fraction)' from 12.3 usec/loop to 3.44 usec/loop and ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)' from 48.8 usec to 23.6 usec by avoiding genexps and sets in __instancecheck__ and inlining the common case from __subclasscheck__.
-
Georg Brandl authored
result on Windows.
-
- 12 Feb, 2008 10 commits
-
-
Mark Dickinson authored
test_fractions.py. This should have been part of the name change from Rational to Fraction.
-
Mark Dickinson authored
classmethods instead of staticmethods.
-
Mark Dickinson authored
Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction
-
Raymond Hettinger authored
-
Martin v. Löwis authored
implements the chunked encoding incorrectly. Will backport to 2.5.
-
Kurt B. Kaiser authored
-
Martin v. Löwis authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 11 Feb, 2008 8 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Lars Gustäbel authored
-
Raymond Hettinger authored
-
Mark Dickinson authored
Fraction(1, 2) instead of Fraction(1,2).
-
Christian Heimes authored
-
- 10 Feb, 2008 2 commits
-
-
Mark Dickinson authored
with numbers.Rational. See issue #1682 for related discussion.
-
Raymond Hettinger authored
-