From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:41:51 +0000 (-0700) Subject: Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414) X-Git-Tag: v3.8.12~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af441df3ff0eab7bce782011cf702a8a9005da1f;p=thirdparty%2FPython%2Fcpython.git 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> --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index aaef42504aa2..28b9d5d1d58c 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) |