summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2021-11-06 17:26:43 (GMT)
committerGitHub <noreply@github.com>2021-11-06 17:26:43 (GMT)
commit6ecead106ad886f423abf4f547a1a54d14e32305 (patch)
treed38f0daa3f849619ccc13df39d7109fc98ad81d5
parentcb755dba7a988f92a7d1cad48f3c27df18c9342d (diff)
downloadcpython-6ecead106ad886f423abf4f547a1a54d14e32305.zip
cpython-6ecead106ad886f423abf4f547a1a54d14e32305.tar.gz
cpython-6ecead106ad886f423abf4f547a1a54d14e32305.tar.bz2
[doc] minor fixes to expressions.rst (GH-29444)
-rw-r--r--Doc/reference/expressions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index d21a444..6108c46 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -965,8 +965,8 @@ formal parameters. If there are N positional arguments, they are placed in the
first N slots. Next, for each keyword argument, the identifier is used to
determine the corresponding slot (if the identifier is the same as the first
formal parameter name, the first slot is used, and so on). If the slot is
-already filled, a :exc:`TypeError` exception is raised. Otherwise, the value of
-the argument is placed in the slot, filling it (even if the expression is
+already filled, a :exc:`TypeError` exception is raised. Otherwise, the
+argument is placed in the slot, filling it (even if the expression is
``None``, it fills the slot). When all arguments have been processed, the slots
that are still unfilled are filled with the corresponding default value from the
function definition. (Default values are calculated, once, when the function is
@@ -1026,7 +1026,7 @@ keyword arguments (and any ``**expression`` arguments -- see below). So::
1 2
It is unusual for both keyword arguments and the ``*expression`` syntax to be
-used in the same call, so in practice this confusion does not arise.
+used in the same call, so in practice this confusion does not often arise.
.. index::
single: **; in function calls