Skip to content

[pull] main from python:main - #1472

Merged
pull[bot] merged 4 commits into
tj-python:mainfrom
python:main
Sep 12, 2026
Merged

pull[bot] merged 4 commits into
tj-python:mainfrom
python:main

Conversation

@pull

@pull pull Bot commented Sep 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

vstinner and others added 4 commits September 12, 2026 17:49
Replace soft deprecated _PyBytes_Resize() with PyBytesWriter.
Enhance test_bytes.test_translate().
It was the result of improper translation of the PyString C API used in
Python 2 to PyBytes.  The C implementation now raises the same exceptions
as the Python implementation for bytes paths, tags and event names.
PyBytesWriter_Resize() doesn't need to call byteswriter_resize() if
the buffer is already large enough.
Elaborate on mutability in _PyBytes_Resize() and PyBytesWriter
documentation.

Check _PyBytes_IsMutable() in functions which require a mutable bytes
object like PyBytesWriter_Resize().
@pull pull Bot locked and limited conversation to collaborators Sep 12, 2026
@pull pull Bot added the ⤵️ pull label Sep 12, 2026
@pull
pull Bot merged commit 121e27c into tj-python:main Sep 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants