Skip to content

gh-101703: Use PyOS_snprintf in bytesobject.c - #161994

Open
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-101703-bytesobject
Open

sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-101703-bytesobject

Conversation

@sobolevn

@sobolevn sobolevn commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

@sobolevn
sobolevn force-pushed the issue-101703-bytesobject branch from ead4b04 to 6122dec Compare November 14, 2026 10:54

@sergey-miryanov sergey-miryanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Small nitpick: WDYT about moving assert(1 <= len && len < (Py_ssize_t)sizeof(buffer)); to the macro too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants