mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122413)
This commit is contained in:
parent
68840e91ac
commit
15d4cd0967
6 changed files with 14 additions and 12 deletions
6
Python/generated_cases.c.h
generated
6
Python/generated_cases.c.h
generated
|
@ -3063,7 +3063,7 @@
|
|||
if (!_PyErr_ExceptionMatches(tstate, PyExc_StopIteration)) {
|
||||
goto error;
|
||||
}
|
||||
monitor_raise(tstate, frame, this_instr);
|
||||
_PyEval_MonitorRaise(tstate, frame, this_instr);
|
||||
_PyErr_Clear(tstate);
|
||||
}
|
||||
/* iterator ended normally */
|
||||
|
@ -3731,7 +3731,7 @@
|
|||
if (!_PyErr_ExceptionMatches(tstate, PyExc_StopIteration)) {
|
||||
goto error;
|
||||
}
|
||||
monitor_raise(tstate, frame, this_instr);
|
||||
_PyEval_MonitorRaise(tstate, frame, this_instr);
|
||||
_PyErr_Clear(tstate);
|
||||
}
|
||||
/* iterator ended normally */
|
||||
|
@ -6026,7 +6026,7 @@
|
|||
if (retval_o == NULL) {
|
||||
if (_PyErr_ExceptionMatches(tstate, PyExc_StopIteration)
|
||||
) {
|
||||
monitor_raise(tstate, frame, this_instr);
|
||||
_PyEval_MonitorRaise(tstate, frame, this_instr);
|
||||
}
|
||||
if (_PyGen_FetchStopIterationValue(&retval_o) == 0) {
|
||||
assert(retval_o != NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue