Message180216
The only time this would be an issue is for infinite sequences via range or a generator, which doesn't work anyway.
>>> p = argparse.ArgumentParser()
>>> a = p.add_argument('a', choices=itertools.count(0), type=int)
>>> p.parse_args(['10000'])
... hangs
Are there any other cases where coercing to a list wouldn't work? |
|
Date |
User |
Action |
Args |
2013-01-18 19:38:31 | jeffknupp | set | recipients:
+ jeffknupp, eric.smith, chris.jerdonek |
2013-01-18 19:38:31 | jeffknupp | set | messageid: <1358537911.03.0.475675074608.issue16977@psf.upfronthosting.co.za> |
2013-01-18 19:38:31 | jeffknupp | link | issue16977 messages |
2013-01-18 19:38:30 | jeffknupp | create | |
|