mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-133904: Fix math.factorial
documentation (#133907)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
c2989b7070
commit
27ed64575d
3 changed files with 4 additions and 9 deletions
6
Modules/clinic/mathmodule.c.h
generated
6
Modules/clinic/mathmodule.c.h
generated
|
@ -108,9 +108,7 @@ PyDoc_STRVAR(math_factorial__doc__,
|
|||
"factorial($module, n, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Find n!.\n"
|
||||
"\n"
|
||||
"Raise a ValueError if x is negative or non-integral.");
|
||||
"Find n!.");
|
||||
|
||||
#define MATH_FACTORIAL_METHODDEF \
|
||||
{"factorial", (PyCFunction)math_factorial, METH_O, math_factorial__doc__},
|
||||
|
@ -1112,4 +1110,4 @@ math_ulp(PyObject *module, PyObject *arg)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=634773bd18cd3f93 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=77e7b8c161c39843 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -2008,13 +2008,11 @@ math.factorial
|
|||
/
|
||||
|
||||
Find n!.
|
||||
|
||||
Raise a ValueError if x is negative or non-integral.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
math_factorial(PyObject *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=6686f26fae00e9ca input=713fb771677e8c31]*/
|
||||
/*[clinic end generated code: output=6686f26fae00e9ca input=366cc321df3d4773]*/
|
||||
{
|
||||
long x, two_valuation;
|
||||
int overflow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue