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

Skip to content

[3.15] gh-128509: Use bytes singletons in marshal (GH-157398) - #157433

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-658612a-3.15
Open

[3.15] gh-128509: Use bytes singletons in marshal (GH-157398)#157433
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-658612a-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Replace soft deprecated PyBytes_FromStringAndSize(NULL, n) with
PyBytes_FromStringAndSize(str, n) so marshal can get bytes singleton.
(cherry picked from commit 658612a)

Co-authored-by: Victor Stinner [email protected]

Replace soft deprecated PyBytes_FromStringAndSize(NULL, n) with
PyBytes_FromStringAndSize(str, n) so marshal can get bytes singleton.
(cherry picked from commit 658612a)

Co-authored-by: Victor Stinner <[email protected]>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants