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

ambv webhook-mailer at python.org
Wed Jul 28 09:31:50 EDT 2021


https://github.com/python/cpython/commit/2ff5bb4908975976031ba738866de619cafadc4d
commit: 2ff5bb4908975976031ba738866de619cafadc4d
branch: main
author: Dennis Sweeney <36520290+sweeneyde at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-07-28T15:31:44+02:00
summary:

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

files:
M Doc/library/stdtypes.rst

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



More information about the Python-checkins mailing list