[Python-checkins] cpython (2.7): #13695: fix a couple of typos in the doc.
ezio.melotti
python-checkins at python.org
Mon Jan 16 07:29:51 CET 2012
http://hg.python.org/cpython/rev/2dd96cf324ee
changeset: 74430:2dd96cf324ee
branch: 2.7
parent: 74427:5d1c177c585b
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Jan 16 08:21:24 2012 +0200
summary:
#13695: fix a couple of typos in the doc.
files:
Doc/library/functools.rst | 4 ++--
Doc/library/unittest.rst | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -26,8 +26,8 @@
tools that accept key functions (such as :func:`sorted`, :func:`min`,
:func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`,
:func:`itertools.groupby`). This function is primarily used as a transition
- tool for programs being converted to Py3.x where comparison functions are no
- longer supported.
+ tool for programs being converted to Python 3 where comparison functions are
+ no longer supported.
A compare function is any callable that accept two arguments, compares them,
and returns a negative number for less-than, zero for equality, or a positive
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -840,13 +840,13 @@
In addition, if *first* and *second* are the exact same type and one of
list, tuple, dict, set, frozenset or unicode or any type that a subclass
- registers with :meth:`addTypeEqualityFunc` the type specific equality
+ registers with :meth:`addTypeEqualityFunc` the type-specific equality
function will be called in order to generate a more useful default
error message (see also the :ref:`list of type-specific methods
<type-specific-methods>`).
.. versionchanged:: 2.7
- Added the automatic calling of type specific equality function.
+ Added the automatic calling of type-specific equality function.
.. method:: assertNotEqual(first, second, msg=None)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list