https://github.com/python/cpython/commit/bec9bdf619a21dcf33f62126df88cad0e7dc9adb
commit: bec9bdf619a21dcf33f62126df88cad0e7dc9adb
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-07-13T06:03:33Z
summary:

[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 609d5adc7cc241da8fe314a64ddd2c8a883ee8b7)

Co-authored-by: Yongzi Li <[email protected]>

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 87855970b64979..63b251c6268e66 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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*   |              
       |

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to