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 r.david.murray
Recipients Nathan Naze, r.david.murray
Date 2016-05-10.23:03:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yes, it is an unitended consequence of the fact that argparse types are arbitrary single argument functions (that take an arbitrary string as the argument and convert it), and bool is a single argument function.  Unfortunately we're stuck with it now.  The correct answer, of course, is to write your own bool type converter if you need one.

It is possible there should be a documentation mention that bool is not approprate as a type function, since int and float, for example, are explicitly mentioned.  If you want to submit a patch to that end I'll reopen the issue.
Date User Action Args
2016-05-10 23:03:51r.david.murraysetrecipients: + r.david.murray, Nathan Naze
2016-05-10 23:03:51r.david.murraysetmessageid: <>
2016-05-10 23:03:51r.david.murraylinkissue26994 messages
2016-05-10 23:03:50r.david.murraycreate