- 14 Feb, 2008 6 commits
-
-
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 11 commits
-
-
Mark Dickinson authored
with numbers.Rational. See issue #1682 for related discussion.
-
Raymond Hettinger authored
-
Mark Dickinson authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Mark Dickinson authored
-
Eric Smith authored
-
Mark Dickinson authored
of subclasses of Rational. (See discussion in issue #1682.)
-
Nick Coghlan authored
-
Raymond Hettinger authored
-
Eric Smith authored
_PyLong_Format. In longobject.c, changed long_format to _PyLong_Format. In intobject.c, changed uses of PyOS_snprintf to _PyInt_Format instead. _PyLong_Format is similar to py3k's routine of the same name, except it has 2 additional parameters: addL and newstyle. addL was existing in long_format, and controls adding the trailing "L". This is unneeded in py3k. newstyle is used to control whether octal prepends "0" (the pre-2.6 style), or "0o" (the 3.0 sytle). PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and Syntax) and PEP 3101 (Advanced String Formatting). This changeset does not need merging into py3k.
-