Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Jan 23, 2025

Replace the private _PyUnicodeWriter API with the public PyUnicodeWriter API.

Replace the private _PyUnicodeWriter API with the public PyUnicodeWriter API.
Copy link
Contributor

@cmaloneycmaloney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a plan for _PyUnicodeWriter_IsEmpty?

@vstinner
Copy link
MemberAuthor

Have a plan for _PyUnicodeWriter_IsEmpty?

My plan is to leave it in _json.c for now :-) I would prefer to not make it public, unless more people ask for such feature.

Also, the function can be removed and replaced with an empty variable. I just tried to minimize changes in my PR.

@vstinnervstinner merged commit 6e63c47 into python:mainJan 24, 2025
44 checks passed
@vstinnervstinner deleted the json_writer branch January 24, 2025 10:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@cmaloney