◐ Shell
clean mode source ↗

Revert "bpo-29587: Enable implicit exception chaining with gen.throw()" by vstinner · Pull Request #19821 · python/cpython

Expand Up @@ -512,12 +512,6 @@ _gen_throw(PyGenObject *gen, int close_on_genexit, }
PyErr_Restore(typ, val, tb); if (gen->gi_exc_state.exc_type) { Py_INCREF(gen->gi_exc_state.exc_type); Py_XINCREF(gen->gi_exc_state.exc_value); Py_XINCREF(gen->gi_exc_state.exc_traceback); _PyErr_ChainExceptions(gen->gi_exc_state.exc_type, gen->gi_exc_state.exc_value, gen->gi_exc_state.exc_traceback); } return gen_send_ex(gen, Py_None, 1, 0);
failed_throw: Expand Down