From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:59:24 +0000 (+0200) Subject: [3.14] gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062) ... X-Git-Tag: v3.14.0rc3~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efac05a1355b32ccbb271ec3903e2cbe67307221;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062) (#138068) Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com> --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 52f0af31c687..4c02a77489e1 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.