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 terry.reedy
Recipients aroberge, terry.reedy
Date 2021-10-22.00:17:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634861858.48.0.276172895498.issue45560@roundup.psfhosted.org>
In-reply-to
Content
This is most likely an oversight.  It affects both normal and -n mode.  The three sys attributes can be written.  Given the error instance e caught in the IDLE process, we need to execute, *in the user namespace*,
  sys.last_type, sys.last_value, sys.traceback = type(e), e, None

The syntax error handle should call run_source (or maybe run_code).  I will make a PR if it seem to work.
History
Date User Action Args
2021-10-22 00:17:38terry.reedysetrecipients: + terry.reedy, aroberge
2021-10-22 00:17:38terry.reedysetmessageid: <1634861858.48.0.276172895498.issue45560@roundup.psfhosted.org>
2021-10-22 00:17:38terry.reedylinkissue45560 messages
2021-10-22 00:17:38terry.reedycreate