[Python-checkins] r69766 - in python/branches/release26-maint/Doc/library: functions.rst math.rst
raymond.hettinger
python-checkins at python.org
Thu Feb 19 07:57:24 CET 2009
Author: raymond.hettinger
Date: Thu Feb 19 07:57:23 2009
New Revision: 69766
Log:
Add links to helpful external resources.
Modified:
python/branches/release26-maint/Doc/library/functions.rst
python/branches/release26-maint/Doc/library/math.rst
Modified: python/branches/release26-maint/Doc/library/functions.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/functions.rst (original)
+++ python/branches/release26-maint/Doc/library/functions.rst Thu Feb 19 07:57:23 2009
@@ -1104,10 +1104,12 @@
*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
Modified: python/branches/release26-maint/Doc/library/math.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/math.rst (original)
+++ python/branches/release26-maint/Doc/library/math.rst Thu Feb 19 07:57:23 2009
@@ -100,6 +100,10 @@
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
More information about the Python-checkins
mailing list