[New-bugs-announce] [issue41087] Argparse int / float default

Bryan report at bugs.python.org
Tue Jun 23 04:42:21 EDT 2020


New submission from Bryan <bhlawson at gmail.com>:

parser.add_argument('-e', '--Edge', type = int, default = 0.005, metavar = 'Edge')

Runs fine. Script uses default of 0.005 even when int specified.

But if user tries to change, not an int....

----------
messages: 372143
nosy: Bryan
priority: normal
severity: normal
status: open
title: Argparse int / float default
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41087>
_______________________________________


More information about the New-bugs-announce mailing list