summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/rpc.py
Commit message (Collapse)AuthorAgeFilesLines
* Avoid problem resolving 'localhost'Kurt B. Kaiser2003-06-051-2/+3
| | | | | | M PyShell.py M rpc.py M run.py
* 1. Stake Freddy.Kurt B. Kaiser2003-05-241-6/+1
| | | | | | | | | | | | | e.g. further improve subprocess interrupt, exceptions, and termination. 2. Remove the workarounds in PyShell.py and ScriptBinding.py involving interrupting the subprocess prior to killing it, not necessary anymore. 3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu every time the shell window was recreated. M PyShell.py M ScriptBinding.py M rpc.py M run.py
* 1. Update debugger to not trace RPC code even when calling Queue andKurt B. Kaiser2003-05-101-2/+0
| | | | | | | | | | | threading modules. Can debug user code which imports these modules, though. 2. Re-enable debugger in PyShell. 3. Remove old code implementing previous approaches to this issue. M Debugger.py M PyShell.py M rpc.py
* 1. Implement processing of user code in subprocess MainThread. Pass loopKurt B. Kaiser2003-05-081-53/+146
| | | | | | | | | | | | is now interruptable on Windows. 2. Tweak signal.signal() wait parameters as called by various methods to improve I/O response, especially on Windows. 3. Debugger is disabled at this check-in pending further development. M NEWS.txt M PyShell.py M rpc.py M run.py
* Correct error in last checkin noticed by Neal Norwitz. And some more.Kurt B. Kaiser2003-03-221-4/+4
|
* Improve error message handling.Kurt B. Kaiser2003-03-221-3/+21
|
* Move setting of ioready 'wait' earlier in call chain, toKurt B. Kaiser2003-03-121-8/+8
| | | | rpc.SocketIO.main() and asyncreturn(). Improve comment.
* M rpc.pyKurt B. Kaiser2003-03-111-3/+3
| | | | | | M run.py 1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket. 2. Improve exception handling in subprocess when GUI terminates abruptly.
* M PyShell.pyKurt B. Kaiser2003-03-101-0/+2
| | | | | M rpc.py Improve exception handing if peer process has terminated.
* M rpc.pyKurt B. Kaiser2003-02-271-42/+1
| | | | | | | | M run.py Move exception formatting out of rpc.py. This allows each end of the link to format and print exceptions how and where it sees fit and makes it easier for threads to display their own exceptions.
* M NEWS.txtKurt B. Kaiser2003-02-171-17/+43
| | | | | | | | | | | | | | | | | | 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().
* M PyShell.pyKurt B. Kaiser2003-01-311-37/+41
| | | | | | | | | | M rpc.py SF Bug 676398 Doesn't handle non-built-in exceptions 1. Move exception formatting to the subprocess; allows subclassing of exceptions, including subclasses created in the shell without introducing excessive complexity in the RPC mechanism. 2. Provide access to linecache from subprocess to support this.
* M PyShell.pyKurt B. Kaiser2003-01-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | M RemoteDebugger.py M rpc.py Fix the incorrect shell exception tracebacks generated when running under debugger control: 1. Use rpc.SocketIO.asynccall() instead of remotecall() to handle the IdbProxy.run() command. 2. Add a 'shell' attribute to RemoteDebugger.IdbProxy to allow setting of ModifiedInterpreter's active_seq attribute from RemoteDebugger code. 3. Cleanup PyShell.ModifiedInterpreter.runcode() and remove ambiguity regarding use of begin/endexecuting(). 4. In runcode() and cleanup_traceback() use 'console' instead of 'file' to denote the entity to which the exception traceback is printed. 5. Enhance cleanup_traceback() so if the traceback is pruned entirely away (the error is in IDLE internals) it will be displayed in its entirety instead. 6. ModifiedInterpreter.runcode() now prints ERROR RPC returns to both console and __stderr__. 7. Make a small tweak to the rpc.py debug messages.
* 1. Eliminate putrequest(): only used in asynccall(), merge it there.Kurt B. Kaiser2003-01-251-19/+36
| | | | | | 2. Add additional debugging statements and enhance others. 3. Clarify comments. 4. Move SocketIO.nextseq class attribute to beginning of class.
* Whitespace NormalizationKurt B. Kaiser2002-12-311-15/+13
|
* Remove debugging connection messageKurt B. Kaiser2002-12-231-2/+3
|
* M PyShell.pyKurt B. Kaiser2002-12-061-15/+20
| | | | | | | | | | | | | 1. Format and print exceptions raised in user code. M rpc.py 1. Additional debug messages in rpc.py 2. Move debug message enable switch from SocketIO to Client and Server to allow separate activation. 3. Add indication of origin (client or server) to debug message 4. Add sequence number to appropriate debug messages 5. Pass string exception arg as a string rather than a tuple.
* M PyShell.pyKurt B. Kaiser2002-11-301-1/+2
| | | | | | M rpc.py SF Bug 629987: Idle not printing prompts following SyntaxError
* M CallTips.py Add support for getting calltip from subprocess,Kurt B. Kaiser2002-10-101-1/+4
| | | | | | | | | | | | refactor a bit and clean up. M PyShell.py Cosmetic changes, delete blank lines, add # on some blank lines. M rpc.py Add more debugging capability M run.py Add support for getting calltip from subprocess Move import statements
* 1. Revert subprocess environment clearing, will restart subprocessKurt B. Kaiser2002-08-251-26/+14
| | | | | | | | | | instead. 2. Preserve the Idle client's listening socket for reuse with the fresh subprocess. 3. Remove some unused rpc code, comment out additional unused code. Modified Files: ScriptBinding.py rpc.py run.py
* Improve exception handling across rpc interfaceKurt B. Kaiser2002-08-241-1/+4
| | | | | Modified Files: rpc.py
* GvR provided solution to the socket rebinding timeout problem.Kurt B. Kaiser2002-08-051-0/+1
| | | | | | M PyShell.py M rpc.py M run.py
* Reverse the RPC socket connection: Python execution server connects toKurt B. Kaiser2002-07-261-67/+69
| | | | | | | Idle client and localhost origin of connection is verified by client. M PyShell.py M rpc.py M run.py
* Shutdown subprocess debugger and associated Proxies/Adapters when closingKurt B. Kaiser2002-06-261-22/+40
| | | | | | | | | | | the Idle debugger. M PyShell.py : Call RemoteDebugger.close_remote_debugger() M RemoteDebugger.py: Add close_remote_debugger(); further polish code used to start the debugger sections. M rpc.py : Add comments on Idlefork methods register(), unregister() comment out unused methods M run.py : Add stop_the_debugger(); polish code
* Polish RemoteDebugger code.Kurt B. Kaiser2002-06-161-5/+8
| | | | | | Use a repr() on the subprocess side when fetching dict values for stack. The various dict entities are not needed by the debugger GUI, only their representation.
* GvR's rpc patchChui Tey2002-05-261-0/+530