mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Docs: Change remove to removes for consistency (#121072)
This commit is contained in:
parent
19dd2dcbde
commit
967a4f1d18
1 changed files with 3 additions and 2 deletions
|
|
@ -1245,8 +1245,9 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
|
|||
| ``s.pop()`` or ``s.pop(i)`` | retrieves the item at *i* and | \(2) |
|
||||
| | also removes it from *s* | |
|
||||
+------------------------------+--------------------------------+---------------------+
|
||||
| ``s.remove(x)`` | remove the first item from *s* | \(3) |
|
||||
| | where ``s[i]`` is equal to *x* | |
|
||||
| ``s.remove(x)`` | removes the first item from | \(3) |
|
||||
| | *s* where ``s[i]`` is equal to | |
|
||||
| | *x* | |
|
||||
+------------------------------+--------------------------------+---------------------+
|
||||
| ``s.reverse()`` | reverses the items of *s* in | \(4) |
|
||||
| | place | |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue