You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The exit behavior is not the same as the doc help mode in repl #138568
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
Activity
gh-138568: Make `help` mode in PyREPL not exit on empty line input (#…
pythongh-138568: Make `help` mode in PyREPL not exit on empty line in…
[3.13] pythongh-138568: Make `help` mode in PyREPL not exit on empty …
[3.14] gh-138568: Make `help` mode in PyREPL not exit on empty line i…
[3.13] gh-138568: Make `help` mode in PyREPL not exit on empty line i…
ambv commentedon Jan 7, 2026
Fixed, thank you @yihong0618!
pythongh-138568: Make `help` mode in PyREPL not exit on empty line in…
🚪 fix help()
🚪 fix help()
🚪 fix help()