mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Add links to helpful external resources.
This commit is contained in:
parent
7d854955e1
commit
749e6d0a01
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
*reverse* is a boolean value. If set to ``True``, then the list elements are
|
||||||
sorted as if each comparison were reversed.
|
sorted as if each comparison were reversed.
|
||||||
|
|
||||||
In general, the *key* and *reverse* conversion processes are much faster than
|
In general, the *key* and *reverse* conversion processes are much faster
|
||||||
specifying an equivalent *cmp* function. This is because *cmp* is called
|
than specifying an equivalent *cmp* function. This is because *cmp* is
|
||||||
multiple times for each list element while *key* and *reverse* touch each
|
called multiple times for each list element while *key* and *reverse* touch
|
||||||
element only once.
|
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
|
.. versionadded:: 2.4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,10 @@ Number-theoretic and representation functions
|
||||||
occasionally double-round an intermediate sum causing it to be off in its
|
occasionally double-round an intermediate sum causing it to be off in its
|
||||||
least significant bit.
|
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
|
.. versionadded:: 2.6
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue