[Idle-dev] -Qnew default

Bruce Sherwood bas@andrew.cmu.edu
Sun, 12 May 2002 13:55:44 -0400


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 )

Bruce Sherwood