Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
vstinner wants to merge 1 commit into
python:3.13from
vstinner:take_bytes13
Open

[3.14] gh-156995: Fix _PyBytes_Resize() in Free Threading (#156996) (#157373)#157436
vstinner wants to merge 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 <[email protected]>
Co-authored-by: Cody Maloney <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant