mirror of
https://github.com/python/cpython.git
synced 2025-11-27 21:55:35 +00:00
Issue #24269: Minor doc fixups.
This commit is contained in:
parent
5a69420062
commit
855482e74c
1 changed files with 6 additions and 5 deletions
|
|
@ -387,7 +387,7 @@ or subtracting from an empty counter.
|
||||||
Section 4.6.3, Exercise 19*.
|
Section 4.6.3, Exercise 19*.
|
||||||
|
|
||||||
* To enumerate all distinct multisets of a given size over a given set of
|
* 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
|
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.
|
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
|
Return the position of *x* in the deque (at or after index *start*
|
||||||
or raises :exc:`ValueError` if not found.
|
and before index *stop*). Returns the first match or raises
|
||||||
|
:exc:`ValueError` if not found.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
|
|
@ -493,7 +494,7 @@ or subtracting from an empty counter.
|
||||||
|
|
||||||
.. method:: remove(value)
|
.. 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`.
|
:exc:`ValueError`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue