Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 50236:670204cf23e2 legacy-trunk
beef up docstring
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 20 Dec 2008 02:57:19 +0000 |
| parents | 776a6cafc21a |
| children | 589edf615adb |
line wrap: on
line diff
--- a/Modules/mathmodule.c Sat Dec 20 02:51:26 2008 +0000 +++ b/Modules/mathmodule.c Sat Dec 20 02:57:19 2008 +0000 @@ -630,7 +630,10 @@ 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)
