Skip to content

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

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:unparse_writer
Jan 23, 2025
Merged

gh-119182: Use public PyUnicodeWriter in ast_unparse.c#129208
vstinner merged 1 commit intopython:mainfrom
vstinner:unparse_writer

Conversation

@vstinner
Copy link
Copy Markdown
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().
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