diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-28 13:56:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 13:56:17 (GMT) |
commit | 0993837766ee4b88de593eaf3a9a14852c82724c (patch) | |
tree | 76422c0b2bc65d740db249c4fb93ecc2ffd1f3cf /Doc/library | |
parent | f113195ac85d58bdde348b5bb74eb97e6485e408 (diff) | |
download | cpython-0993837766ee4b88de593eaf3a9a14852c82724c.zip cpython-0993837766ee4b88de593eaf3a9a14852c82724c.tar.gz cpython-0993837766ee4b88de593eaf3a9a14852c82724c.tar.bz2 |
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27412)
(cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d)
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
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) | |