From: Georg Brandl Date: Wed, 25 Jan 2012 21:36:25 +0000 (+0100) Subject: #13852: some small doc fixes. X-Git-Tag: v3.2.3rc1~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c89a79d555a8d72b74fad5f533d36cfb645c808;p=thirdparty%2FPython%2Fcpython.git #13852: some small doc fixes. --- diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 737cdd37bdba..04743d31fa15 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -1,8 +1,8 @@ -:mod:`functools` --- Higher order functions and operations on callable objects +:mod:`functools` --- Higher-order functions and operations on callable objects ============================================================================== .. module:: functools - :synopsis: Higher order functions and operations on callable objects. + :synopsis: Higher-order functions and operations on callable objects. .. moduleauthor:: Peter Harris .. moduleauthor:: Raymond Hettinger .. moduleauthor:: Nick Coghlan @@ -27,7 +27,7 @@ The :mod:`functools` module defines the following functions: tool for programs being converted from Python 2 which supported the use of comparison functions. - A compare function is any callable that accept two arguments, compares them, + A comparison function is any callable that accept two arguments, compares them, and returns a negative number for less-than, zero for equality, or a positive number for greater-than. A key function is a callable that accepts one argument and returns another value indicating the position in the desired