summaryrefslogtreecommitdiffstats
path: root/Doc/library/fractions.rst
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-06-24 14:26:24 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-06-24 14:26:24 (GMT)
commit79edbd51fe148901ace14dcaaa54fe04a46cc6fd (patch)
treee99fb177f780312c805036362a4b924ebae674f7 /Doc/library/fractions.rst
parentb151a45a69fed1d66b21f865e07c7242faf711c8 (diff)
downloadcpython-79edbd51fe148901ace14dcaaa54fe04a46cc6fd.zip
cpython-79edbd51fe148901ace14dcaaa54fe04a46cc6fd.tar.gz
cpython-79edbd51fe148901ace14dcaaa54fe04a46cc6fd.tar.bz2
Remove trailing 'L's from integers in limit_denominator examples.
Diffstat (limited to 'Doc/library/fractions.rst')
-rw-r--r--Doc/library/fractions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst
index dbbde4a..e0e4bdd 100644
--- a/Doc/library/fractions.rst
+++ b/Doc/library/fractions.rst
@@ -51,15 +51,15 @@ Rational number class.
>>> from fractions import Fraction
>>> Fraction('3.1415926535897932').limit_denominator(1000)
- Fraction(355L, 113L)
+ Fraction(355, 113)
or for recovering a rational number that's represented as a float:
>>> from math import pi, cos
>>> Fraction.from_float(cos(pi/3))
- Fraction(4503599627370497L, 9007199254740992L)
+ Fraction(4503599627370497, 9007199254740992)
>>> Fraction.from_float(cos(pi/3)).limit_denominator()
- Fraction(1L, 2L)
+ Fraction(1, 2)
.. method:: __floor__()