[Python-checkins] cpython (3.2): Issue #13540: Update references to Action class to match syntax used for other
jason.coombs
python-checkins at python.org
Sun Aug 3 21:31:51 CEST 2014
http://hg.python.org/cpython/rev/634f3fe8cbde
changeset: 91974:634f3fe8cbde
branch: 3.2
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sun Aug 03 14:54:11 2014 -0400
summary:
Issue #13540: Update references to Action class to match syntax used for other classes in this file.
files:
Doc/library/argparse.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -739,7 +739,7 @@
You may also specify an arbitrary action by passing an Action subclass or
other object that implements the same interface. The recommended way to do
-this is to extend :class:`argparse.Action`, overriding the ``__call__`` method
+this is to extend :class:`Action`, overriding the ``__call__`` method
and optionally the ``__init__`` method.
An example of a custom action::
@@ -762,7 +762,7 @@
>>> args
Namespace(bar='1', foo='2')
-For more details, see :class:`argparse.Action`.
+For more details, see :class:`Action`.
nargs
^^^^^
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list