This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients Michael S2, docs@python, pablogsal
Date 2020-03-17.14:13:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584454435.67.0.0483409902995.issue39993@roundup.psfhosted.org>
In-reply-to
Content
> Did I miss something?

Yep, what you are missing is that the rule is really:

(defparameter ("," defparameter)* "," "/" ["," [parameter_list_no_posonly]]) | (parameter_list_no_posonly)

which means that is either 

defparameter ("," defparameter)* "," "/" ["," [parameter_list_no_posonly]]

or

parameter_list_no_posonly

and for the def(a): pass case the corresponding rule is parameter_list_no_posonly (check the rest of the specification).

Do you think that adding these explicit parentheses would help with help making this more clear?
History
Date User Action Args
2020-03-17 14:13:55pablogsalsetrecipients: + pablogsal, docs@python, Michael S2
2020-03-17 14:13:55pablogsalsetmessageid: <1584454435.67.0.0483409902995.issue39993@roundup.psfhosted.org>
2020-03-17 14:13:55pablogsallinkissue39993 messages
2020-03-17 14:13:55pablogsalcreate