Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #8294: Allow float and Decimal arguments in Fraction constructor. | Mark Dickinson | 2010-04-02 | 1 | -8/+54 |
| | |||||
* | Make Fraction to complex comparisons with <=, <, >= or > raise TypeError. | Mark Dickinson | 2010-03-27 | 1 | -2/+4 |
| | |||||
* | remove the svn:executable property from files that don't have shebang lines | Benjamin Peterson | 2010-03-05 | 1 | -0/+0 |
| | |||||
* | Issue #7379: Fix incorrect doctest for Fraction.limit_denominator. | Mark Dickinson | 2009-11-23 | 1 | -2/+2 |
| | |||||
* | Issue #6431: Fix Fraction comparisons with unknown types, and with | Mark Dickinson | 2009-07-18 | 1 | -30/+32 |
| | | | | float infinities and nans. Backport of r74078 from py3k. | ||||
* | Issue #5812: The two-argument form of the Fraction constructor | Mark Dickinson | 2009-04-24 | 1 | -12/+21 |
| | | | | now accepts arbitrary Rational instances. | ||||
* | Issue #5812: make Fraction('1e-6') valid. Backport of r71806. | Mark Dickinson | 2009-04-22 | 1 | -19/+26 |
| | |||||
* | Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. | Georg Brandl | 2009-01-03 | 1 | -1/+1 |
| | |||||
* | Issue 3285: Fractions from_float() and from_decimal() accept Integral arguments. | Raymond Hettinger | 2008-07-10 | 1 | -2/+6 |
| | |||||
* | Use operator.index() instead of n.__index__(). | Raymond Hettinger | 2008-07-10 | 1 | -5/+2 |
| | |||||
* | Issue 3287: Raise correct exception for float inputs. | Raymond Hettinger | 2008-07-10 | 1 | -3/+5 |
| | |||||
* | Remove trailing 'L's from numerator and denominator in the | Mark Dickinson | 2008-06-27 | 1 | -1/+1 |
| | | | | repr() of a Fraction instance. | ||||
* | Use repr() for bad input strings; this makes the empty string or binary ↵ | Andrew M. Kuchling | 2008-06-21 | 1 | -1/+1 |
| | | | | characters more visible | ||||
* | The __all__ variable forgot to expose the gcd() function. | Raymond Hettinger | 2008-05-08 | 1 | -1/+1 |
| | |||||
* | Change simple instances (in Fraction) of self.numerator and self.denominator to | Jeffrey Yasskin | 2008-02-14 | 1 | -28/+28 |
| | | | | | | 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. | ||||
* | Performance optimizations on Fraction's constructor. | Jeffrey Yasskin | 2008-02-14 | 1 | -11/+9 |
| | | | | | | | | | | | ./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 | ||||
* | Revert change in r60712: turn alternate constructors back into | Mark Dickinson | 2008-02-12 | 1 | -13/+13 |
| | | | | classmethods instead of staticmethods. | ||||
* | Implementation of Fraction.limit_denominator. | Mark Dickinson | 2008-02-12 | 1 | -34/+52 |
| | | | | | Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction | ||||
* | Put an extra space into the repr of a Fraction: | Mark Dickinson | 2008-02-11 | 1 | -1/+1 |
| | | | | Fraction(1, 2) instead of Fraction(1,2). | ||||
* | Rename rational.Rational to fractions.Fraction, to avoid name clash | Mark Dickinson | 2008-02-10 | 1 | -0/+520 |
with numbers.Rational. See issue #1682 for related discussion. |