[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S


New submission from Michael S :

I just read
 https://docs.python.org/3/reference/compound_stmts.html#function-definitions

The item parameter_list is defined as: 

parameter_list::=  defparameter ("," defparameter)* "," "/" ["," 
[parameter_list_no_posonly]] | parameter_list_no_posonly

This definition states that the "," "/" after ("," defparameter)* are 
mandatory. But this is not true in Python 3.8, because you can define a 
function as 

def f(a):
pass

Did I miss something?

--
assignee: docs@python
components: Documentation
messages: 364425
nosy: Michael S2, docs@python
priority: normal
severity: normal
status: open
title: Language Reference - Function definition parameter_list item definition 
not equivalent to implementation.
type: enhancement
versions: Python 3.8

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



[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S


Michael S  added the comment:

Thanks Pablo, 

sorry, I was just stupid.

> Do you think that adding these explicit parentheses would help with help 
> making this more clear?

Maybe. I read the BNF documentation the first time today, but since it's not 
intended for beginners, I think it's clear enough.

How should we continue with this issue? I don't really see any closing button 
or the like.

--

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