Mark Shannon <m...@hotpy.org> added the comment:

Just to be clear, it is the behavior change that should be reverted, not 
necessarily the new bytecode.

In fact we should probably push on with (2) and add an exception handler 
wrapping the whole generator except the GEN_START. That way a GEN_START 
exception will not clear the generator.
GEN_START might need to do a bit of trickery like setting lasti back to -1.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43683>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to