Message192254
| 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: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 |
|