yihong0618 · GitHub

Bug report

Bug description:

in help mode pyrepl default
we enter help to enter the help mode
as doc says

To quit this help utility and return to the interpreter,
enter "q", "quit" or "exit".

but I just print a enter it back to interpreter
it is not as the doc and not very intuitive

# Add a code block here, if required
./python
help
Welcome to Python 3.15's help utility! If this is your first time using
Python, you should definitely check out the tutorial at
https://docs.python.org/3.15/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To get a list of available
modules, keywords, symbols, or topics, enter "modules", "keywords",
"symbols", or "topics".
You can use the following keyboard shortcuts at the main interpreter prompt.
F1: enter interactive help, F2: enter history browsing mode, F3: enter paste
mode (press again to exit).
Each module also comes with a one-line summary of what it does; to list
the modules whose name or summary contain a given string such as "spam",
enter "modules spam".
To quit this help utility and return to the interpreter,
enter "q", "quit" or "exit".
# just enter `enter`
# will back to interpreter

png
Image

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Read the original on github.com ↗