[Idle-dev] Re: -Qnew default
Michael Williams
michael.williams@st-annes.oxford.ac.uk
Sun, 12 May 2002 19:01:49 +0100
On Sun, May 12, 2002 at 01:55:44PM -0400, Bruce Sherwood wrote:
> Some months ago I experimented with making -Qnew the default when running
> from idlefork, and it mostly worked, though as I remember it there was a
> problem with a pre-release version of Python 2.2, which has probably been
> fixed by now. In ExecBinding.py, make the indicated change:
>
> def run_complete_script_event(self, event):
> filename = self.getfilename()
> if not filename: return
> filename = os.path.abspath(filename)
>
> self.stopProgram()
>
> self.commands = [ ('run', filename) ]
> waiting_for_loader.append(self)
> ## spawn.spawn( pyth_exe, load_py )
> ## The following makes all programs started from IDLE use true division:
> spawn.spawn( pyth_exe, "-Qnew", load_py )
That works for modules but not the interactive shell. Any ideas?
--
Michael