[Python-checkins] bpo-30940: Updating round() docs. (GH-6342)

Miss Islington (bot) webhook-mailer at python.org
Sun May 20 11:29:48 EDT 2018


https://github.com/python/cpython/commit/82c9adb3f94e5d889f03205d03a76a5ff0928531
commit: 82c9adb3f94e5d889f03205d03a76a5ff0928531
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-05-20T08:29:45-07:00
summary:

bpo-30940: Updating round() docs. (GH-6342)

(cherry picked from commit 900c48dba3f3eb8fb03ea766a5646f81c3bf3e9c)

Co-authored-by: Lisa Roach <lisaroach14 at gmail.com>

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 94675c1aa83b..501a3c99d41a 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1315,11 +1315,12 @@ are always available.  They are listed here in alphabetical order.
    equally close, rounding is done toward the even choice (so, for example,
    both ``round(0.5)`` and ``round(-0.5)`` are ``0``, and ``round(1.5)`` is
    ``2``).  Any integer value is valid for *ndigits* (positive, zero, or
-   negative).  The return value is an integer if called with one argument,
-   otherwise of the same type as *number*.
+   negative).  The return value is an integer if *ndigits* is omitted or
+   ``None``.
+   Otherwise the return value has the same type as *number*.
 
-   For a general Python object ``number``, ``round(number, ndigits)`` delegates to
-   ``number.__round__(ndigits)``.
+   For a general Python object ``number``, ``round`` delegates to
+   ``number.__round__``.
 
    .. note::
 



More information about the Python-checkins mailing list