diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-02-19 18:54:23 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-02-19 18:54:23 (GMT) |
commit | 32ac92cd4a341fc2503305b3017d2262c203558e (patch) | |
tree | bbe39a9965dda40182353debd4700058bb818910 | |
parent | b900d6a78c4146143b3f46111e6082e572d93d98 (diff) | |
parent | 0467686e07296bbf0999c21e691df375a2ec279e (diff) | |
download | cpython-32ac92cd4a341fc2503305b3017d2262c203558e.zip cpython-32ac92cd4a341fc2503305b3017d2262c203558e.tar.gz cpython-32ac92cd4a341fc2503305b3017d2262c203558e.tar.bz2 |
Issue #13605: merge with 3.2
-rw-r--r-- | Doc/library/argparse.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 2617ae5..c70fdf9 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -867,7 +867,7 @@ values are: >>> parser.add_argument('--foo') >>> parser.add_argument('command') >>> parser.add_argument('args', nargs=argparse.REMAINDER) - >>> print parser.parse_args('--foo B cmd --arg1 XX ZZ'.split()) + >>> print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())) Namespace(args=['--arg1', 'XX', 'ZZ'], command='cmd', foo='B') If the ``nargs`` keyword argument is not provided, the number of arguments consumed |