Author terry.reedy
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.04:59:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626497961.64.0.934643675516.issue44603@roundup.psfhosted.org>
In-reply-to
Content
Another issue: exit() and quit() work unconditionally when called, regardless of the context:  "a = (3, exit(), 'abc')".  The abbreviated versions will not.

An alternative change is to revise the representation.  Perhaps tell the truth first by giving the standard representation -- <class '_sitebuiltins.Quitter'> --  so that people might recognize that they are just seeing a printed string.  Then add on the next line, "If you want to exit, enter 'exit' ...".
History
Date User Action Args
2021-07-17 04:59:21terry.reedysetrecipients: + terry.reedy, gregory.p.smith, mark.dickinson, eric.araujo, steven.daprano, veky, p-ganssle, pablogsal, asmeurer, FFY00, theacodes, jack__d, tlalexander
2021-07-17 04:59:21terry.reedysetmessageid: <1626497961.64.0.934643675516.issue44603@roundup.psfhosted.org>
2021-07-17 04:59:21terry.reedylinkissue44603 messages
2021-07-17 04:59:21terry.reedycreate