changeset: 91974:634f3fe8cbde branch: 3.2 user: Jason R. Coombs date: Sun Aug 03 14:54:11 2014 -0400 files: Doc/library/argparse.rst description: Issue #13540: Update references to Action class to match syntax used for other classes in this file. diff -r c10a6ca9cb32 -r 634f3fe8cbde Doc/library/argparse.rst --- a/Doc/library/argparse.rst Sun Jul 20 10:52:46 2014 -0400 +++ b/Doc/library/argparse.rst Sun Aug 03 14:54:11 2014 -0400 @@ -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 ^^^^^

AltStyle によって変換されたページ (->オリジナル) /