Skip to content

The exit behavior is not the same as the doc help mode in repl #138568

@yihong0618

Description

@yihong0618

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions