8000 gh-119182: Use public PyUnicodeWriter in ast_unparse.c by vstinner · Pull Request #129208 · python/cpython · GitHub
[go: up one dir, main page]

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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-119182: Use public PyUnicodeWriter in ast_unparse.c
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().
  • Loading branch information
vstinner committed Jan 23, 2025
commit ede98e41b57f2c75292902644165fdad21b5c03b
Loading
Loading
0