changeset: 74584:f4f9ab2fd51b branch: 2.7 parent: 74581:8e091e36fc80 user: Georg Brandl 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 8e091e36fc80 -r f4f9ab2fd51b Doc/library/functools.rst --- a/Doc/library/functools.rst Mon Jan 23 17:30:53 2012 +0100 +++ b/Doc/library/functools.rst Mon Jan 23 20:19:33 2012 +0100 @@ -22,7 +22,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 8e091e36fc80 -r f4f9ab2fd51b Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Mon Jan 23 17:30:53 2012 +0100 +++ b/Doc/library/stdtypes.rst Mon Jan 23 20:19:33 2012 +0100 @@ -730,7 +730,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) | +------------------+--------------------------------+----------+

AltStyle によって変換されたページ (->オリジナル) /