From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 15 Aug 2025 13:59:18 +0000 (+0200) Subject: [3.13] gh-137760: Update REPL constants documentation (gh-137798) (gh-137823) X-Git-Tag: v3.13.8~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=929a77cfce68f6bbadf48b833c90025bb19de70a;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-137760: Update REPL constants documentation (gh-137798) (gh-137823) gh-137760: Update REPL constants documentation (gh-137798) (cherry picked from commit d6719c6be651bbc6a8547c3b65714184e06462de) Co-authored-by: Chaemin-Lim --- diff --git a/Doc/library/constants.rst b/Doc/library/constants.rst index 383bc272116f..dddd26c5b838 100644 --- a/Doc/library/constants.rst +++ b/Doc/library/constants.rst @@ -94,15 +94,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, 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