mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
M NEWS.txt
M PyShell.py M ScriptBinding.py M rpc.py M run.py Clean up the way IDLEfork handles termination of the subprocess, restore ability to interrupt user code in Windows (so long as it's doing terminal I/O). 1. Handle subprocess interrupts in Windows with an RPC message. 2. Run/F5 will restart the subprocess even if user code is running. 3. Restart the subprocess if the link is dropped. 4. Exit IDLE cleanly even during I/O. 4. In rpc.py, remove explicit calls to statelock, let the condition variable handle acquire() and release().
This commit is contained in:
parent
f927f14eda
commit
003091cd51
5 changed files with 149 additions and 63 deletions
|
@ -71,6 +71,11 @@ class Executive:
|
|||
def runcode(self, code):
|
||||
exec code in self.locals
|
||||
|
||||
def interrupt_the_server(self):
|
||||
# XXX KBK 05Feb03 Windows requires this be done with messages and
|
||||
# threads....
|
||||
self.rpchandler.interrupted = True
|
||||
|
||||
def start_the_debugger(self, gui_adap_oid):
|
||||
return RemoteDebugger.start_debugger(self.rpchandler, gui_adap_oid)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue