Author veky
Recipients FFY00, asmeurer, eric.araujo, gregory.p.smith, jack__d, mark.dickinson, p-ganssle, pablogsal, steven.daprano, terry.reedy, theacodes, tlalexander, veky
Date 2021-07-17.03:49:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626493783.93.0.605057096205.issue44603@roundup.psfhosted.org>
In-reply-to
Content
> In the other hand, special-casing 'quit\n' and 'exit\n' could be seen as analogous to special-casing '^Z\n'

Terry, there is a big difference between special-casing 'exit\n' and special-casing '^Z\n': 'exit' is a perfectly valid identifier (and people use it regularly), ^Z is not. Especially if 'exit\n' exited unconditionally, I think many people would be very frustrated and surprised when trying to inspect the variable called 'exit'.

I'd have no objection if something like '!exit' was special-cased, but then there is not much difference between adding a bang before and adding the parentheses after. Alternatively, exit can be proclaimed a keyword, but I really think this is overkill.

And please don't think this process that you're starting now will stop at these two words. Much more beginners, according to my experience, try to type `pip install something` inside Python REPL. If we do this, it will be a powerful precedent, and almost surely we will have the "magic mess" later.
History
Date User Action Args
2021-07-17 03:49:43vekysetrecipients: + veky, terry.reedy, gregory.p.smith, mark.dickinson, eric.araujo, steven.daprano, p-ganssle, pablogsal, asmeurer, FFY00, theacodes, jack__d, tlalexander
2021-07-17 03:49:43vekysetmessageid: <1626493783.93.0.605057096205.issue44603@roundup.psfhosted.org>
2021-07-17 03:49:43vekylinkissue44603 messages
2021-07-17 03:49:43vekycreate