Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 967f361

Browse filesBrowse files
authored
gh-134789: Document del s[i] operation for mutable sequences (#134804)
[main] Update stdtypes.rst - Added explicit mention of `del s[i]` (item deletion by index) to the Mutable Sequence Types section. - Clarified that this operation removes the item at the specified index from the sequence. - Addresses issue #134789.
1 parent 79d81f7 commit 967f361
Copy full SHA for 967f361

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎Doc/library/stdtypes.rst

Copy file name to clipboardExpand all lines: Doc/library/stdtypes.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,8 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
12141214
| ``s[i] = x`` | item *i* of *s* is replaced by | |
12151215
| | *x* | |
12161216
+------------------------------+--------------------------------+---------------------+
1217+
| ``del s[i]`` | removes item *i* of *s* | |
1218+
+------------------------------+--------------------------------+---------------------+
12171219
| ``s[i:j] = t`` | slice of *s* from *i* to *j* | |
12181220
| | is replaced by the contents of | |
12191221
| | the iterable *t* | |

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.