summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-09-10 03:10:44 (GMT)
committerGitHub <noreply@github.com>2019-09-10 03:10:44 (GMT)
commitc59295a1ca304f37ca136dd7efca9e560db27d28 (patch)
tree48ee6d3d87dc9d626ad61ad69fbb092ae0f06eb1 /Lib/idlelib
parentb5381f669718aa19690f42f3b8bd88f03045b9d2 (diff)
downloadcpython-c59295a1ca304f37ca136dd7efca9e560db27d28.zip
cpython-c59295a1ca304f37ca136dd7efca9e560db27d28.tar.gz
cpython-c59295a1ca304f37ca136dd7efca9e560db27d28.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/NEWS.txt3
-rw-r--r--Lib/idlelib/runscript.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index 559ffd0..3ccc5c0 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -3,6 +3,9 @@ Released on 2019-10-20?
======================================
+bpo-38077: IDLE no longer adds 'argv' to the user namespace when
+initializing it. This bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
+
bpo-38401: Shell restart lines now fill the window width, always start
with '=', and avoid wrapping unnecessarily. The line will still wrap
if the included file name is long relative to the width.
diff --git a/Lib/idlelib/runscript.py b/Lib/idlelib/runscript.py
index f97cf52..de73bf8 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