We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47b9e8 commit 9c23743Copy full SHA for 9c23743
Python/ceval_gil.c
@@ -1438,6 +1438,8 @@ _Py_HandlePending(PyThreadState *tstate)
1438
int
1439
_PyEval_RaiseAsyncExc(PyThreadState *tstate)
1440
{
1441
+ assert(tstate != NULL);
1442
+ assert(tstate == _PyThreadState_GET());
1443
_Py_unset_eval_breaker_bit(tstate, _PY_ASYNC_EXCEPTION_BIT);
1444
PyObject *exc = _Py_atomic_exchange_ptr(&tstate->async_exc, NULL);
1445
if (exc != NULL) {
0 commit comments