diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2017-09-08 00:14:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 00:14:16 (GMT) |
commit | 5a8516701f5140c8c989c40e261a4f4e20e8af86 (patch) | |
tree | ce7c8c4d443132b27203a834904469458191a154 /Doc/whatsnew | |
parent | 2eb0cb4787d02d995a9bb6dc075983792c12835c (diff) | |
download | cpython-5a8516701f5140c8c989c40e261a4f4e20e8af86.zip cpython-5a8516701f5140c8c989c40e261a4f4e20e8af86.tar.gz cpython-5a8516701f5140c8c989c40e261a4f4e20e8af86.tar.bz2 |
bpo-31344: Per-frame control of trace events (GH-3417)
f_trace_lines: enable/disable line trace events
f_trace_opcodes: enable/disable opcode trace events
These are intended primarily for testing of the interpreter
itself, as they make it much easier to emulate signals
arriving at unfortunate times.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 14c2182..5ee41dc 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -348,6 +348,18 @@ Build and C API Changes (Contributed by Antoine Pitrou in :issue:`31370`.). +Other CPython Implementation Changes +==================================== + +* Trace hooks may now opt out of receiving ``line`` events from the interpreter + by setting the new ``f_trace_lines`` attribute to :const:`False` on the frame + being traced. (Contributed by Nick Coghlan in :issue:`31344`.) + +* Trace hooks may now opt in to receiving ``opcode`` events from the interpreter + by setting the new ``f_trace_opcodes`` attribute to :const:`True` on the frame + being traced. (Contributed by Nick Coghlan in :issue:`31344`.) + + Deprecated ========== |