From daf6b828b5b88d3cd4df48409a9ded8308c71fec Mon Sep 17 00:00:00 2001 From: Rishabh Singh <67859818+rishabh11336@users.noreply.github.com> Date: Tue, 27 May 2025 22:01:09 +0530 Subject: [PATCH] Update stdtypes.rst Issue #134789 Document del s[i] operation for mutable sequences - 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. --- Doc/library/stdtypes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 31d71031bca12c..fe2cd87896f0f5 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1218,6 +1218,8 @@ accepts integers that meet the value restriction ``0 <= x <= 255``). | | is replaced by the contents of | | | | the iterable *t* | | +------------------------------+--------------------------------+---------------------+ +| ``del s[i]`` | removes item i from s | | ++------------------------------+--------------------------------+---------------------+ | ``del s[i:j]`` | same as ``s[i:j] = []`` | | +------------------------------+--------------------------------+---------------------+ | ``s[i:j:k] = t`` | the elements of ``s[i:j:k]`` | \(1) |