From 79edbd51fe148901ace14dcaaa54fe04a46cc6fd Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Tue, 24 Jun 2008 14:26:24 +0000 Subject: Remove trailing 'L's from integers in limit_denominator examples. --- Doc/library/fractions.rst | 6 +++--- 1 file 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__() -- cgit v0.12