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.
587
587
Default Argument Values
588
588
-----------------------
589
589
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
592
+ first, followed by those with defaults. This allows a function to be called
593
+ with fewer arguments than it is defined to allow. For example::
593
594
594
595
def ask_ok(prompt, retries=4, reminder='Please try again!'):
595
596
while True:
You can’t perform that action at this time.
0 commit comments