summaryrefslogtreecommitdiffstats
path: root/Lib/heapq.py
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-09-27 00:47:25 (GMT)
committerGitHub <noreply@github.com>2020-09-27 00:47:25 (GMT)
commite8a2076e149703ea043db5a9dfaaf8d9b7f37c3e (patch)
tree2da32fc742c4e214b622fed2eb4a98180759766b /Lib/heapq.py
parent2afd1751dd9a35d4ec03b708e3e5cddd72c43f7e (diff)
downloadcpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.zip
cpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.tar.gz
cpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.tar.bz2
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
Diffstat (limited to 'Lib/heapq.py')
-rw-r--r--Lib/heapq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/heapq.py b/Lib/heapq.py
index 5895562..fabefd8 100644
--- a/Lib/heapq.py
+++ b/Lib/heapq.py
@@ -456,7 +456,7 @@ def merge(*iterables, key=None, reverse=False):
# 2) Made multiple passes over the data.
# 3) Made more comparisons in common cases (small k, large n, semi-random input).
# See the more detailed comparison of approach at:
-# https://github.com/ActiveState/code/tree/master/recipes/Python/577573_Compare_algorithms/recipe-577573.py
+# http://code.activestate.com/recipes/577573-compare-algorithms-for-heapqsmallest
def nsmallest(n, iterable, key=None):
"""Find the n smallest elements in a dataset.