New submission from Terry J. Reedy <tjre...@udel.edu>:
On Windows: >>> exit 'Use exit() or Ctrl-Z plus Return to exit' >>> quit 'Use quit() or Ctrl-Z plus Return to exit' >>> exit.eof 'Ctrl-Z plus Return' On *nix, 'Ctrl-Z plus Return' is 'Ctrl-D (i.e, EOF)' IDLE uses the latter even on Windows, and Ctrl-Z does not work. Both exit and quit are instances of _sitebuiltins.Quitter https://github.com/python/cpython/blob/e14d5ae5447ae28fc4828a9cee8e9007f9c30700/Lib/_sitebuiltins.py#L13-L26 class Quitter(object): def __init__(self, name, eof): self.name = name self.eof = eof def __repr__(self): return 'Use %s() or %s to exit' % (self.name, self.eof) def __call__ [not relevant here] We just need to replace current exit/quit.eof as indicated above on startup. ---------- messages: 402678 nosy: terry.reedy priority: normal severity: normal status: open title: IDLE: Change Ctrl-Z note in exit/quit repr on Windows _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45296> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com