[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

Stargirl Flowers report at bugs.python.org
Mon Jul 12 10:26:54 EDT 2021


Stargirl Flowers <me at thea.codes> added the comment:

I do want to be cautious of saying that we can't do it because of the way the REPL is currently implemented- which appears to be an implementation driven by convenience more than necessity.

I also find pushing against special-case behavior in the REPL strange. The REPL already has special-case behavior: printing the header, the __interactivehook__ that configures readline, heck, the `>>>` are unique the REPL and plainly copy-pasting a REPL session into a file won't work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44603>
_______________________________________


More information about the Python-bugs-list mailing list