[issue17288] cannot jump from a 'return' or 'exception' trace event

Xavier de Gaye report at bugs.python.org
Tue Mar 13 16:50:06 EDT 2018


Xavier de Gaye <xdegaye at gmail.com> added the comment:

The conditions used for the fix are still the same in 2.7: f->f_trace == NULL on a call event, f->f_lasti == -1 in a new frame and f->f_stacktop == NULL in a trace function with a non-line event except for yield statements.
There are minor differences: the YIELD_FROM opcode does not exist and function.__code__ is written as function.func_code.

Added a PR for 2.7.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue17288>
_______________________________________


More information about the Python-bugs-list mailing list