Skip to content

[3.7] bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818) #15820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/idlelib/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Released on 2019-09-30?
======================================


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.
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/runscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _run_module_event(self, event, *, customize=False):
_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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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.