summaryrefslogtreecommitdiff
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-20 02:57:19 +0000
committerBenjamin Peterson <benjamin@python.org>2008-12-20 02:57:19 +0000
commitfed67fd41e63cb3dcb2b5716a4e2c08613962c21 (patch)
tree4bf2e4ab210a91c99915b926b3b3d36602f9b52e /Modules/mathmodule.c
parent4f6ec9d9ff8b74ba1267bb44f4ffa8a013f0ab16 (diff)
downloadcpython-git-fed67fd41e63cb3dcb2b5716a4e2c08613962c21.tar.gz
beef up docstring
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 5087ecc481..01d3991d71 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)