Skip to content

Commit bec9bdf

Browse files
[3.13] gh-134833: improve docs for del s[i:j] in Mutable Sequence Types (GH-134834) (#136609)
gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834) (cherry picked from commit 609d5ad) Co-authored-by: Yongzi Li <[email protected]>
1 parent 39f36a1 commit bec9bdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,9 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
11811181
| | is replaced by the contents of | |
11821182
| | the iterable *t* | |
11831183
+------------------------------+--------------------------------+---------------------+
1184-
| ``del s[i:j]`` | same as ``s[i:j] = []`` | |
1184+
| ``del s[i:j]`` | removes the elements of | |
1185+
| | ``s[i:j]`` from the list | |
1186+
| | (same as ``s[i:j] = []``) | |
11851187
+------------------------------+--------------------------------+---------------------+
11861188
| ``s[i:j:k] = t`` | the elements of ``s[i:j:k]`` | \(1) |
11871189
| | are replaced by those of *t* | |

0 commit comments

Comments
 (0)