summaryrefslogtreecommitdiff
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-06 10:26:05 +0000
committerGeorg Brandl <georg@python.org>2010-10-06 10:26:05 +0000
commit682d7e0e07bc29de4578f48be66756c5b969776f (patch)
tree4e1c379e13ebca676c4fbee38ed251ecc88c1133 /Doc/library/functions.rst
parentfa4f7f97b8af16c02441443e448986c07f4cd254 (diff)
downloadcpython-git-682d7e0e07bc29de4578f48be66756c5b969776f.tar.gz
Fix errors found by "make suspicious".
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 4f1c91ca08..97f2a38d41 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -634,9 +634,9 @@ are always available. They are listed here in alphabetical order.
The optional keyword-only *key* argument specifies a one-argument ordering
function like that used for :meth:`list.sort`.
- If multiple items are maximal, the function returns the first one encountered.
- This is consistent with other sort-stability preserving tools such as
- ``sorted(iterable, key=keyfunc, reverse=True)[0]` and
+ If multiple items are maximal, the function returns the first one
+ encountered. This is consistent with other sort-stability preserving tools
+ such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and
``heapq.nlargest(1, iterable, key=keyfunc)``.
.. function:: memoryview(obj)
@@ -655,10 +655,10 @@ are always available. They are listed here in alphabetical order.
The optional keyword-only *key* argument specifies a one-argument ordering
function like that used for :meth:`list.sort`.
- If multiple items are minimal, the function returns the first one encountered.
- This is consistent with other sort-stability preserving tools such as
- ``sorted(iterable, key=keyfunc)[0]` and
- ``heapq.nsmallest(1, iterable, key=keyfunc)``.
+ If multiple items are minimal, the function returns the first one
+ encountered. This is consistent with other sort-stability preserving tools
+ such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1,
+ iterable, key=keyfunc)``.
.. function:: next(iterator[, default])