summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-19 06:55:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-19 06:55:03 (GMT)
commit749e6d0a01d4cbd30a2cfbd90fe332658a9284ed (patch)
tree13bdb8fbd0d01f37f07df7f2e4da9a600d901304
parent7d854955e15f17e6bfb29890ac8fd7919b75d097 (diff)
downloadcpython-749e6d0a01d4cbd30a2cfbd90fe332658a9284ed.zip
cpython-749e6d0a01d4cbd30a2cfbd90fe332658a9284ed.tar.gz
cpython-749e6d0a01d4cbd30a2cfbd90fe332658a9284ed.tar.bz2
Add links to helpful external resources.
-rw-r--r--Doc/library/functions.rst10
-rw-r--r--Doc/library/math.rst4
2 files changed, 10 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 9de9db6..3789e20 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 4ecd14e..4d566a5 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -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