Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Sep 18, 2025

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 : )


📚 Documentation preview 📚: https://cpython-previews--849.org.readthedocs.build/

vstinner and others added 20 commits September 18, 2025 09:52
There is no need to copy the small_buffer in PyBytesWriter_Create().
In `_io__Buffered_flush_impl` the macro `CHECK_CLOSED` is used to check
the `buffered*` is in a good state to be flushed. That differs slightly
from `buffered_closed`.

In some cases, that difference would result in `close()` thinking the
file needed to be flushed and closed while `flush()` thought the file
was already closed.

This could happen during GC and would result in an unraisable exception.
Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
Use multiphase initialization in the _testcapi module to allow loading in subinterpreters. The isolation here isn't perfect as there's still some use of globals, but _testcapi should generally work in other interpreters.
…H-139117)

Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Rename Py_TAIL_CALL_INTERP to _Py_TAIL_CALL_INTERP.
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
Make opcode targets table dynamic
Adds a mention of binary releases to the Android documentation.

---------
Co-authored-by: Russell Keith-Magee <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
This adds a scaffold of support, initially only working with
strictly positional-only arguments. The FASTCALL calling
convention is not yet supported.
Use "defining class" converter, where possible.
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
@pull pull bot locked and limited conversation to collaborators Sep 18, 2025
@pull pull bot added the ⤵️ pull label Sep 18, 2025
@pull pull bot merged commit e163fbd into TechPenguineer:main Sep 18, 2025
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.