Skip to content

[pull] main from python:main - #1482

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

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

Conversation

@pull

@pull pull Bot commented Sep 15, 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 : )

BHUVANSH855 and others added 11 commits September 15, 2026 11:41
initscr() and newterm() adopt the screen created by new_prescr(), so the
screen object returned by new_prescr() no longer owns it after that, and
new_prescr() returns the same object while the screen is pending.
Replace soft deprecated PyBytes_FromStringAndSize() with
PyBytesWriter.

Replace PyBytes_FromStringAndSize(NULL, 0) with
Py_GetConstant(Py_CONSTANT_EMPTY_BYTES).
Document as an implementation detail that PyBytesObject and ByteArrayObject end
with a NUL byte.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
When Python is built in debug mode, bytes an bytearray destructors
now check if the trailing null byte has been overridden to detect
overflow. Add bytes_dealloc() to implement the check.

Add _PyBytes_CheckOverflow() to share code
…7455)

Adjust the logic to set newly allocated bytes to a known byte pattern
(PyBytesWrite_NEW_BYTE). Only copy 'size' bytes from the small buffer
to the new bytes/bytearray object.
…157493)

Enable limited C API tests on Free Threading in test_cext and
test_cppext: test Py_TARGET_ABI3T macro.

* Convert test_cppext to PySlot API using PySlot_PTR_STATIC().
* Define Py_MOD_GIL_NOT_USED in test_cext and test_cppext.
* Disable C++ test_virtual_object() if Py_TARGET_ABI3T is defined.
…ocs builds (#157522)

Co-authored-by: Stan Ulbrych <stan@python.org>
It was drawn in the window background color and stood out with dark themes.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@pull pull Bot locked and limited conversation to collaborators Sep 15, 2026
@pull pull Bot added the ⤵️ pull label Sep 15, 2026
@pull
pull Bot merged commit 82952e3 into tj-python:main Sep 15, 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.

7 participants