diff options
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 88270ed..9c7ef52 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -703,7 +703,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 |