Xavier de Gaye <xdeg...@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 <rep...@bugs.python.org>
Python-bugs-list mailing list