diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-20 02:57:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-20 02:57:19 (GMT) |
commit | fed67fd41e63cb3dcb2b5716a4e2c08613962c21 (patch) | |
tree | 4bf2e4ab210a91c99915b926b3b3d36602f9b52e /Modules | |
parent | 4f6ec9d9ff8b74ba1267bb44f4ffa8a013f0ab16 (diff) | |
download | cpython-fed67fd41e63cb3dcb2b5716a4e2c08613962c21.zip cpython-fed67fd41e63cb3dcb2b5716a4e2c08613962c21.tar.gz cpython-fed67fd41e63cb3dcb2b5716a4e2c08613962c21.tar.bz2 |
beef up docstring
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mathmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 5087ecc..01d3991 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -630,7 +630,10 @@ error: 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) |