Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #8294: Allow float and Decimal arguments in Fraction constructor. | Mark Dickinson | 2010-04-02 | 1 | -1/+26 |
| | |||||
* | Make Fraction to complex comparisons with <=, <, >= or > raise TypeError. | Mark Dickinson | 2010-03-27 | 1 | -2/+15 |
| | |||||
* | #7092: Silence more py3k warnings. Patch by Florent Xicluna. | Ezio Melotti | 2010-02-03 | 1 | -0/+7 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -9/+0 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -0/+9 |
| | | | | Patch by flox | ||||
* | Issue #6431: Fix Fraction comparisons with unknown types, and with | Mark Dickinson | 2009-07-18 | 1 | -0/+126 |
| | | | | 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 | -1/+7 |
| | | | | now accepts arbitrary Rational instances. | ||||
* | Issue #5812: make Fraction('1e-6') valid. Backport of r71806. | Mark Dickinson | 2009-04-22 | 1 | -4/+8 |
| | |||||
* | Issue 4998: __slots__ on Fractions was useless. | Raymond Hettinger | 2009-01-20 | 1 | -0/+5 |
| | |||||
* | Manually merge r68095,68186,68187,68188,68190 from 2.6 branch. | Georg Brandl | 2009-01-03 | 1 | -0/+2 |
| | |||||
* | Issue 3285: Fractions from_float() and from_decimal() accept Integral arguments. | Raymond Hettinger | 2008-07-10 | 1 | -8/+4 |
| | |||||
* | Issue 3287: Raise correct exception for float inputs. | Raymond Hettinger | 2008-07-10 | 1 | -4/+4 |
| | |||||
* | Remove trailing 'L's from numerator and denominator in the | Mark Dickinson | 2008-06-27 | 1 | -0/+4 |
| | | | | 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 | -9/+9 |
| | | | | characters more visible | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -1/+1 |
| | |||||
* | Performance optimizations on Fraction's constructor. | Jeffrey Yasskin | 2008-02-14 | 1 | -4/+4 |
| | | | | | | | | | | | ./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 | ||||
* | Replace R=fractions.Fraction with F=fractions.Fraction in | Mark Dickinson | 2008-02-12 | 1 | -189/+189 |
| | | | | | test_fractions.py. This should have been part of the name change from Rational to Fraction. | ||||
* | Implementation of Fraction.limit_denominator. | Mark Dickinson | 2008-02-12 | 1 | -22/+9 |
| | | | | | 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/+412 |
with numbers.Rational. See issue #1682 for related discussion. |