diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2021-07-28 13:31:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 13:31:44 (GMT) |
commit | 2ff5bb4908975976031ba738866de619cafadc4d (patch) | |
tree | bc085475ff0b5ca54f15dcfb9281931c39d8cebd /Doc/library | |
parent | d22c876d5ac5fa464337d2e82654b8d87a83cb1b (diff) | |
download | cpython-2ff5bb4908975976031ba738866de619cafadc4d.zip cpython-2ff5bb4908975976031ba738866de619cafadc4d.tar.gz cpython-2ff5bb4908975976031ba738866de619cafadc4d.tar.bz2 |
Spell out 's.pop() or s.pop(i)' (GH-27398)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 87a343d..d6eff14 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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) | |