summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-05-23 15:57:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-05-23 15:57:58 (GMT)
commit855482e74c00e8af295ccc8b4ffc01a4d9b31969 (patch)
treefe76fa74aae661640fdbb50b1a1acf3debf83ef2 /Doc
parent5a69420062b3d85bbe7c434e81f54f4a4e1f0e2d (diff)
downloadcpython-855482e74c00e8af295ccc8b4ffc01a4d9b31969.zip
cpython-855482e74c00e8af295ccc8b4ffc01a4d9b31969.tar.gz
cpython-855482e74c00e8af295ccc8b4ffc01a4d9b31969.tar.bz2
Issue #24269: Minor doc fixups.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 3c4d175..f2befe7 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -387,7 +387,7 @@ or subtracting from an empty counter.
Section 4.6.3, Exercise 19*.
* To enumerate all distinct multisets of a given size over a given set of
- elements, see :func:`itertools.combinations_with_replacement`.
+ elements, see :func:`itertools.combinations_with_replacement`:
map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC
@@ -464,10 +464,11 @@ or subtracting from an empty counter.
elements in the iterable argument.
- .. method:: index(x[, start[, end]])
+ .. method:: index(x[, start[, stop]])
- Return the position of *x* in the deque. Returns the first match
- or raises :exc:`ValueError` if not found.
+ Return the position of *x* in the deque (at or after index *start*
+ and before index *stop*). Returns the first match or raises
+ :exc:`ValueError` if not found.
.. versionadded:: 3.5
@@ -493,7 +494,7 @@ or subtracting from an empty counter.
.. method:: remove(value)
- Removed the first occurrence of *value*. If not found, raises a
+ Remove the first occurrence of *value*. If not found, raises a
:exc:`ValueError`.