Skip to content

Commit 6ecead1

Browse files
authored
[doc] minor fixes to expressions.rst (GH-29444)
1 parent cb755db commit 6ecead1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/expressions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,8 @@ formal parameters. If there are N positional arguments, they are placed in the
965965
first N slots. Next, for each keyword argument, the identifier is used to
966966
determine the corresponding slot (if the identifier is the same as the first
967967
formal parameter name, the first slot is used, and so on). If the slot is
968-
already filled, a :exc:`TypeError` exception is raised. Otherwise, the value of
969-
the argument is placed in the slot, filling it (even if the expression is
968+
already filled, a :exc:`TypeError` exception is raised. Otherwise, the
969+
argument is placed in the slot, filling it (even if the expression is
970970
``None``, it fills the slot). When all arguments have been processed, the slots
971971
that are still unfilled are filled with the corresponding default value from the
972972
function definition. (Default values are calculated, once, when the function is
@@ -1026,7 +1026,7 @@ keyword arguments (and any ``**expression`` arguments -- see below). So::
10261026
1 2
10271027

10281028
It is unusual for both keyword arguments and the ``*expression`` syntax to be
1029-
used in the same call, so in practice this confusion does not arise.
1029+
used in the same call, so in practice this confusion does not often arise.
10301030

10311031
.. index::
10321032
single: **; in function calls

0 commit comments

Comments
 (0)