mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Improve docstring for divmod()
This commit is contained in:
parent
aff394b64f
commit
39540a0226
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ builtin_divmod(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(divmod_doc,
|
PyDoc_STRVAR(divmod_doc,
|
||||||
"divmod(x, y) -> (div, mod)\n\
|
"divmod(x, y) -> (quotient, remainder)\n\
|
||||||
\n\
|
\n\
|
||||||
Return the tuple ((x-x%y)/y, x%y). Invariant: div*y + mod == x.");
|
Return the tuple ((x-x%y)/y, x%y). Invariant: div*y + mod == x.");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue