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, p-ganssle, pablogsal, steven.daprano, theacodes, tlalexander, veky
Date 2021-07-12.14:19:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626099598.31.0.597661910923.issue44603@roundup.psfhosted.org>
In-reply-to
Content
One thing we *could* do which is not super invasive, is to match a single AST node of type NAME at the end of Python run. This seems to work but is a bit inelegant:

>>> print(exit)
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> [exit]
[Use exit() or Ctrl-D (i.e. EOF) to exit]
>>> exit
bye!

I have opened a draft with this in PR27096
History
Date User Action Args
2021-07-12 14:19:58pablogsalsetrecipients: + pablogsal, steven.daprano, veky, p-ganssle, FFY00, theacodes, tlalexander
2021-07-12 14:19:58pablogsalsetmessageid: <1626099598.31.0.597661910923.issue44603@roundup.psfhosted.org>
2021-07-12 14:19:58pablogsallinkissue44603 messages
2021-07-12 14:19:58pablogsalcreate