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 paul.j3
Recipients chris.jerdonek, eric.smith, jeffknupp, paul.j3
Date 2013-07-03.20:06:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372882012.91.0.445422368597.issue16977@psf.upfronthosting.co.za>
In-reply-to
Content
test_argparse.py has some "choices='abc'" cases.  

In those should "parser.parse_args(['--foo','bc'])" be considered a success or failure?  

The underlying issue here is that while string iteration behaves like list iteration, string __contains__ looks for substrings, not just one character that matches.  (String __contains__ also returns a TypeError if its argument is not a string.)

But other than removing poor examples in documentation and tests, I'm not sure this issue requires a change.
History
Date User Action Args
2013-07-03 20:06:52paul.j3setrecipients: + paul.j3, eric.smith, chris.jerdonek, jeffknupp
2013-07-03 20:06:52paul.j3setmessageid: <1372882012.91.0.445422368597.issue16977@psf.upfronthosting.co.za>
2013-07-03 20:06:52paul.j3linkissue16977 messages
2013-07-03 20:06:52paul.j3create