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

Commit3c1de75

Browse files
committed
Nit cleanup
1 parentd29422b commit3c1de75

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎Lib/test/test_bytes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,8 @@ def __index__(self):
18901890
self._testlimitedcapi.sequence_setitem(b,0,Boom())
18911891

18921892
deftest_mutating_index_inbounds(self):
1893+
# See gh-91153
1894+
18931895
classMutatesOnIndex:
18941896
new_ba:bytearray
18951897

‎Misc/NEWS.d/next/Core_and_Builtins/2025-05-17-18-22-12.gh-issue-91153.ioA_83.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix an issue where a:class:`bytearray` item assignment could crash or write
2+
to the wrong bytearray when resized by the new value's
3+
:meth:`~object.__index__` method.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp