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 52a3ae5Copy full SHA for 52a3ae5
Doc/tutorial/controlflow.rst
@@ -588,8 +588,9 @@ 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::
+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