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.jerdonek
Recipients bethard, chris.jerdonek, r.david.murray, terry.reedy
Date 2013-01-18.13:30:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here is a patch for discussion that allows non-iterable choices with or without metavar.  It refactors as suggested.  However, the patch does not yet have tests.

> Does the test suite already have a testcase already for non-iterable choices + metavar?

No, not that I saw.  Also, to answer a previous question, the three places in which the choices string is used are: in the usage string (separator=','), in the help string when expanding "%(choices)s" (separator=', '), and in the error message text (separator=', ' with repr() instead of str()).
Date User Action Args
2013-01-18 13:30:18chris.jerdoneksetrecipients: + chris.jerdonek, terry.reedy, bethard, r.david.murray
2013-01-18 13:30:18chris.jerdoneksetmessageid: <>
2013-01-18 13:30:18chris.jerdoneklinkissue16468 messages
2013-01-18 13:30:18chris.jerdonekcreate