This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients jessehostetler, pablogsal
Date 2018-09-25.23:36:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
You can always do:

import argparse
foo = int(1e3) # Works: foo = 1000
parser = argparse.ArgumentParser()
parser.add_argument( "--foo", type=lambda x: int(float(x)))
parser.parse_args( ["--foo=1e3"] )
Date User Action Args
2018-09-25 23:36:05pablogsalsetrecipients: + pablogsal, jessehostetler
2018-09-25 23:36:05pablogsalsetmessageid: <>
2018-09-25 23:36:05pablogsallinkissue34803 messages
2018-09-25 23:36:05pablogsalcreate