Skip to content

Commit 29bde48

Browse files
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. (cherry picked from commit c59295a) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 99df5e8 commit 29bde48

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Lib/idlelib/NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Released on 2019-10-20?
33
======================================
44

55

6+
bpo-38077: IDLE no longer adds 'argv' to the user namespace when
7+
initializing it. This bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
8+
69
bpo-38401: Shell restart lines now fill the window width, always start
710
with '=', and avoid wrapping unnecessarily. The line will still wrap
811
if the included file name is long relative to the width.

Lib/idlelib/runscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _run_module_event(self, event, *, customize=False):
164164
_sys.argv = argv
165165
import os as _os
166166
_os.chdir({dirname!r})
167-
del _sys, _basename, _os
167+
del _sys, argv, _basename, _os
168168
\n""")
169169
interp.prepend_syspath(filename)
170170
# XXX KBK 03Jul04 When run w/o subprocess, runtime warnings still
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
IDLE no longer adds 'argv' to the user namespace when initializing it. This
2+
bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.

0 commit comments

Comments
 (0)