bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter (GH-19087)
COMPUTE_EVAL_BREAKER() now also checks if the Python thread state belongs to the main interpreter. Don't break the evaluation loop if there are pending signals but the Python thread state it belongs to a subinterpeter. * Add _Py_IsMainThread() function. * Add _Py_ThreadCanHandleSignals() function.
V
Victor Stinner committed
d2a8e5b42c5e9c4e745a0589043a8aebb49f8ca2
Parent: da2914d
Committed by GitHub <noreply@github.com>
on 3/20/2020, 12:38:58 PM