[issue38217] argparse should support multiple types when nargs > 1

paul j3 report at bugs.python.org
Wed Sep 18 12:58:43 EDT 2019


paul j3 <ajipanca at gmail.com> added the comment:

Which is more valuable to you, the string conversion, or the checking?

What's wrong with doing the 'type check' in post parsing code?  (MarSoft's answer in the SO link).

To make a better case for this, I'd suggest writing your own fix.  It doesn't need to be a polished push, but enough code to show that the change is relatively simple (preferably occurring in only one or two functions).

----------

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


More information about the Python-bugs-list mailing list