def a(x=3, b, c) should not be accepted
Đang mở
bug
Contributhon2019
- Ngôn ngữ chính
- Go
- Star
- 1k
- Fork
- 105
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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'"
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.