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 Chris.Bruner
Recipients Chris.Bruner
Date 2014-07-23.17:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406135782.37.0.476079892774.issue22049@psf.upfronthosting.co.za>
In-reply-to
Content
From the documentation, I think that argparse should pass the entire nargs-long string to the "type=" callable. Instead, it only passes the first argument (of nargs), making it impossible within argparse's framework to check for a tuple of mixed types, e.g., 2 ints and a float (my case), or a string and three numbers, etc.

See attached reproducer.
History
Date User Action Args
2014-07-23 17:16:22Chris.Brunersetrecipients: + Chris.Bruner
2014-07-23 17:16:22Chris.Brunersetmessageid: <1406135782.37.0.476079892774.issue22049@psf.upfronthosting.co.za>
2014-07-23 17:16:22Chris.Brunerlinkissue22049 messages
2014-07-23 17:16:22Chris.Brunercreate