Skip to content

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

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-658612a-3.14
Sep 13, 2026
Merged

[3.14] gh-128509: Use bytes singletons in marshal (GH-157398)#157432
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-658612a-3.14

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 enabled auto-merge (squash) September 13, 2026 14:18
@vstinner
vstinner merged commit c348765 into python:3.14 Sep 13, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-658612a-3.14 branch September 13, 2026 14:45
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.

2 participants