https://github.com/python/cpython/commit/190aa9fe7ecfba1ae385e7d0f3bb52999f6051ff
commit: 190aa9fe7ecfba1ae385e7d0f3bb52999f6051ff
branch: main
author: Cameron Beck <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-16T13:44:12+02:00
summary:
Correct Glossary key function example to use str.casefold instead of str.lower
(#140316)
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]