]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Tweak wording about Fraction and Decimal (GH-10904)
authorAndre Delfino <adelfino@gmail.com>
Mon, 24 Dec 2018 07:03:40 +0000 (04:03 -0300)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 24 Dec 2018 07:03:40 +0000 (23:03 -0800)
Doc/library/stdtypes.rst

index c699553c02b90b1b38bb6acfc36ef76d2aef814e..d23e7e9b87ff81da9dd7b39d10a1e74827739dd7 100644 (file)
@@ -220,8 +220,8 @@ numbers for the machine on which your program is running is available
 in :data:`sys.float_info`.  Complex numbers have a real and imaginary
 part, which are each a floating point number.  To extract these parts
 from a complex number *z*, use ``z.real`` and ``z.imag``. (The standard
-library includes additional numeric types, :mod:`fractions` that hold
-rationals, and :mod:`decimal` that hold floating-point numbers with
+library includes the additional numeric types :mod:`fractions.Fraction`, for
+rationals, and :mod:`decimal.Decimal`, for floating-point numbers with
 user-definable precision.)
 
 .. index::