diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 16:28:18 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 16:28:18 (GMT) |
commit | 41ece0694d5c4e0955f84c55b521b44bf35628ee (patch) | |
tree | 8f09f9961299213e753df4ef78567f6985a8426f /Lib/fractions.py | |
parent | 45711a723707b309c14c38da4dbf593fa4a57a80 (diff) | |
download | cpython-41ece0694d5c4e0955f84c55b521b44bf35628ee.zip cpython-41ece0694d5c4e0955f84c55b521b44bf35628ee.tar.gz cpython-41ece0694d5c4e0955f84c55b521b44bf35628ee.tar.bz2 |
Merged revisions 76458 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k
................
r76458 | mark.dickinson | 2009-11-23 16:27:17 +0000 (Mon, 23 Nov 2009) | 9 lines
Merged revisions 76456 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76456 | mark.dickinson | 2009-11-23 16:23:43 +0000 (Mon, 23 Nov 2009) | 2 lines
Issue #7379: Fix incorrect doctest for Fraction.limit_denominator.
........
................
Diffstat (limited to 'Lib/fractions.py')
-rw-r--r-- | Lib/fractions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py index bc7b200..27b27f4 100644 --- a/Lib/fractions.py +++ b/Lib/fractions.py @@ -162,8 +162,8 @@ class Fraction(numbers.Rational): Fraction(22, 7) >>> Fraction('3.141592653589793').limit_denominator(100) Fraction(311, 99) - >>> Fraction(1234, 5678).limit_denominator(10000) - Fraction(1234, 5678) + >>> Fraction(4321, 8765).limit_denominator(10000) + Fraction(4321, 8765) """ # Algorithm notes: For any real number x, define a *best upper |