[3.14] gh-134833: improve docs for del s[i:j] in Mutable Sequence Types (GH-134834) (#136608)

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:58:45 +02:00 committed by GitHub
parent a1ed132a19
commit e1dc08bd9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1223,7 +1223,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* | |