[New-bugs-announce] [issue31618] Change sys.settrace opcode tracing to occur after frame line number update
report at bugs.python.org
Thu Sep 28 08:40:03 EDT 2017
New submission from George King <george.w.king at gmail.com>:
This patch moves the new opcode tracing added in commit 5a85167 to happen after frame->f_lineno is updated. With this patch, when both f_trace_lines and f_trace_opcodes are enabled the trace function will see the same line number for both the 'line' and 'opcode' events.
A side effect of this patch is that the order of event emission has been switched; 'line' now happens before 'opcode'. Maintaining the current order would require more elaborate logic.
nosy: gwk, ncoghlan, nedbat, njs, serhiy.storchaka
title: Change sys.settrace opcode tracing to occur after frame line number update
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce