@@ -42,7 +42,7 @@ lists. In contrast, the :func:`sorted` function accepts any iterable.
4242Key Functions
4343=============
4444
45- Both :meth: `list.sort ` and :func: `sorted ` have *key * parameter to specify a
45+ Both :meth: `list.sort ` and :func: `sorted ` have a *key * parameter to specify a
4646function to be called on each list element prior to making comparisons.
4747
4848For example, here's a case-insensitive string comparison:
@@ -89,7 +89,7 @@ Operator Module Functions
8989The key-function patterns shown above are very common, so Python provides
9090convenience functions to make accessor functions easier and faster. The
9191:mod: `operator ` module has :func: `~operator.itemgetter `,
92- :func: `~operator.attrgetter `, and an :func: `~operator.methodcaller ` function.
92+ :func: `~operator.attrgetter `, and a :func: `~operator.methodcaller ` function.
9393
9494Using those functions, the above examples become simpler and faster:
9595
@@ -114,7 +114,7 @@ Ascending and Descending
114114========================
115115
116116Both :meth: `list.sort ` and :func: `sorted ` accept a *reverse * parameter with a
117- boolean value. This is using to flag descending sorts. For example, to get the
117+ boolean value. This is used to flag descending sorts. For example, to get the
118118student data in reverse *age * order:
119119
120120 >>> sorted (student_tuples, key = itemgetter(2 ), reverse = True )
0 commit comments