mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fix typo; thanks to Robert Bardos from docs@
This commit is contained in:
parent
70deb3de39
commit
165a2c2e27
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ Glossary
|
|||
:meth:`str.lower` method can serve as a key function for case insensitive
|
||||
sorts. Alternatively, an ad-hoc key function can be built from a
|
||||
:keyword:`lambda` expression such as ``lambda r: (r[0], r[2])``. Also,
|
||||
the :mod:`operator` module provides three key function constuctors:
|
||||
the :mod:`operator` module provides three key function constructors:
|
||||
:func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and
|
||||
:func:`~operator.methodcaller`. See the :ref:`Sorting HOW TO
|
||||
<sortinghowto>` for examples of how to create and use key functions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue