Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
855482e7
Commit
855482e7
authored
May 23, 2015
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24269: Minor doc fixups.
parent
5a694200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Doc/library/collections.rst
Doc/library/collections.rst
+6
-5
No files found.
Doc/library/collections.rst
View file @
855482e7
...
...
@@ -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)
Remove
d
the first occurrence of *value*. If not found, raises a
Remove the first occurrence of *value*. If not found, raises a
:exc:`ValueError`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment