From: Benjamin Peterson Date: Sat, 20 Dec 2008 02:57:19 +0000 (+0000) Subject: beef up docstring X-Git-Tag: v2.7a1~2521 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fed67fd41e63cb3dcb2b5716a4e2c08613962c21;p=thirdparty%2FPython%2Fcpython.git beef up docstring --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 5087ecc481bb..01d3991d71d1 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)