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
b2d77175
Commit
b2d77175
authored
Mar 13, 2017
by
Xiang Zhang
Committed by
GitHub
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
parent
00425105
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+1
-1
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+2
-2
No files found.
Doc/library/stdtypes.rst
View file @
b2d77175
...
...
@@ -1084,7 +1084,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
| | also removes it from *s* | |
+------------------------------+--------------------------------+---------------------+
| ``s.remove(x)`` | remove the first item from *s* | \(3) |
| | where ``s[i]
== x``
| |
| | where ``s[i]
`` is equal to *x*
| |
+------------------------------+--------------------------------+---------------------+
| ``s.reverse()`` | reverses the items of *s* in | \(4) |
| | place | |
...
...
Doc/tutorial/datastructures.rst
View file @
b2d77175
...
...
@@ -40,7 +40,7 @@ objects:
.. method:: list.remove(x)
:noindex:
Remove the first item from the list whose value is *x*. It is an error if
Remove the first item from the list whose value is
equal to
*x*. It is an error if
there is no such item.
...
...
@@ -63,7 +63,7 @@ objects:
.. method:: list.index(x[, start[, end]])
:noindex:
Return zero-based index in the list of the first item whose value is *x*.
Return zero-based index in the list of the first item whose value is
equal to
*x*.
Raises a :exc:`ValueError` if there is no such item.
The optional arguments *start* and *end* are interpreted as in the slice
...
...
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