https://github.com/python/cpython/commit/27cacdd5b4788fa23f618b4d8d1d0ebf8b740930
commit: 27cacdd5b4788fa23f618b4d8d1d0ebf8b740930
branch: 3.12
author: Tian Gao <[email protected]>
committer: AlexWaygood <[email protected]>
date: 2024-02-04T22:27:17Z
summary:

[3.12] gh-114480: Add docs for f_trace_opcodes behavior on 3.12 (#114540)

files:
M Doc/library/sys.rst

diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 4bd769ea9ae59d..198422307bace4 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1644,6 +1644,12 @@ always available.
       ``'opcode'`` event type added; :attr:`~frame.f_trace_lines` and
       :attr:`~frame.f_trace_opcodes` attributes added to frames
 
+   .. versionchanged:: 3.12
+      ``'opcode'`` event will only be emitted if :attr:`~frame.f_trace_opcodes`
+      of at least one frame has been set to :const:`True` before 
:func:`settrace`
+      is called. This behavior will be changed back in 3.13 to be consistent 
with
+      previous versions.
+
 .. function:: set_asyncgen_hooks([firstiter] [, finalizer])
 
    Accepts two optional keyword arguments which are callables that accept an

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to