Skip to content

gh-129813, PEP 782: Use PyBytesWriter in _PyBytes_FormatEx() - #138839

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:pybyteswriter_bytes_format
Sep 15, 2025
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:pybyteswriter_bytes_format

Conversation

@vstinner

@vstinner vstinner commented Sep 12, 2025 •

Copy link
Copy Markdown
Member

Replace the private _PyBytesWriter API with the new public PyBytesWriter API.

Replace the private _PyBytesWriter API with the new public
PyBytesWriter API.
@vstinner

Copy link
Copy Markdown
Member Author

This change discovered an undefined behavior in _PyLong_AsByteArray(). I wrote #138873 to fix it.

@vstinner
vstinner merged commit 2d72493 into python:main Sep 15, 2025
@vstinner
vstinner deleted the pybyteswriter_bytes_format branch September 15, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant