google / google/python-fire

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

Đang mở
#411 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
28.2k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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', )]
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.