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 pablogsal
Recipients FFY00, pablogsal, steven.daprano, theacodes, tlalexander, veky
Date 2021-07-12.13:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626096737.66.0.738595859177.issue44603@roundup.psfhosted.org>
In-reply-to
Content
IPython and other reprs are an entire abstraction layer on top of Python, which allows them to do a lot of extra things like implement new commands and alters a lot of behaviours, but the CPython REPL is just the interpreter evaluating commands, and this is very coupled with the regular machinery, at to the point that is the tokenizer the one consuming input (lazily!) from standard input.

Unless I am missing anything, the only way to do the desired behaviour is to re-architect part of how interactive mode works or to directly make exit a keyword, which is backwards incompatible. 

I may be missing simpler ways of course, but in general, my opinion is that anything that involves modifying the compiler pipeline to somehow special case this is too much cost for the advantage.
History
Date User Action Args
2021-07-12 13:32:17pablogsalsetrecipients: + pablogsal, steven.daprano, veky, FFY00, theacodes, tlalexander
2021-07-12 13:32:17pablogsalsetmessageid: <1626096737.66.0.738595859177.issue44603@roundup.psfhosted.org>
2021-07-12 13:32:17pablogsallinkissue44603 messages
2021-07-12 13:32:17pablogsalcreate