Message364430
> 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? |
|
Date |
User |
Action |
Args |
2020-03-17 14:13:55 | pablogsal | set | recipients:
+ pablogsal, docs@python, Michael S2 |
2020-03-17 14:13:55 | pablogsal | set | messageid: <1584454435.67.0.0483409902995.issue39993@roundup.psfhosted.org> |
2020-03-17 14:13:55 | pablogsal | link | issue39993 messages |
2020-03-17 14:13:55 | pablogsal | create | |
|