mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Spell out 's.pop() or s.pop(i)' (GH-27398)
This commit is contained in:
parent
d22c876d5a
commit
2ff5bb4908
1 changed files with 1 additions and 1 deletions
|
|
@ -1112,7 +1112,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
|
|||
| | index given by *i* | |
|
||||
| | (same as ``s[i:i] = [x]``) | |
|
||||
+------------------------------+--------------------------------+---------------------+
|
||||
| ``s.pop([i])`` | retrieves the item at *i* and | \(2) |
|
||||
| ``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) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue