8000 Description of `exit` / `quit` · Issue #136010 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content 10000
Description of exit / quit #136010
Closed as not planned
Closed as not planned
@Joeccp

Description

@Joeccp

Documentation

Current documentation of exit/quit:

Objects that when printed, print a message like “Use quit() or Ctrl-D (i.e. EOF) to exit”, and when called, raise SystemExit with the specified exit code.

However, the current behaviour is:

>>> print(exit)
Use exit() or Ctrl-Z plus Return to exit
>>> print(quit)
Use quit() or Ctrl-Z plus Return to exit

The printed string is different.

Proposed documentation:

Objects that when printed, print a message like “Use quit() or Ctrl-Z plus Return to exit”, and when called, raise SystemExit with the specified exit code.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0