- 16 Feb, 2008 3 commits
-
-
Georg Brandl authored
-
Raymond Hettinger authored
-
Amaury Forgeot d'Arc authored
Skip this test created by r60830.
-
- 15 Feb, 2008 10 commits
-
-
Amaury Forgeot d'Arc authored
They still remain fragile. For example, a call to assertEqual currently does not make any allocation (which surprised me at first). But this can change when gc.collect also deletes the numerous "zombie frames" attached to each function.
-
Kurt B. Kaiser authored
in the config dialog would cause non-Python files to be colored as if they were Python source; improve use of ColorDelagator. Patch 1334. Tal Einat.
-
Kurt B. Kaiser authored
-
Amaury Forgeot d'Arc authored
-
Amaury Forgeot d'Arc authored
Also correct a possible crash using ABCs. This change is exactly the same as an optimisation done 5 years ago, but on slot *access*: http://svn.python.org/view?view=rev&rev=28297
-
Raymond Hettinger authored
-
Skip Montanaro authored
* place_summary_first copies the regrtest summary to the front of the file making it easier to scan quickly for problems. * count_failures gets the actual count of the number of failing tests, not just a 1 (some failures) or 0 (no failures).
-
Eric Smith authored
In PyNumber_ToBase, changed from an assert to returning an error when PyObject_Index() returns something other than an int or long. It should never be possible to trigger this, as PyObject_Index checks to make sure it returns an int or long.
-
Christian Heimes authored
Thanks to Thomas Herve for the fix.
-
Christian Heimes authored
Fixed repr() and str() of complex numbers. Complex suffered from the same problem as floats but I forgot to test and fix them.
-
- 14 Feb, 2008 16 commits
-
-
Christian Heimes authored
Use a static and interned string for __subclasscheck__ and __instancecheck__ as suggested by Thomas Heller in #2115
-
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 6 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
-