Message404711
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. |
|
Date |
User |
Action |
Args |
2021-10-22 00:17:38 | terry.reedy | set | recipients:
+ terry.reedy, aroberge |
2021-10-22 00:17:38 | terry.reedy | set | messageid: <1634861858.48.0.276172895498.issue45560@roundup.psfhosted.org> |
2021-10-22 00:17:38 | terry.reedy | link | issue45560 messages |
2021-10-22 00:17:38 | terry.reedy | create | |
|