Skip to content

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

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-658612a-3.15
Sep 15, 2026
Merged

hugovk merged 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 vstinner@python.org

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 <vstinner@python.org>

@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

@hugovk
hugovk merged commit c24b1aa into python:3.15 Sep 15, 2026
60 checks passed
@miss-islington
miss-islington deleted the backport-658612a-3.15 branch September 15, 2026 13:44
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.

4 participants