]> granicus.if.org Git - python/commitdiff
Issue #26874: Simplify the divmod docstring.
authorZachary Ware <zachary.ware@gmail.com>
Thu, 28 Apr 2016 19:38:48 +0000 (14:38 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 28 Apr 2016 19:38:48 +0000 (14:38 -0500)
Now it actually matches the prose docs.

Python/bltinmodule.c

index 2621f947cc46ff71f73609439da284dfc4784a83..2977bcd77e59b47c3e977bbe0cebe52723815651 100644 (file)
@@ -625,7 +625,7 @@ builtin_divmod(PyObject *self, PyObject *args)
 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 *