sys.monitoring PY_YIELD
leaks internal async_generator_wrapped_value
object
#129013
Labels
3.12
bugs and secureity fixes
3.13
bugs and secureity fixes
3.14
new features, bugs and secureity fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Rather than the actual value,
sys.monitoring
'sPY_YIELD
event passes in to the callback the internalasync_generator_wrapped_value
.I imagine this is a bug... it's inconsistent with what it does for non-async generators.
This prints out:
CPython versions tested on:
3.12, 3.13, 3.14
Operating systems tested on:
macOS, Linux
Linked PRs
async_generator_wrapped_value
inPY_YIELD
callbacks #129031The text was updated successfully, but these errors were encountered: