Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,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
Expand Down