summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-04-11 13:50:25 (GMT)
committerGitHub <noreply@github.com>2023-04-11 13:50:25 (GMT)
commit50b4b1598411ed393f47ce7f4fffbe5b9063cd42 (patch)
treec30a5e53040a4dfe321e09af0a7a5ce932c3e8cf /Objects/funcobject.c
parent55c99d97e14618dfce41472dd4446f763b0da13f (diff)
downloadcpython-50b4b1598411ed393f47ce7f4fffbe5b9063cd42.zip
cpython-50b4b1598411ed393f47ce7f4fffbe5b9063cd42.tar.gz
cpython-50b4b1598411ed393f47ce7f4fffbe5b9063cd42.tar.bz2
gh-87864: Use correct function definition syntax in the docs (#103312)
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index ce5d7bd..78c1144 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -942,7 +942,7 @@ functools_wraps(PyObject *wrapper, PyObject *wrapped)
class C:
@classmethod
- def f(cls, arg1, arg2, ...):
+ def f(cls, arg1, arg2, argN):
...
It can be called either on the class (e.g. C.f()) or on an instance
@@ -1066,7 +1066,7 @@ To declare a class method, use this idiom:\n\
\n\
class C:\n\
@classmethod\n\
- def f(cls, arg1, arg2, ...):\n\
+ def f(cls, arg1, arg2, argN):\n\
...\n\
\n\
It can be called either on the class (e.g. C.f()) or on an instance\n\
@@ -1138,7 +1138,7 @@ PyClassMethod_New(PyObject *callable)
class C:
@staticmethod
- def f(arg1, arg2, ...):
+ def f(arg1, arg2, argN):
...
It can be called either on the class (e.g. C.f()) or on an instance
@@ -1260,7 +1260,7 @@ To declare a static method, use this idiom:\n\
\n\
class C:\n\
@staticmethod\n\
- def f(arg1, arg2, ...):\n\
+ def f(arg1, arg2, argN):\n\
...\n\
\n\
It can be called either on the class (e.g. C.f()) or on an instance\n\