Skip to content

Commit 609d5ad

Browse files
authored
gh-134833: improve docs for del s[i:j] in Mutable Sequence Types (#134834)
1 parent 46707d2 commit 609d5ad

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
@@ -1223,7 +1223,9 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
12231223
| | is replaced by the contents of | |
12241224
| | the iterable *t* | |
12251225
+------------------------------+--------------------------------+---------------------+
1226-
| ``del s[i:j]`` | same as ``s[i:j] = []`` | |
1226+
| ``del s[i:j]`` | removes the elements of | |
1227+
| | ``s[i:j]`` from the list | |
1228+
| | (same as ``s[i:j] = []``) | |
12271229
+------------------------------+--------------------------------+---------------------+
12281230
| ``s[i:j:k] = t`` | the elements of ``s[i:j:k]`` | \(1) |
12291231
| | are replaced by those of *t* | |

0 commit comments

Comments
 (0)