We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fd795 commit 27cacddCopy full SHA for 27cacdd
Doc/library/sys.rst
@@ -1644,6 +1644,12 @@ always available.
1644
``'opcode'`` event type added; :attr:`~frame.f_trace_lines` and
1645
:attr:`~frame.f_trace_opcodes` attributes added to frames
1646
1647
+ .. versionchanged:: 3.12
1648
+ ``'opcode'`` event will only be emitted if :attr:`~frame.f_trace_opcodes`
1649
+ of at least one frame has been set to :const:`True` before :func:`settrace`
1650
+ is called. This behavior will be changed back in 3.13 to be consistent with
1651
+ previous versions.
1652
+
1653
.. function:: set_asyncgen_hooks([firstiter] [, finalizer])
1654
1655
Accepts two optional keyword arguments which are callables that accept an
0 commit comments