diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-28 09:23:25 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-28 09:23:25 (GMT) |
commit | acfc97a05a746200606840a7fd1093c5aae9b183 (patch) | |
tree | b1116b6e763dc9965d8d97664d523bbccaef4e85 /Doc/library/argparse.rst | |
parent | f3dc2d7afd70e62039a85a693d58fd95efda9e5b (diff) | |
parent | 74e6495a20d8879d7610386d8bdb6a4139fd0776 (diff) | |
download | cpython-acfc97a05a746200606840a7fd1093c5aae9b183.zip cpython-acfc97a05a746200606840a7fd1093c5aae9b183.tar.gz cpython-acfc97a05a746200606840a7fd1093c5aae9b183.tar.bz2 |
Merge 3.2
Diffstat (limited to 'Doc/library/argparse.rst')
-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 7c7319e..7a92052 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -722,7 +722,7 @@ how the command-line arguments should be handled. The supported actions are: >>> parser.add_argument('--str', dest='types', action='append_const', const=str) >>> parser.add_argument('--int', dest='types', action='append_const', const=int) >>> parser.parse_args('--str --int'.split()) - Namespace(types=[<type 'str'>, <type 'int'>]) + Namespace(types=[<class 'str'>, <class 'int'>]) * ``'version'`` - This expects a ``version=`` keyword argument in the :meth:`~ArgumentParser.add_argument` call, and prints version information |