Skip to content

gh-125196: Use PyUnicodeWriter in HAMT - #125458

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:writer_hamt
Oct 15, 2024
Merged

vstinner merged 3 commits into
python:mainfrom
vstinner:writer_hamt

Conversation

@vstinner

@vstinner vstinner commented Oct 14, 2024 •

Copy link
Copy Markdown
Member

Replace the private _PyUnicodeWriter API with the public PyUnicodeWriter API in hamt.c.

Remove _hamt_dump_format(): replace it with PyUnicodeWriter_Format().

Use PyUnicodeWriter_WriteUTF8() to write constant strings.

Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API in hamt.c.

Remove _hamt_dump_format(): replace it with PyUnicodeWriter_Format().

Use PyUnicodeWriter_WriteUTF8() to write constant strings.
Comment thread Python/hamt.c Resolved
Comment thread Python/hamt.c Resolved
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@nineteendo

Copy link
Copy Markdown
Contributor

You need to update the branch first.

@vstinner

Copy link
Copy Markdown
Member Author

You need to update the branch first.

Right, done.

@vstinner
vstinner merged commit aa18fd5 into python:main Oct 15, 2024
@vstinner
vstinner deleted the writer_hamt branch October 15, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants