mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
gh-134833: improve docs for del s[i:j] in Mutable Sequence Types (#134834)
This commit is contained in:
parent
46707d241a
commit
609d5adc7c
1 changed files with 3 additions and 1 deletions
|
|
@ -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* | |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue