[Python-checkins] Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)

ambv webhook-mailer at python.org
Wed Jul 28 09:57:08 EDT 2021


https://github.com/python/cpython/commit/08870d0443a488d8baaa14d24b4e59d7891b2aa5
commit: 08870d0443a488d8baaa14d24b4e59d7891b2aa5
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-28T15:57:03+02:00
summary:

Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)

(cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde at users.noreply.github.com>

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index acaf99b7c8101..e0b9285eb32b1 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)                |



More information about the Python-checkins mailing list