[issue16878] argparse: positional args with nargs='*' defaults to []

Chris Jerdonek report at bugs.python.org
Mon Jan 7 23:29:31 CET 2013


Chris Jerdonek added the comment:

Attached is a doc patch.  I also improved some other aspects of the *default* section while I was there.

We should probably make sure a test exists for the newly-documented behavior (i.e. for passing no arguments for a positional argument with nargs='*' and default=None).

----------
keywords: +patch
Added file: http://bugs.python.org/file28623/issue-16878-1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16878>
_______________________________________


More information about the Python-bugs-list mailing list