]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Dec 2025 11:50:02 +0000 (12:50 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 11:50:02 +0000 (11:50 +0000)
Co-authored-by: Cameron Beck <94604154+cbkinase@users.noreply.github.com>
Doc/glossary.rst

index bdb44009e812285a17900e1830bc93285ef63b76..3cf62f493251ff4502c2cec1d77d67f359c1790f 100644 (file)
@@ -767,7 +767,7 @@ Glossary
       :func:`itertools.groupby`.
 
       There are several ways to create a key function.  For example. the
-      :meth:`str.lower` method can serve as a key function for case insensitive
+      :meth:`str.casefold` method can serve as a key function for case insensitive
       sorts.  Alternatively, a key function can be built from a
       :keyword:`lambda` expression such as ``lambda r: (r[0], r[2])``.  Also,
       :func:`operator.attrgetter`, :func:`operator.itemgetter`, and