https://github.com/python/cpython/commit/1baa3152228b3734515de4465d0c88822ae211ec commit: 1baa3152228b3734515de4465d0c88822ae211ec branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-12-16T11:50:02Z summary:
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower (GH-140316) (#142806) Co-authored-by: Cameron Beck <[email protected]> files: M Doc/glossary.rst diff --git a/Doc/glossary.rst b/Doc/glossary.rst index bdb44009e81228..3cf62f493251ff 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -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 _______________________________________________ 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]
