mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-134789: Document del s[i] operation for mutable sequences (#134804)
[main] Update stdtypes.rst - Added explicit mention of `del s[i]` (item deletion by index) to the Mutable Sequence Types section. - Clarified that this operation removes the item at the specified index from the sequence. - Addresses issue #134789.
This commit is contained in:
parent
79d81f7cba
commit
967f361993
1 changed files with 2 additions and 0 deletions
|
|
@ -1214,6 +1214,8 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
|
|||
| ``s[i] = x`` | item *i* of *s* is replaced by | |
|
||||
| | *x* | |
|
||||
+------------------------------+--------------------------------+---------------------+
|
||||
| ``del s[i]`` | removes item *i* of *s* | |
|
||||
+------------------------------+--------------------------------+---------------------+
|
||||
| ``s[i:j] = t`` | slice of *s* from *i* to *j* | |
|
||||
| | is replaced by the contents of | |
|
||||
| | the iterable *t* | |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue