From 7ddaea40e87e6f6ad356ccf07b647118f1eb9887 Mon Sep 17 00:00:00 2001 From: Bhuvansh Kataria Date: Fri, 14 Aug 2026 19:41:57 +0000 Subject: [PATCH 1/2] gh-154753: Update references to moved files in the docs --- Doc/extending/extending.rst | 2 +- Doc/library/sys.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 23e0064c6c93609..6518e20cafbc9e7 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -1405,7 +1405,7 @@ Finally it should be mentioned that Capsules offer additional functionality, which is especially useful for memory allocation and deallocation of the pointer stored in a Capsule. The details are described in the Python/C API Reference Manual in the section :ref:`capsules` and in the implementation of Capsules (files -:file:`Include/pycapsule.h` and :file:`Objects/pycapsule.c` in the Python source +:file:`Include/pycapsule.h` and :file:`Objects/capsule.c` in the Python source code distribution). .. rubric:: Footnotes diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 0b8c244482ac574..7717b8bb920a171 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1660,8 +1660,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only The interpreter is about to execute a new line of code or re-execute the condition of a loop. The local trace function is called; *arg* is ``None``; the return value specifies the new local trace function. See - :file:`Objects/lnotab_notes.txt` for a detailed explanation of how this - works. + :attr:`~codeobject.co_lnotab` for information about the mapping from + bytecode offsets to line numbers. Per-line events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` to :const:`False` on that :ref:`frame `. From 5a8e5018aad9023f35fbbf7e499e0caad7d7239d Mon Sep 17 00:00:00 2001 From: Bhuvansh Kataria Date: Fri, 14 Aug 2026 20:30:19 +0000 Subject: [PATCH 2/2] gh-154753: preserve lnotab reference on 3.13 --- Doc/library/sys.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 7717b8bb920a171..0b8c244482ac574 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1660,8 +1660,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only The interpreter is about to execute a new line of code or re-execute the condition of a loop. The local trace function is called; *arg* is ``None``; the return value specifies the new local trace function. See - :attr:`~codeobject.co_lnotab` for information about the mapping from - bytecode offsets to line numbers. + :file:`Objects/lnotab_notes.txt` for a detailed explanation of how this + works. Per-line events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` to :const:`False` on that :ref:`frame `.