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

(cherry picked from commit 2ff5bb4908)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2021-07-28 06:57:03 -07:00 committed by GitHub
parent fd2c2465d4
commit 08870d0443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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) |