Victor Stinner

Results 732 comments of Victor Stinner

Merged, thanks for your nice optimization!

The fix is to reduce Py_C_RECURSION_LIMIT and increase the stack size (`StackReserveSize`), no? > There's a workaround in the current build which significantly overallocates memory Is it a real issue...

@hugovk: I used the release-blocker label to raise awareness of this issue, but I'm not sure that it should hold Python 3.14.0 final release. We might be able to develop...

KiCad issue: https://gitlab.com/kicad/code/kicad/-/issues/21890#note_2800807662

> Do these coroutines each use their own Python thread state? Coroutines reuse the existing Python thread state. > Do we need a new (internal) API that can be called...

I created https://github.com/python/cpython/pull/139668 to add PyUnstable_ThreadState_SetStack() and PyUnstable_ThreadState_ResetStack() functions.

Do you think that you can test my pull request: build Python 3.15 with this change (from my branch) and adapt your code to call PyThreadState_SetStack()?

I merged my PR as the change https://github.com/python/cpython/commit/b99db92dde38b17c3fba3b5db76a383ceddfce49 which adds `PyUnstable_ThreadState_SetStackProtection(start_address, size)` and `PyUnstable_ThreadState_ResetStackProtection()` functions. Someone should now try these functions on KiCad, Argobots, PythonCall.jl, Realm runtime, and other affected...