[Python-checkins] Tweak wording about Fraction and Decimal (GH-10904)

Raymond Hettinger webhook-mailer at python.org
Mon Dec 24 02:03:43 EST 2018


https://github.com/python/cpython/commit/7804e8c70cba201e51a35e704038fd882d810445
commit: 7804e8c70cba201e51a35e704038fd882d810445
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2018-12-23T23:03:40-08:00
summary:

Tweak wording about Fraction and Decimal (GH-10904)

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index c699553c02b9..d23e7e9b87ff 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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::



More information about the Python-checkins mailing list