https://github.com/python/cpython/commit/609d5adc7cc241da8fe314a64ddd2c8a883ee8b7
commit: 609d5adc7cc241da8fe314a64ddd2c8a883ee8b7
branch: main
author: Yongzi Li <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-07-13T11:26:31+05:30
summary:
gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (#134834)
files:
M Doc/library/stdtypes.rst
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 394c302fd354b9..8e688f03eb3a87 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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* |
|
_______________________________________________
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]