Message249789
I was thinking about cases where the default is variable for example a call to platform.machine() while the choices list (and the script itself) might not support all exotic architectures for its use that might be returned now or in a future version of Python from this function. In this case the call to platform.machine() could be wrapped into a function that checks if the returned value is one of the values in the choices list but that would be the same that I would normally expect to be done by the argparse module. |
|
Date |
User |
Action |
Args |
2015-09-04 17:05:44 | Sworddragon | set | recipients:
+ Sworddragon, terry.reedy, r.david.murray |
2015-09-04 17:05:44 | Sworddragon | set | messageid: <1441386344.43.0.755094093724.issue24956@psf.upfronthosting.co.za> |
2015-09-04 17:05:44 | Sworddragon | link | issue24956 messages |
2015-09-04 17:05:44 | Sworddragon | create | |
|