summaryrefslogtreecommitdiff
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2022-04-06 14:35:05 -0500
committerGitHub <noreply@github.com>2022-04-06 14:35:05 -0500
commit1ba82d4419010994ddf68b9b4851509acc4d45e1 (patch)
treeedf1c4f36dc0a698f4d078615d6b6dc09174cd2d /Modules/mathmodule.c
parent32b33879c2e19cde735c1971b06869976200e1d8 (diff)
downloadcpython-git-1ba82d4419010994ddf68b9b4851509acc4d45e1.tar.gz
Change parameter name from *x* for reals to *n* for integers. (GH-32377)
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index f0aaf23845..8dd763f272 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -2093,17 +2093,17 @@ static const unsigned long SmallFactorials[] = {
/*[clinic input]
math.factorial
- x as arg: object
+ n as arg: object
/
-Find x!.
+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=6d1c8105c0d91fb4]*/
+/*[clinic end generated code: output=6686f26fae00e9ca input=713fb771677e8c31]*/
{
long x, two_valuation;
int overflow;