(original) (raw)
changeset: 74430:2dd96cf324ee branch: 2.7 parent: 74427:5d1c177c585b user: Ezio Melotti ezio.melotti@gmail.com date: Mon Jan 16 08:21:24 2012 +0200 files: Doc/library/functools.rst Doc/library/unittest.rst description: #13695: fix a couple of typos in the doc. diff -r 5d1c177c585b -r 2dd96cf324ee Doc/library/functools.rst --- a/Doc/library/functools.rst Sun Jan 15 21:28:00 2012 -0500 +++ b/Doc/library/functools.rst Mon Jan 16 08:21:24 2012 +0200 @@ -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 -r 5d1c177c585b -r 2dd96cf324ee Doc/library/unittest.rst --- a/Doc/library/unittest.rst Sun Jan 15 21:28:00 2012 -0500 +++ b/Doc/library/unittest.rst Mon Jan 16 08:21:24 2012 +0200 @@ -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`). .. 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)/ezio.melotti@gmail.com