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