summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fractions.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8294: Allow float and Decimal arguments in Fraction constructor.Mark Dickinson2010-04-021-1/+26
|
* Make Fraction to complex comparisons with <=, <, >= or > raise TypeError.Mark Dickinson2010-03-271-2/+15
|
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-0/+7
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-9/+0
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-0/+9
| | | | Patch by flox
* Issue #6431: Fix Fraction comparisons with unknown types, and withMark Dickinson2009-07-181-0/+126
| | | | float infinities and nans. Backport of r74078 from py3k.
* Issue #5812: The two-argument form of the Fraction constructorMark Dickinson2009-04-241-1/+7
| | | | now accepts arbitrary Rational instances.
* Issue #5812: make Fraction('1e-6') valid. Backport of r71806.Mark Dickinson2009-04-221-4/+8
|
* Issue 4998: __slots__ on Fractions was useless.Raymond Hettinger2009-01-201-0/+5
|
* Manually merge r68095,68186,68187,68188,68190 from 2.6 branch.Georg Brandl2009-01-031-0/+2
|
* Issue 3285: Fractions from_float() and from_decimal() accept Integral arguments.Raymond Hettinger2008-07-101-8/+4
|
* Issue 3287: Raise correct exception for float inputs.Raymond Hettinger2008-07-101-4/+4
|
* Remove trailing 'L's from numerator and denominator in theMark Dickinson2008-06-271-0/+4
| | | | repr() of a Fraction instance.
* Use repr() for bad input strings; this makes the empty string or binary ↵Andrew M. Kuchling2008-06-211-9/+9
| | | | characters more visible
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Performance optimizations on Fraction's constructor.Jeffrey Yasskin2008-02-141-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 inMark Dickinson2008-02-121-189/+189
| | | | | test_fractions.py. This should have been part of the name change from Rational to Fraction.
* Implementation of Fraction.limit_denominator.Mark Dickinson2008-02-121-22/+9
| | | | | Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction
* Put an extra space into the repr of a Fraction:Mark Dickinson2008-02-111-1/+1
| | | | Fraction(1, 2) instead of Fraction(1,2).
* Rename rational.Rational to fractions.Fraction, to avoid name clashMark Dickinson2008-02-101-0/+412
with numbers.Rational. See issue #1682 for related discussion.