From: prego Date: Wed, 24 Aug 2022 15:47:13 +0000 (+0200) Subject: GH-96179: Fix misleading example on the bisect documentation (GH-96228) X-Git-Tag: v3.12.0a1~574 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4317b25a2323ae4be04574e45de0e335c571c463;p=thirdparty%2FPython%2Fcpython.git GH-96179: Fix misleading example on the bisect documentation (GH-96228) The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960. --- diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst index 76045ea511a5..7856bf67a7b8 100644 --- a/Doc/library/bisect.rst +++ b/Doc/library/bisect.rst @@ -216,7 +216,7 @@ records in a table:: ... Movie('Aliens', 1986, 'Scott') ... ] - >>> # Find the first movie released on or after 1960 + >>> # Find the first movie released after 1960 >>> by_year = attrgetter('released') >>> movies.sort(key=by_year) >>> movies[bisect(movies, 1960, key=by_year)] diff --git a/Misc/ACKS b/Misc/ACKS index 16a482e40a51..daa01c1a0f1d 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1419,6 +1419,7 @@ John Popplewell Matheus Vieira Portela Davin Potts Guillaume Pratte +Pedro Pregueiro Florian Preinstorfer Alex Prengère Amrit Prem