]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add links to helpful external resources.
authorRaymond Hettinger <python@rcn.com>
Thu, 19 Feb 2009 06:57:23 +0000 (06:57 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 19 Feb 2009 06:57:23 +0000 (06:57 +0000)
Doc/library/functions.rst
Doc/library/math.rst

index 1e5b7597c6673dc6a5b9aa173f856dd916c75765..63a2e3e76e34045b5061e71b9f2ffa47010c07cd 100644 (file)
@@ -1104,10 +1104,12 @@ available.  They are listed here in alphabetical order.
    *reverse* is a boolean value.  If set to ``True``, then the list elements are
    sorted as if each comparison were reversed.
 
-   In general, the *key* and *reverse* conversion processes are much faster than
-   specifying an equivalent *cmp* function.  This is because *cmp* is called
-   multiple times for each list element while *key* and *reverse* touch each
-   element only once.
+   In general, the *key* and *reverse* conversion processes are much faster
+   than specifying an equivalent *cmp* function.  This is because *cmp* is
+   called multiple times for each list element while *key* and *reverse* touch
+   each element only once.  To convert an old-style *cmp* function to a *key*
+   function, see the `CmpToKey recipe in the ASPN cookbook
+   <http://code.activestate.com/recipes/576653/>`_\.
 
    .. versionadded:: 2.4
 
index 4ecd14efd2f10c3320b5afe68bf65b907ffdb26b..4d566a5a6461fa254d74b897fec09fbe3e1ad9fb 100644 (file)
@@ -100,6 +100,10 @@ Number-theoretic and representation functions
    occasionally double-round an intermediate sum causing it to be off in its
    least significant bit.
 
+   For further discussion and two alternative approaches, see the `ASPN cookbook
+   recipes for accurate floating point summation
+   <http://code.activestate.com/recipes/393090/>`_\.
+
    .. versionadded:: 2.6