]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix reference in code.rs (#117615) (#117628)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Mon, 8 Apr 2024 09:18:44 +0000 (10:18 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 09:18:44 +0000 (09:18 +0000)
Co-authored-by: Anita Hammer <166057949+anitahammer@users.noreply.github.com>
Fix reference in code.rst (#117615)

Doc/library/code.rst

index 3d7f43c86a0557d95911ca585fd553edd990acb0..0fd29c0165d1ac7784fdd6bffbb46d1f353002b7 100644 (file)
@@ -36,7 +36,7 @@ build applications which provide an interactive interpreter prompt.
    instance of :class:`InteractiveConsole` and sets *readfunc* to be used as
    the :meth:`InteractiveConsole.raw_input` method, if provided.  If *local* is
    provided, it is passed to the :class:`InteractiveConsole` constructor for
-   use as the default namespace for the interpreter loop.  The :meth:`interact`
+   use as the default namespace for the interpreter loop.  The :meth:`~InteractiveConsole.interact`
    method of the instance is then run with *banner* and *exitmsg* passed as the
    banner and exit message to use, if provided.  The console object is discarded
    after use.