Skip to content

Commit af441df

Browse files
Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27414)
(cherry picked from commit 2ff5bb4) Co-authored-by: Dennis Sweeney <[email protected]>
1 parent 54d3871 commit af441df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
10921092
| | index given by *i* | |
10931093
| | (same as ``s[i:i] = [x]``) | |
10941094
+------------------------------+--------------------------------+---------------------+
1095-
| ``s.pop([i])`` | retrieves the item at *i* and | \(2) |
1095+
| ``s.pop()`` or ``s.pop(i)`` | retrieves the item at *i* and | \(2) |
10961096
| | also removes it from *s* | |
10971097
+------------------------------+--------------------------------+---------------------+
10981098
| ``s.remove(x)`` | remove the first item from *s* | \(3) |

0 commit comments

Comments
 (0)