bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)

This only happened when initializing the subprocess to run a module.
This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
This commit is contained in:
Terry Jan Reedy 2019-09-09 23:10:44 -04:00 committed by GitHub
parent b5381f6697
commit c59295a1ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -164,7 +164,7 @@ class ScriptBinding:
_sys.argv = argv
import os as _os
_os.chdir({dirname!r})
del _sys, _basename, _os
del _sys, argv, _basename, _os
\n""")
interp.prepend_syspath(filename)
# XXX KBK 03Jul04 When run w/o subprocess, runtime warnings still