Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> 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?

----------
nosy: +pablogsal

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39993>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to