We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849a80e commit f284c07Copy full SHA for f284c07
Doc/tutorial/controlflow.rst
@@ -587,9 +587,10 @@ There are three forms, which can be combined.
587
Default Argument Values
588
-----------------------
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::
+The most useful form is to specify a default value for one or more arguments.
+All arguments without default values must come first, followed by those with
+defaults. This allows a function to be called with fewer arguments than it is
593
+defined to allow. For example::
594
595
def ask_ok(prompt, retries=4, reminder='Please try again!'):
596
while True:
0 commit comments