From fed67fd41e63cb3dcb2b5716a4e2c08613962c21 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 20 Dec 2008 02:57:19 +0000 Subject: beef up docstring --- Modules/mathmodule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v0.12