Skip to content

[3.13] gh-156995: Fix _PyBytes_Resize() in Free Threading (#156996) (#157373) - #157436

Merged
vstinner merged 1 commit into
python:3.13from
vstinner:take_bytes13
Sep 13, 2026
Merged

[3.13] gh-156995: Fix _PyBytes_Resize() in Free Threading (#156996) (#157373)#157436
vstinner merged 1 commit into
python:3.13from
vstinner:take_bytes13

Conversation

@vstinner

@vstinner vstinner commented Sep 13, 2026

Copy link
Copy Markdown
Member

_PyBytes_Resize(&obj, 1) no longer returns a single byte singleton if the reference count is greater than 1.

(cherry picked from commit fd569ea)

…on#156996) (python#157373)

_PyBytes_Resize(&obj, 1) no longer returns a single byte singleton if
the reference count is greater than 1.

(cherry picked from commit fd569ea)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner changed the title [3.14] gh-156995: Fix _PyBytes_Resize() in Free Threading (#156996) (#157373) [3.13] gh-156995: Fix _PyBytes_Resize() in Free Threading (#156996) (#157373) Sep 13, 2026
@vstinner
vstinner merged commit a728f1c into python:3.13 Sep 13, 2026
44 checks passed
@vstinner
vstinner deleted the take_bytes13 branch September 13, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant