Skip to content

[3.15] gh-160179: Leave bytearray empty when __init__() fails midway (GH-160180) - #160202

Merged
gpshead merged 1 commit into
python:3.15from
miss-islington:backport-5a63d35-3.15
Oct 22, 2026
Merged

gpshead merged 1 commit into
python:3.15from
miss-islington:backport-5a63d35-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The list/tuple fast path and the buffer path resized the object before
filling it and did not undo the resize on error, leaving stale bytes.
(cherry picked from commit 5a63d35)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com

…ythonGH-160180)

The list/tuple fast path and the buffer path resized the object before
filling it and did not undo the resize on error, leaving stale bytes.
(cherry picked from commit 5a63d35)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
@bedevere-app bedevere-app Bot added the sprint label Oct 22, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Sprint Oct 22, 2026
@gpshead
gpshead enabled auto-merge (squash) October 22, 2026 05:21
@gpshead
gpshead merged commit fa795c2 into python:3.15 Oct 22, 2026
58 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Oct 22, 2026
@miss-islington
miss-islington deleted the backport-5a63d35-3.15 branch October 22, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants