summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-11-23 16:27:17 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-11-23 16:27:17 (GMT)
commitdfb1562410c7c0646f7a2b7b9c6d1afb21f39852 (patch)
tree5e57a125c1d57e62156de482209b3170c4c69418
parentb7f09238d8599188a3278fd251914dbb67e0eb8a (diff)
downloadcpython-dfb1562410c7c0646f7a2b7b9c6d1afb21f39852.zip
cpython-dfb1562410c7c0646f7a2b7b9c6d1afb21f39852.tar.gz
cpython-dfb1562410c7c0646f7a2b7b9c6d1afb21f39852.tar.bz2
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. ........
-rw-r--r--Lib/fractions.py4
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