(original) (raw)

changeset: 74582:a72ca8b23cdf branch: 3.2 parent: 74579:960d93deb8c2 user: Georg Brandl georg@python.org date: Mon Jan 23 20:19:33 2012 +0100 files: Doc/library/functools.rst Doc/library/stdtypes.rst description: #13816: fix two minor style issues. Thanks to Justin Wehnes for the patch. diff -r 960d93deb8c2 -r a72ca8b23cdf Doc/library/functools.rst --- a/Doc/library/functools.rst Sun Jan 22 21:31:21 2012 +0100 +++ b/Doc/library/functools.rst Mon Jan 23 20:19:33 2012 +0100 @@ -20,7 +20,7 @@ .. function:: cmp_to_key(func) - Transform an old-style comparison function to a key-function. Used with + Transform an old-style comparison function to a key function. Used with tools that accept key functions (such as :func:`sorted`, :func:`min`, :func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`, :func:`itertools.groupby`). This function is primarily used as a transition diff -r 960d93deb8c2 -r a72ca8b23cdf Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Sun Jan 22 21:31:21 2012 +0100 +++ b/Doc/library/stdtypes.rst Mon Jan 23 20:19:33 2012 +0100 @@ -873,7 +873,7 @@ | ``s * n, n * s`` | *n* shallow copies of *s* | \(2) | | | concatenated | | +------------------+--------------------------------+----------+ -| ``s[i]`` | *i*'th item of *s*, origin 0 | \(3) | +| ``s[i]`` | *i*\ th item of *s*, origin 0 | \(3) | +------------------+--------------------------------+----------+ | ``s[i:j]`` | slice of *s* from *i* to *j* | (3)(4) | +------------------+--------------------------------+----------+ /georg@python.org