google / google/python-fire

Unexpected parsing behaviour for List of strings containing a string with a numeric initial

オープン
#411 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
28.2k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

This is just a report. I hope it will be useful for development. I'm using fire v0.4.0.

```python
# tmp.py
import fire
def main(keyword_list):
print([(keyword,type(keyword)) for keyword in keyword_list])
fire.Fire(main)
```
Will give you:
```
> python tmp.py --keyword_list=tmp,0
[('tmp', ), (0, )]

> python tmp.py --keyword_list=tmp,01
[('t', ), ('m', ), ('p', ), (',', ), ('0', ), ('1', )]

> python tmp.py --keyword_list=tmp,0tmp
[('t', ), ('m', ), ('p', ), (',', ), ('0', ), ('t', ), ('m', ), ('p', )]
```

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

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

評価

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

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

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