diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-28 13:41:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 13:41:51 (GMT) |
commit | af441df3ff0eab7bce782011cf702a8a9005da1f (patch) | |
tree | b1b737ddb5f50cacc1cb1fa83dd0f21e46f87e60 | |
parent | 54d387105a5f0c3825a0f4fa607b58d55d05e572 (diff) | |
download | cpython-af441df3ff0eab7bce782011cf702a8a9005da1f.zip cpython-af441df3ff0eab7bce782011cf702a8a9005da1f.tar.gz cpython-af441df3ff0eab7bce782011cf702a8a9005da1f.tar.bz2 |
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414)
(cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d)
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
-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 aaef425..28b9d5d 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1092,7 +1092,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) | |