From: Ezio Melotti Date: Mon, 16 Jan 2012 06:21:24 +0000 (+0200) Subject: #13695: fix a couple of typos in the doc. X-Git-Tag: v2.7.3rc1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=055d70d5889211460971f498ddf82c5bc0b61dc8;p=thirdparty%2FPython%2Fcpython.git #13695: fix a couple of typos in the doc. --- diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 10c984fd4f10..09e6a3b04f66 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -26,8 +26,8 @@ The :mod:`functools` module defines the following functions: 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 index 787d1a61f43a..244dc4374c42 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -840,13 +840,13 @@ Test cases 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 `). .. 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)