Fix all Python Cookbook links (#22205)

This commit is contained in:
Andre Delfino 2020-09-15 17:13:26 -03:00 committed by GitHub
parent 5a565b3d7c
commit ac0333e1e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 20 additions and 20 deletions

View file

@ -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:
# http://code.activestate.com/recipes/577573-compare-algorithms-for-heapqsmallest
# https://github.com/ActiveState/code/tree/master/recipes/Python/577573_Compare_algorithms/recipe-577573.py
def nsmallest(n, iterable, key=None):
"""Find the n smallest elements in a dataset.