Skip to content

gh-158451: Reuse PyUnicodeWriter_WriteStr() in PyUnicode_Format() - #158467

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:unicode_format
Sep 30, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:unicode_format

Conversation

@vstinner

@vstinner vstinner commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Remove special case for int in PyUnicode_Format(). Instead, reuse PyUnicodeWriter_WriteStr() and PyUnicodeWriter_WriteRepr() in PyUnicode_Format().

Add PyUnicode_Format() tests on integer formats.

Remove special case for int in PyUnicode_Format(). Instead, reuse
PyUnicodeWriter_WriteStr() and PyUnicodeWriter_WriteRepr() in
PyUnicode_Format().

Add PyUnicode_Format() tests on integer formats.
@vstinner
vstinner merged commit 82a89b3 into python:main Sep 30, 2026
55 checks passed
@vstinner
vstinner deleted the unicode_format branch September 30, 2026 03:30
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