[Python-checkins] cpython (3.5): Issue 27936: Update doc for round() to indicate that None is an allowable
raymond.hettinger
python-checkins at python.org
Sun Sep 4 14:29:21 EDT 2016
https://hg.python.org/cpython/rev/7108f2a708c9
changeset: 103031:7108f2a708c9
branch: 3.5
parent: 103029:72651343be73
user: Raymond Hettinger <python at rcn.com>
date: Sun Sep 04 11:28:56 2016 -0700
summary:
Issue 27936: Update doc for round() to indicate that None is an allowable argument.
files:
Doc/library/functions.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1234,8 +1234,8 @@
.. function:: round(number[, ndigits])
Return the floating point value *number* rounded to *ndigits* digits after
- the decimal point. If *ndigits* is omitted, it returns the nearest integer
- to its input. Delegates to ``number.__round__(ndigits)``.
+ the decimal point. If *ndigits* is omitted or is ``None``, it returns the
+ nearest integer to its input. Delegates to ``number.__round__(ndigits)``.
For the built-in types supporting :func:`round`, values are rounded to the
closest multiple of 10 to the power minus *ndigits*; if two multiples are
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list