Message265284
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:51 | r.david.murray | set | recipients:
+ r.david.murray, Nathan Naze |
2016-05-10 23:03:51 | r.david.murray | set | messageid: <1462921431.12.0.171968100084.issue26994@psf.upfronthosting.co.za> |
2016-05-10 23:03:51 | r.david.murray | link | issue26994 messages |
2016-05-10 23:03:50 | r.david.murray | create | |
|