Skip to content

gh-119182: Use public PyUnicodeWriter in ast_unparse.c #129208

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

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 23, 2025

Replace the private _PyUnicodeWriter API with the public PyUnicodeWriter API.

  • Add append_char() function.
  • Add APPEND_CHAR() and APPEND_CHAR_FINISH() macros.
  • Replace APPEND_STR() and APPEND_STR_FINISH() of single character with APPEND_CHAR() and APPEND_CHAR_FINISH().

Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API.

* Add append_char() function.
* Add APPEND_CHAR() and APPEND_CHAR_FINISH() macros.
* Replace APPEND_STR() and APPEND_STR_FINISH() of single character
  with APPEND_CHAR() and APPEND_CHAR_FINISH().
@vstinner vstinner merged commit 8eb9e76 into python:main Jan 23, 2025
44 checks passed
@vstinner vstinner deleted the unparse_writer branch January 23, 2025 00:44
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