]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-137760: Update REPL constants documentation (gh-137798) (#137822)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Aug 2025 13:59:57 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Aug 2025 13:59:57 +0000 (13:59 +0000)
Co-authored-by: Chaemin-Lim <antraxmin@naver.com>
Doc/library/constants.rst

index c0ac4ea8412ebdde671390ece98076c554abf283..04080fd0d865ec04a56322cdc3b1dec69537a019 100644 (file)
@@ -97,15 +97,17 @@ should not be used in programs.
           exit(code=None)
 
    Objects that when printed, print a message like "Use quit() or Ctrl-D
-   (i.e. EOF) to exit", and when called, raise :exc:`SystemExit` with the
+   (i.e. EOF) to exit", and when accessed directly in the interactive
+   interpreter or called as functions, raise :exc:`SystemExit` with the
    specified exit code.
 
 .. data:: help
    :noindex:
 
    Object that when printed, prints the message "Type help() for interactive
-   help, or help(object) for help about object.", and when called,
-   acts as described :func:`elsewhere <help>`.
+   help, or help(object) for help about object.", and when accessed directly
+   in the interactive interpreter, invokes the built-in help system
+   (see :func:`help`).
 
 .. data:: copyright
           credits