From: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:31:44 +0000 (-0400) Subject: Spell out 's.pop() or s.pop(i)' (GH-27398) X-Git-Tag: v3.11.0a1~548 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ff5bb4908975976031ba738866de619cafadc4d;p=thirdparty%2FPython%2Fcpython.git Spell out 's.pop() or s.pop(i)' (GH-27398) --- 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) |