From c59295a1ca304f37ca136dd7efca9e560db27d28 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 9 Sep 2019 23:10:44 -0400 Subject: 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. --- Lib/idlelib/runscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/runscript.py') diff --git a/Lib/idlelib/runscript.py b/Lib/idlelib/runscript.py index f97cf528cc..de73bf8458 100644 --- a/Lib/idlelib/runscript.py +++ b/Lib/idlelib/runscript.py @@ -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 -- cgit v1.2.1