bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter#19087
bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter#19087vstinner merged 1 commit intopython:masterfrom vstinner:eval_break_subinterp
Conversation
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.
|
|
|
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.
https://bugs.python.org/issue40010