Message192254
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. |
|
Date |
User |
Action |
Args |
2013-07-03 20:06:52 | paul.j3 | set | recipients:
+ paul.j3, eric.smith, chris.jerdonek, jeffknupp |
2013-07-03 20:06:52 | paul.j3 | set | messageid: <1372882012.91.0.445422368597.issue16977@psf.upfronthosting.co.za> |
2013-07-03 20:06:52 | paul.j3 | link | issue16977 messages |
2013-07-03 20:06:52 | paul.j3 | create | |
|