Message170329
Here is a type of test case that I think should be considered for addition (to confirm that the code doesn't double-convert strings in at least one case). Maybe there is already a test case like this:
class MyString(str): pass
def convert(s):
return MyString("*" + s)
parser = ArgumentParser()
parser.add_argument("--test", dest="test", type=convert, default="foo")
args = parser.parse_args()
print(args.test) |
|
Date |
User |
Action |
Args |
2012-09-11 17:14:50 | chris.jerdonek | set | recipients:
+ chris.jerdonek, barry, georg.brandl, bethard, benjamin.peterson, Arfrever |
2012-09-11 17:14:50 | chris.jerdonek | set | messageid: <1347383690.1.0.978837240042.issue15906@psf.upfronthosting.co.za> |
2012-09-11 17:14:49 | chris.jerdonek | link | issue15906 messages |
2012-09-11 17:14:49 | chris.jerdonek | create | |
|