From: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:28:33 +0000 (+0530) Subject: gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062) X-Git-Tag: v3.15.0a1~609 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f278afcabf1a1c4162a0bfd4912662517d5d04a2;p=thirdparty%2FPython%2Fcpython.git gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062) --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 771e0f2709a4..30fd4db1fd18 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1764,7 +1764,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only :func:`settrace` for each thread being debugged or use :func:`threading.settrace`. Trace functions should have three arguments: *frame*, *event*, and - *arg*. *frame* is the current stack frame. *event* is a string: ``'call'``, + *arg*. *frame* is the :ref:`current stack frame `. *event* is a string: ``'call'``, ``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on the event type.