[issue38078] IDLE: Don't run internal code in user namespace.

2021-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachery, thank you for the PR to test. It turns out that the proposed change is more dangerous the the possible error it prevent. I could have easily missed the problem (not setting __file__, see PR). Before considering this again, I need to list ways to

[issue38078] IDLE: Don't run internal code in user namespace.

2020-05-11 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 1.0 -> 2.0 pull_requests: +19351 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20040 ___ Python tracker

[issue38078] IDLE: Don't run internal code in user namespace.

2019-09-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : #38077 fixed the bug of internal runcommand code not deleting 'argv' from the user namespace. This issue is about not running code there. When a subprocess is running, pyshell.ModifiedInterpreter.runcommand runs python code created by IDLE in locals ==