Skip to content

gh-157710: Enable read-only optimization in PyUnicodeWriter - #157861

Open
vstinner wants to merge 6 commits into
python:mainfrom
vstinner:writer_readonly
Open

vstinner wants to merge 6 commits into
python:mainfrom
vstinner:writer_readonly

Conversation

@vstinner

@vstinner vstinner commented Sep 20, 2026

Copy link
Copy Markdown
Member

If the first and only write to a PyUnicodeWriter is a Python str object, PyUnicodeWriter_Finish() returns the object unchanged.

Move test_unicode_equal() to the correct test case: CAPITest.

If the first and only write to a PyUnicodeWriter is a Python str
object, PyUnicodeWriter_Finish() returns the object unchanged.

Move test_unicode_equal() to the correct test case: CAPITest.
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