Skip to content

gh-134833: Detail del s[i:j] in Mutable Sequence Types #134834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
detail del[i:j] in mutable sequence types
  • Loading branch information
Yzi-Li committed May 28, 2025
commit ba933083a4df1123c46e801abc7a8f10bb33ab59
3 changes: 2 additions & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,8 @@ 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] | |
| | (same as ``s[i:j] = []``) | |
+------------------------------+--------------------------------+---------------------+
| ``s[i:j:k] = t`` | the elements of ``s[i:j:k]`` | \(1) |
| | are replaced by those of *t* | |
Expand Down
Loading