8000 Nit cleanup · python/cpython@d3d1974 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3d1974

Browse files
committed
Nit cleanup
1 parent d29422b commit d3d1974

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
def test_mutating_index_inbounds(self):
1893+
# See gh-91153
1894+
18931895
class MutatesOnIndex:
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)
0