mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
This commit reverts commit ac0333e1e1
as the original links are working again and they provide extended features such as comments and alternative versions.
This commit is contained in:
parent
2afd1751dd
commit
e8a2076e14
17 changed files with 20 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue