Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50b4b15

Browse filesBrowse files
authored
pythongh-87864: Use correct function definition syntax in the docs (python#103312)
1 parent 55c99d9 commit 50b4b15
Copy full SHA for 50b4b15

File tree

4 files changed

+7
-7
lines changed
Filter options

4 files changed

+7
-7
lines changed

‎Doc/glossary.rst

Copy file name to clipboardExpand all lines: Doc/glossary.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Glossary
214214
A callable is an object that can be called, possibly with a set
215215
of arguments (see :term:`argument`), with the following syntax::
216216

217-
callable(argument1, argument2, ...)
217+
callable(argument1, argument2, argumentN)
218218

219219
A :term:`function`, and by extension a :term:`method`, is a callable.
220220
An instance of a class that implements the :meth:`~object.__call__`

‎Doc/library/functions.rst

Copy file name to clipboardExpand all lines: Doc/library/functions.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ are always available. They are listed here in alphabetical order.
16811681

16821682
class C:
16831683
@staticmethod
1684-
def f(arg1, arg2, ...): ...
1684+
def f(arg1, arg2, argN): ...
16851685

16861686
The ``@staticmethod`` form is a function :term:`decorator` -- see
16871687
:ref:`function` for details.

‎Lib/abc.py

Copy file name to clipboardExpand all lines: Lib/abc.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class that has a metaclass derived from ABCMeta cannot be
1818
1919
class C(metaclass=ABCMeta):
2020
@abstractmethod
21-
def my_abstract_method(self, ...):
21+
def my_abstract_method(self, arg1, arg2, argN):
2222
...
2323
"""
2424
funcobj.__isabstractmethod__ = True

‎Objects/funcobject.c

Copy file name to clipboardExpand all lines: Objects/funcobject.c
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ functools_wraps(PyObject *wrapper, PyObject *wrapped)
942942
943943
class C:
944944
@classmethod
945-
def f(cls, arg1, arg2, ...):
945+
def f(cls, arg1, arg2, argN):
946946
...
947947
948948
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\
10661066
\n\
10671067
class C:\n\
10681068
@classmethod\n\
1069-
def f(cls, arg1, arg2, ...):\n\
1069+
def f(cls, arg1, arg2, argN):\n\
10701070
...\n\
10711071
\n\
10721072
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)
11381138
11391139
class C:
11401140
@staticmethod
1141-
def f(arg1, arg2, ...):
1141+
def f(arg1, arg2, argN):
11421142
...
11431143
11441144
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\
12601260
\n\
12611261
class C:\n\
12621262
@staticmethod\n\
1263-
def f(arg1, arg2, ...):\n\
1263+
def f(arg1, arg2, argN):\n\
12641264
...\n\
12651265
\n\
12661266
It can be called either on the class (e.g. C.f()) or on an instance\n\

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.