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
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
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 ==