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
Documentation
Current documentation of exit/quit:
However, the current behaviour is:
The printed string is different.
Proposed documentation:
Linked PRs
quit#136011