[Python-checkins] cpython (2.7): Issue #13540: Update references to Action class to match syntax used for other
jason.coombs
python-checkins at python.org
Sun Aug 3 21:30:58 CEST 2014
http://hg.python.org/cpython/rev/7a627bc9d40e
changeset: 91970:7a627bc9d40e
branch: 2.7
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
@@ -715,7 +715,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::
@@ -738,7 +738,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