Skip to content

gh-158451: Convert _PyUnicodeWriter_Prepare() to static inline function - #158466

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:writer_prepare
Sep 30, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:writer_prepare

Conversation

@vstinner

@vstinner vstinner commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Add assertion to _PyUnicodeWriter_Prepare() to check that length is not negative.

Add some assertions to check that _PyUnicodeWriter_Prepare() is called with len >= 1.

…function

Add assertion to _PyUnicodeWriter_Prepare() to check that length is
not negative.

Add some assertions to check that _PyUnicodeWriter_Prepare() is
called with len >= 1.
Also mark _PyUnicodeWriter_Prepare() as deprecated
@vstinner
vstinner merged commit 70e6f3c into python:main Sep 30, 2026
51 checks passed
@vstinner
vstinner deleted the writer_prepare branch September 30, 2026 03:31
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