]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jul 2021 13:41:51 +0000 (06:41 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 13:41:51 +0000 (15:41 +0200)
(cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Doc/library/stdtypes.rst

index aaef42504aa2555bbfbacda9072d4fdd44c07062..28b9d5d1d58cd5ea6e1002a9e77f55f2ad3d9686 100644 (file)
@@ -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)                |