pyrepl help (pydoc): "exit" does not exit, whereas "quit" does · Issue #119856 · python/cpython · GitHub
Skip to content

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

Description

@vstinner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions