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

This commit is contained in:
Yongzi Li 2025-07-13 13:56:31 +08:00 committed by GitHub
parent 46707d241a
commit 609d5adc7c
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* | |