From 49e055dd8270f7fc4e33c95cfe7cccc78f5fd742 Mon Sep 17 00:00:00 2001 From: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com> Date: Sun, 26 Jun 2022 09:26:05 +0530 Subject: [PATCH 1/2] bpo-40846: Removed ambiguity in parameters vs arguments Fixes https://bugs.python.org/issue40846 --- Doc/faq/programming.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 0b11bc986bbb04..5c1728716ed555 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -409,8 +409,7 @@ What is the difference between arguments and parameters? :term:`Parameters ` are defined by the names that appear in a function definition, whereas :term:`arguments ` are the values -actually passed to a function when calling it. Parameters define what types of -arguments a function can accept. For example, given the function definition:: +actually passed to a function when calling it. Parameters define what :term:`kind of arguments ` a function can accept. For example, given the function definition:: def func(foo, bar=None, **kwargs): pass From de709a3f9abb09669cdbf4db0b93faa012688dcb Mon Sep 17 00:00:00 2001 From: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com> Date: Sun, 26 Jun 2022 18:17:50 +0530 Subject: [PATCH 2/2] bpo-40846: Removed ambiguity in parameters vs arguments Fixes https://bugs.python.org/issue40846 --- Doc/faq/programming.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 5c1728716ed555..5207add7783d3f 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -409,7 +409,9 @@ What is the difference between arguments and parameters? :term:`Parameters ` are defined by the names that appear in a function definition, whereas :term:`arguments ` are the values -actually passed to a function when calling it. Parameters define what :term:`kind of arguments ` a function can accept. For example, given the function definition:: +actually passed to a function when calling it. Parameters define what +:term:`kind of arguments ` a function can accept. For +example, given the function definition:: def func(foo, bar=None, **kwargs): pass