Skip to content

gh-155742: Get singleton in PyBytesWriter_FinishWithSize() - #155795

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:bwriter_singleton
Open

gh-155742: Get singleton in PyBytesWriter_FinishWithSize()#155795
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:bwriter_singleton

Conversation

@vstinner

@vstinner vstinner commented Aug 14, 2026

Copy link
Copy Markdown
Member

If the result size of 1 byte, return the singleton rather than creating a new bytes string.

If the result size of 1 byte, return the singleton rather than
creating a new bytes string.
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