mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
[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:
parent
39f36a1adf
commit
bec9bdf619
1 changed files with 3 additions and 1 deletions
|
@ -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* | |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue