[issue9625] argparse: Problem with defaults for variable nargs when using choices
paul j3
report at bugs.python.org
Thu Jun 27 08:33:20 CEST 2013
paul j3 added the comment:
I've added 2 more tests,
one with default='c', which worked before.
one with default=['a','b'], which only works with this change.
http://bugs.python.org/issue16878 is useful reference, since it documents
the differences between nargs="?" and nargs="*", and their handling of
their defaults.
----------
Added file: http://bugs.python.org/file30709/issue9625_1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9625>
_______________________________________
More information about the Python-bugs-list
mailing list