Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-125196: Use PyUnicodeWriter in HAMT #125458

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 14, 2024

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.
Python/hamt.c Outdated Show resolved Hide resolved
Python/hamt.c Outdated Show resolved Hide resolved
@nineteendo
Copy link
Contributor

You need to update the branch first.

@vstinner
Copy link
Member Author

You need to update the branch first.

Right, done.

@vstinner vstinner merged commit aa18fd5 into python:main Oct 15, 2024
35 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants