File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
708708When a final var-keyword parameter ``**name `` is present, it defaults to an empty
709709dictionary (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
891891But using ``/ `` (positional-only parameters) and calling ``foo() `` works because
You can’t perform that action at this time.
0 commit comments