[Python-checkins] cpython (2.7): Issue #26874: Simplify the divmod docstring.
zach.ware
python-checkins at python.org
Thu Apr 28 15:40:40 EDT 2016
https://hg.python.org/cpython/rev/5a578ec4b3b3
changeset: 101171:5a578ec4b3b3
branch: 2.7
parent: 101168:fb49082a75d1
user: Zachary Ware <zachary.ware at gmail.com>
date: Thu Apr 28 14:38:48 2016 -0500
summary:
Issue #26874: Simplify the divmod docstring.
Now it actually matches the prose docs.
files:
Python/bltinmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -625,7 +625,7 @@
PyDoc_STRVAR(divmod_doc,
"divmod(x, y) -> (quotient, remainder)\n\
\n\
-Return the tuple ((x-x%y)//y, x%y). Invariant: div*y + mod == x.");
+Return the tuple (x//y, x%y). Invariant: div*y + mod == x.");
static PyObject *
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list