Jeff Knupp added the comment: 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16977> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com