diff -r 06cae9806d74 Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py Fri Oct 14 14:30:54 2011 -0500 +++ b/Lib/idlelib/PyShell.py Sun Oct 30 12:09:49 2011 -0500 @@ -338,6 +338,7 @@ self.restarting = False self.subprocess_arglist = None self.port = PORT + self.original_compiler_flags = self.compile.compiler.flags rpcclt = None rpcsubproc = None @@ -445,6 +446,7 @@ gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt) # reload remote debugger breakpoints for all PyShellEditWindows debug.load_breakpoints() + self.compile.compiler.flags = self.original_compiler_flags self.restarting = False return self.rpcclt