Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
With Python 3.12, this code generates a PY_UNWIND event; with 3.13 and later, it no longer does.
importsysdefgen(): yield1yield2defcallback(code, off, exc): ifcodeisgen.__code__: print("got unwind!") ID=3sysmon=sys.monitoringsysmon.use_tool_id(ID, "test") sysmon.register_callback(ID, sysmon.events.PY_UNWIND, callback) sysmon.set_events(ID, sysmon.events.PY_UNWIND) g=gen() next(g) delg# or g.close()CPython versions tested on:
3.13, 3.14
Operating systems tested on:
macOS, Linux
Linked PRs
efimov-mikhail
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error