mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +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,
|
||||
"divmod(x, y) -> (div, mod)\n\
|
||||
"divmod(x, y) -> (quotient, remainder)\n\
|
||||
\n\
|
||||
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