File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -587,9 +587,10 @@ There are three forms, which can be combined.
587587Default Argument Values
588588-----------------------
589589
590- The most useful form is to specify a default value for one or more arguments.
591- This creates a function that can be called with fewer arguments than it is
592- defined to allow. For example::
590+ The most useful form is to specify a default value for one or more parameters.
591+ All positional only parameters (that is, without default values) must come first, followed by those with
592+ defaults. This allows a function to be called with fewer arguments than it is
593+ defined to allow. For example::
593594
594595 def ask_ok(prompt, retries=4, reminder='Please try again!'):
595596 while True:
You can’t perform that action at this time.
0 commit comments