summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-04-27 14:23:56 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-04-27 14:23:56 (GMT)
commit9a42793761ddedc59f03a5fe0f0150e11676713f (patch)
tree0a0058c6138c7d6a47ae242adf48c31b7f7c22c6 /Doc/library
parent935a5888255b60b77547e7bdf32e03fbe963ef52 (diff)
parent10f3d7acbd69206bd9166f812d0503fed187eb5b (diff)
downloadcpython-9a42793761ddedc59f03a5fe0f0150e11676713f.zip
cpython-9a42793761ddedc59f03a5fe0f0150e11676713f.tar.gz
cpython-9a42793761ddedc59f03a5fe0f0150e11676713f.tar.bz2
Branch merge
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/__future__.rst2
-rw-r--r--Doc/library/dbm.rst4
-rw-r--r--Doc/library/json.rst2
-rw-r--r--Doc/library/sys.rst4
-rw-r--r--Doc/library/wsgiref.rst2
5 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/__future__.rst b/Doc/library/__future__.rst
index 3c42393..2348217 100644
--- a/Doc/library/__future__.rst
+++ b/Doc/library/__future__.rst
@@ -26,7 +26,7 @@ Each statement in :file:`__future__.py` is of the form::
where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both are
-5-tuples of the same form as ``sys.version_info``::
+5-tuples of the same form as :data:`sys.version_info`::
(PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int
PY_MINOR_VERSION, # the 1; an int
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index c7c7347..cbefc1a 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -30,9 +30,9 @@ the Oracle Berkeley DB.
name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'``.
-.. function:: open(filename, flag='r', mode=0o666)
+.. function:: open(file, flag='r', mode=0o666)
- Open the database file *filename* and return a corresponding object.
+ Open the database file *file* and return a corresponding object.
If the database file already exists, the :func:`whichdb` function is used to
determine its type and the appropriate module is used; if it does not exist,
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 6bb48e8..48acaf1 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -34,7 +34,7 @@ Encoding basic Python object hierarchies::
Compact encoding::
>>> import json
- >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
+ >>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
'[1,2,3,{"4":5,"6":7}]'
Pretty printing::
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 148630c..c61fedb 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -447,8 +447,8 @@ always available.
This is called ``hexversion`` since it only really looks meaningful when viewed
as the result of passing it to the built-in :func:`hex` function. The
- ``version_info`` value may be used for a more human-friendly encoding of the
- same information.
+ struct sequence :data:`sys.version_info` may be used for a more human-friendly
+ encoding of the same information.
The ``hexversion`` is a 32-bit number with the following layout
diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst
index fda9e70..231449c 100644
--- a/Doc/library/wsgiref.rst
+++ b/Doc/library/wsgiref.rst
@@ -664,7 +664,7 @@ input, output, and error streams.
.. attribute:: BaseHandler.wsgi_file_wrapper
A ``wsgi.file_wrapper`` factory, or ``None``. The default value of this
- attribute is the :class:`FileWrapper` class from :mod:`wsgiref.util`.
+ attribute is the :class:`wsgiref.util.FileWrapper` class.
.. method:: BaseHandler.sendfile()