go-python / go-python/gpython

def a(x=3, b, c) should not be accepted

オープン
#89 コメント 4 件 リアクション 0 件 担当者 1 名 @corona10 が担当を希望しています GitHub で見る
bug Contributhon2019
主要言語
Go
スター
1k
フォーク
105
PR マージ指標
30日以内にマージされた PR はありません

説明

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'"
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。