[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 609d5adc7c)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-07-13 08:03:33 +02:00 committed by GitHub
parent 39f36a1adf
commit bec9bdf619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1181,7 +1181,9 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
| | is replaced by the contents of | |
| | the iterable *t* | |
+------------------------------+--------------------------------+---------------------+
| ``del s[i:j]`` | same as ``s[i:j] = []`` | |
| ``del s[i:j]`` | removes the elements of | |
| | ``s[i:j]`` from the list | |
| | (same as ``s[i:j] = []``) | |
+------------------------------+--------------------------------+---------------------+
| ``s[i:j:k] = t`` | the elements of ``s[i:j:k]`` | \(1) |
| | are replaced by those of *t* | |