diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-02-19 18:54:00 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-02-19 18:54:00 (GMT) |
commit | 0467686e07296bbf0999c21e691df375a2ec279e (patch) | |
tree | deaf7612e1669bd33307f2b4175c24da57871662 /Doc | |
parent | f06d444f5a1b33c3585e6de4cc3f312d2dd3bed5 (diff) | |
download | cpython-0467686e07296bbf0999c21e691df375a2ec279e.zip cpython-0467686e07296bbf0999c21e691df375a2ec279e.tar.gz cpython-0467686e07296bbf0999c21e691df375a2ec279e.tar.bz2 |
Issue #13605: use print() in argparse nargs example
Diffstat (limited to 'Doc')
-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 4272f16..58b2b59 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -848,7 +848,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 |