mirror of
https://github.com/python/cpython.git
synced 2026-01-27 01:32:20 +00:00
gh-140373: Correctly emit PY_UNWIND event when generator is closed (GH-140767)
This commit is contained in:
parent
ac1ffd7785
commit
d17f28fed5
6 changed files with 30 additions and 1 deletions
|
|
@ -2466,6 +2466,10 @@ monitor_unwind(PyThreadState *tstate,
|
|||
do_monitor_exc(tstate, frame, instr, PY_MONITORING_EVENT_PY_UNWIND);
|
||||
}
|
||||
|
||||
bool
|
||||
_PyEval_NoToolsForUnwind(PyThreadState *tstate) {
|
||||
return no_tools_for_global_event(tstate, PY_MONITORING_EVENT_PY_UNWIND);
|
||||
}
|
||||
|
||||
static int
|
||||
monitor_handled(PyThreadState *tstate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue