google / google/python-fire

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

Aperta
#411 1 commento 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
28.2k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.