mirror of
https://github.com/python/cpython.git
synced 2026-03-24 21:51:12 +00:00
beef up docstring
This commit is contained in:
parent
4f6ec9d9ff
commit
fed67fd41e
1 changed files with 4 additions and 1 deletions
|
|
@ -630,7 +630,10 @@ math_factorial(PyObject *self, PyObject *arg)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(math_factorial_doc, "Return n!");
|
||||
PyDoc_STRVAR(math_factorial_doc,
|
||||
"factorial(x) -> Integral\n"
|
||||
"\n"
|
||||
"Find x!. Raise a ValueError if x is negative or non-integral.");
|
||||
|
||||
static PyObject *
|
||||
math_trunc(PyObject *self, PyObject *number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue