[Python-checkins] r87372 - python/branches/py3k/Doc/library/argparse.rst
r.david.murray
python-checkins at python.org
Sat Dec 18 17:39:07 CET 2010
Author: r.david.murray
Date: Sat Dec 18 17:39:06 2010
New Revision: 87372
Log:
#10728: the default for printing help is sys.stdout, not stderr.
Modified:
python/branches/py3k/Doc/library/argparse.rst
Modified: python/branches/py3k/Doc/library/argparse.rst
==============================================================================
--- python/branches/py3k/Doc/library/argparse.rst (original)
+++ python/branches/py3k/Doc/library/argparse.rst Sat Dec 18 17:39:06 2010
@@ -1658,14 +1658,14 @@
.. method:: ArgumentParser.print_usage(file=None)
Print a brief description of how the :class:`ArgumentParser` should be
- invoked on the command line. If *file* is ``None``, :data:`sys.stderr` is
+ invoked on the command line. If *file* is ``None``, :data:`sys.stdout` is
assumed.
.. method:: ArgumentParser.print_help(file=None)
Print a help message, including the program usage and information about the
arguments registered with the :class:`ArgumentParser`. If *file* is
- ``None``, :data:`sys.stderr` is assumed.
+ ``None``, :data:`sys.stdout` is assumed.
There are also variants of these methods that simply return a string instead of
printing it:
More information about the Python-checkins
mailing list