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

ambv webhook-mailer at python.org
Wed Jul 28 09:42:03 EDT 2021


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

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

(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 aaef42504aa255..28b9d5d1d58cd5 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