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 Sworddragon
Recipients Sworddragon, r.david.murray, terry.reedy
Date 2015-09-04.17:05:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441386344.43.0.755094093724.issue24956@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-04 17:05:44Sworddragonsetrecipients: + Sworddragon, terry.reedy, r.david.murray
2015-09-04 17:05:44Sworddragonsetmessageid: <1441386344.43.0.755094093724.issue24956@psf.upfronthosting.co.za>
2015-09-04 17:05:44Sworddragonlinkissue24956 messages
2015-09-04 17:05:44Sworddragoncreate