def a(x=3, b, c) should not be accepted
Aberta
bug
Contributhon2019
- Linguagem predominante
- Go
- Estrelas
- 1k
- Forks
- 105
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
But accepted in gpython
it should be raised Syntax error.
## cpython
``` python
>>> def a(x=3, b, c):
... pass
...
File "", line 1
SyntaxError: non-default argument follows default argument
````
## gpython
```python
>>> def a(x=3, b, c):
... pass
...
>>> a()
Traceback (most recent call last):
File "", line 1, in
FIXME line of source goes here
TypeError: "a() missing 2 required positional arguments: 'x' and 'b'"
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.