[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
Jesse Hostetler added the comment: I suppose desired behavior would be to accept the argument only if it can be converted to int without loss of information. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
New submission from Jesse Hostetler : The 'argparse' module gives a parse error for integer arguments written in scientific notation. I would expect this to work, since integers can be constructed from literals in scientific notation. Example (also attached): import argparse foo = int(1e3