-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
The definition of parameter_list_starargs
is missing a |
:
parameter_list_starargs ::= "*" [star_parameter] ("," defparameter)* ["," [parameter_star_kwargs]]
"*" ("," defparameter)+ ["," [parameter_star_kwargs]]
| parameter_star_kwargs
should be
parameter_list_starargs ::= "*" [star_parameter] ("," defparameter)* ["," [parameter_star_kwargs]]
| "*" ("," defparameter)+ ["," [parameter_star_kwargs]]
| parameter_star_kwargs
Without that |
, the definition says that you can have two *
symbols in a signature. With the |
, the second line describes "keyword only" arguments.
Link to current docs:
https://docs.python.org/3/reference/compound_stmts.html#function-definitions
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Todo