From 0467686e07296bbf0999c21e691df375a2ec279e Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sun, 19 Feb 2012 19:54:00 +0100 Subject: Issue #13605: use print() in argparse nargs example --- Doc/library/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12