Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit73e4328

Browse files
[3.13]gh-134789: Document del s[i] operation for mutable sequences (GH-134804) (#134809)
gh-134789: Document del s[i] operation for mutable sequences (GH-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 issueGH-134789.(cherry picked from commit967f361)Co-authored-by: Rishabh Singh <67859818+rishabh11336@users.noreply.github.com>
1 parentc6af7f4 commit73e4328

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Doc/library/stdtypes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,8 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
11721172
| ``s[i] = x``| item *i* of *s* is replaced by||
11731173
|| *x*||
11741174
+------------------------------+--------------------------------+---------------------+
1175+
| ``del s[i]``| removes item *i* of *s*||
1176+
+------------------------------+--------------------------------+---------------------+
11751177
| ``s[i:j] = t``| slice of *s* from *i* to *j*||
11761178
|| is replaced by the contents of||
11771179
|| the iterable *t*||

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp