summaryrefslogtreecommitdiffstats
path: root/Doc/library/optparse.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-01 06:53:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-01 06:53:28 (GMT)
commit094101232530c4b370ba42fcdf8645ffeea63880 (patch)
tree9c576df9501c4ec59d75e788b1115f0126050136 /Doc/library/optparse.rst
parent33b6a31c1817ea4c6220e274c425ca7ced061843 (diff)
downloadcpython-094101232530c4b370ba42fcdf8645ffeea63880.zip
cpython-094101232530c4b370ba42fcdf8645ffeea63880.tar.gz
cpython-094101232530c4b370ba42fcdf8645ffeea63880.tar.bz2
#8735: better explain semantics of *values* argument for parse().
Diffstat (limited to 'Doc/library/optparse.rst')
-rw-r--r--Doc/library/optparse.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 37eab37..37226c3 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -1234,8 +1234,9 @@ where the input parameters are
the list of arguments to process (default: ``sys.argv[1:]``)
``values``
- object to store option arguments in (default: a new instance of
- :class:`optparse.Values`)
+ a :class:`optparse.Values` object to store option arguments in (default: a
+ new instance of :class:`Values`) -- if you give an existing object, the
+ option defaults will not be initialized on it
and the return values are