Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
Expand Down
4 changes: 2 additions & 2 deletions Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand All @@ -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
Expand Down