This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients DiddiLeija, FFY00, asmeurer, eric.araujo, eryksun, gregory.p.smith, jack__d, p-ganssle, pablogsal, steven.daprano, terry.reedy, theacodes, tlalexander, veky
Date 2021-09-26.04:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20210926044454.GM11377@ando.pearwood.info>
In-reply-to <1632575896.34.0.617902800802.issue44603@roundup.psfhosted.org>
Content
> Typing `import sys; sys.exit()` every time I want to test something 
> quick on the REPL is awful UX.

It truly is awful. So why do you do it that way?

There are at least four other ways to cleanly exit the REPL.

1. raise SystemExit

2. exit()

3. quit()

4. Ctrl-D (posix systems) or Ctrl-Z ENTER (Windows systems)

Even if you are running the REPL without the site module (so that exit 
and quit are not available) the import sys solution is surely the worst 
of the lot, UX-wise.
History
Date User Action Args
2021-09-26 04:49:25steven.dapranosetrecipients: + steven.daprano, terry.reedy, gregory.p.smith, eric.araujo, eryksun, veky, p-ganssle, pablogsal, asmeurer, FFY00, theacodes, jack__d, tlalexander, DiddiLeija
2021-09-26 04:49:25steven.dapranolinkissue44603 messages
2021-09-26 04:49:24steven.dapranocreate