Browse Source

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

pull/27415/head
Dennis Sweeney 5 years ago
committed by GitHub
parent
commit
2ff5bb4908
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Doc/library/stdtypes.rst

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

Loading…
Cancel
Save