From aa61a04e9785db36e8d12ebdc0097afb57126d85 Mon Sep 17 00:00:00 2001 From: Anita Hammer <166057949+anitahammer@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:34:49 +0100 Subject: [PATCH 1/2] Update code.rst --- Doc/library/code.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/code.rst b/Doc/library/code.rst index 091840781bd235..0011c6bd34d516 100644 --- a/Doc/library/code.rst +++ b/Doc/library/code.rst @@ -41,7 +41,7 @@ build applications which provide an interactive interpreter prompt. 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. If *local_exit* is provided, - it is passed to the :class:`InteractiveConsole` constructor. The :meth:`interact` + it is passed to the :class:`InteractiveConsole` constructor. 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. From 472edc9caf84eb526fcc55082c960d73f5606c9a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 7 Apr 2024 23:42:41 +0100 Subject: [PATCH 2/2] Add a ~ --- Doc/library/code.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/code.rst b/Doc/library/code.rst index 0011c6bd34d516..8cb604cf48ff0b 100644 --- a/Doc/library/code.rst +++ b/Doc/library/code.rst @@ -41,7 +41,7 @@ build applications which provide an interactive interpreter prompt. 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. If *local_exit* is provided, - it is passed to the :class:`InteractiveConsole` constructor. The :meth:`InteractiveConsole.interact` + it is passed to the :class:`InteractiveConsole` constructor. 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.