8000 pyrepl help (pydoc): "exit" does not exit, whereas "quit" does · Issue #119856 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

pyrepl help (pydoc): "exit" does not exit, whereas "quit" does #119856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vstinner opened this issue May 31, 2024 · 1 comment
Closed

pyrepl help (pydoc): "exit" does not exit, whereas "quit" does #119856

vstinner opened this issue May 31, 2024 · 1 comment

Comments

@vstinner
Copy link
Member
vstinner commented May 31, 2024

When I enter Python help in the REPL, if I type "exit", I get:

Help on Quitter in module _sitebuiltins object:

exit = class Quitter(builtins.object)
 |  exit(name, eof)
 |
 |  Methods defined here:
(...)

If I try exit(), I get an error:

help> exit()
No Python documentation found for 'exit()'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

It propose supporting to just type "exit", similar to "quit", to quit the help.

Linked PRs

vstinner added a commit to vstinner/cpython that referenced this issue May 31, 2024
miss-islington pushed a commit to m 8000 iss-islington/cpython that referenced this issue Jun 3, 2024
…9858)

(cherry picked from commit 4223f1d)

Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner added a commit that referenced this issue Jun 3, 2024
…#119967)

gh-119856: Support exiting help() with just "exit" (GH-119858)
(cherry picked from commit 4223f1d)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
Copy link
Member Author
vstinner commented Jun 3, 2024

Fixed by commit 4223f1d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0