Skip to content

Commit a48bfef

Browse files
authored
Update controlflow.rst
1 parent d2f0a6a commit a48bfef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ Here's an example that fails due to this restriction::
703703
>>> function(0, a=0)
704704
Traceback (most recent call last):
705705
File "<stdin>", line 1, in <module>
706-
TypeError: function() got multiple values for parameter 'a'
706+
TypeError: function() got multiple values for argument 'a'
707707

708708
When a final var-keyword parameter ``**name`` is present, it defaults to an empty
709709
dictionary (see :ref:`typesmapping`) to receive all keyword arguments except for
@@ -885,7 +885,7 @@ Calling ``foo()`` gets error because ``name`` parameter can receive both the 1st
885885
>>> foo(1, name=2)
886886
Traceback (most recent call last):
887887
File "<stdin>", line 1, in <module>
888-
TypeError: foo() got multiple values for parameter 'name'
888+
TypeError: foo() got multiple values for argument 'name'
889889
>>>
890890

891891
But using ``/`` (positional-only parameters) and calling ``foo()`` works because

0 commit comments

Comments
 (0)