https://github.com/python/cpython/commit/fdc79776eb245e5468d871ba7967926d8254921b
commit: fdc79776eb245e5468d871ba7967926d8254921b
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-16T11:49:57Z
summary:

[3.14] Correct Glossary key function example to use str.casefold instead of 
str.lower (GH-140316) (#142807)

Co-authored-by: Cameron Beck <[email protected]>

files:
M Doc/glossary.rst

diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index a4066d42927f64..3a01df99c38caf 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -813,7 +813,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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to