From: Georg Brandl Date: Thu, 12 Oct 2006 07:57:24 +0000 (+0000) Subject: Bug #813342: Start the IDLE subprocess with -Qnew if the parent X-Git-Tag: v2.5.1c1~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0db92a676055c48ee9c6119ffa057c9d6397a55;p=python Bug #813342: Start the IDLE subprocess with -Qnew if the parent is started with that option. (backport from rev. 52295) --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index aa27028b1b..1bdd0a64ca 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -351,6 +351,8 @@ class ModifiedInterpreter(InteractiveInterpreter): def build_subprocess_arglist(self): w = ['-W' + s for s in sys.warnoptions] + if 1/2 > 0: # account for new division + w.append('-Qnew') # Maybe IDLE is installed and is being accessed via sys.path, # or maybe it's not installed and the idle.py script is being # run from the IDLE source directory. diff --git a/Misc/NEWS b/Misc/NEWS index 8feb1fd6e9..e8be7fa1d4 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,9 @@ Extension Modules Library ------- +- Bug #813342: Start the IDLE subprocess with -Qnew if the parent + is started with that option. + - Bug #1446043: correctly raise a LookupError if an encoding name given to encodings.search_function() contains a dot.