Mark Shannon <m...@hotpy.org> added the comment:
I can reproduce this on linux. The problem is that when closing a generator that has not started, the frame may not be in a valid state (hence the assertion failure). This should be fixed by implementing https://github.com/faster-cpython/ideas/discussions/217 as that will ensure that the frame is in a valid state before the generator is created. I'll make implementing https://github.com/faster-cpython/ideas/discussions/217 a priority in order to fix this. ---------- assignee: -> Mark.Shannon nosy: +brandtbucher _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46374> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com