Skip to content

gh-158451: Add _PyUnicodeWriter_SetBuffer() helper function - #158452

Draft
vstinner wants to merge 4 commits into
python:mainfrom
vstinner:writer_set_buffer
Draft

vstinner wants to merge 4 commits into
python:mainfrom
vstinner:writer_set_buffer

Conversation

@vstinner

@vstinner vstinner commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Replace _PyUnicodeWriter_Update() with _PyUnicodeWriter_SetBuffer().

Add also _PyUnicodeWriter_SetReadOnly() helper function.

Replace _PyUnicodeWriter_Update() with _PyUnicodeWriter_SetBuffer().

Add also _PyUnicodeWriter_SetReadOnly() helper function.
PyUnicode_DecodeUTF7Stateful() now calls
_PyUnicodeWriter_FinishWithSize() instead of setting directly
writer->pos.
@vstinner
vstinner marked this pull request as draft September 29, 2026 22:50
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