Message326409
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) # Works: foo = 1000
parser = argparse.ArgumentParser()
parser.add_argument( "--foo", type=int )
parser.parse_args( ["--foo=1e3"] )
# error: argument --foo: invalid int value: '1e3' |
|
Date |
User |
Action |
Args |
2018-09-25 22:31:02 | jessehostetler | set | recipients:
+ jessehostetler |
2018-09-25 22:31:02 | jessehostetler | set | messageid: <1537914662.44.0.545547206417.issue34803@psf.upfronthosting.co.za> |
2018-09-25 22:31:02 | jessehostetler | link | issue34803 messages |
2018-09-25 22:31:02 | jessehostetler | create | |
|