summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove port spec from run.py and fix bug whereKurt B. Kaiser2009-04-021-3/+6
| | | | | subprocess fails to extract port from command line when warnings are present.
* use new showwarnings signature for idle #3391Benjamin Peterson2008-10-161-2/+3
|
* support the optional line argument for idleBenjamin Peterson2008-10-151-1/+2
|
* Queue renaming reversal part 3: move module into place andGeorg Brandl2008-05-251-2/+2
| | | | change imports and other references. Closes #2925.
* Tkinter rename reversal: remove tkinter package, adapt imports and docs.Georg Brandl2008-05-201-3/+3
|
* Tkinter rename, step 2: fix imports and add stub modules.Georg Brandl2008-05-161-3/+3
|
* Added stub for the Queue module to be renamed in 3.0.Alexandre Vassalotti2008-05-111-2/+2
| | | | Use the 3.0 module name to avoid spurious warnings.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* There was an error on exit if no sys.exitfunc was defined. Issue 1647.Kurt B. Kaiser2008-01-231-1/+4
|
* Allow interrupt only when executing user code in subprocessKurt B. Kaiser2007-10-091-3/+10
| | | | Patch 1225 Tal Einat modified from IDLE-Spoon.
* Merge IDLE-syntax-branch r39668:41449 into trunkKurt B. Kaiser2005-11-181-0/+6
| | | | | | | | | | | | | | | | A idlelib/AutoCompleteWindow.py A idlelib/AutoComplete.py A idlelib/HyperParser.py M idlelib/PyShell.py M idlelib/ParenMatch.py M idlelib/configDialog.py M idlelib/EditorWindow.py M idlelib/PyParse.py M idlelib/CallTips.py M idlelib/CallTipWindow.py M idlelib/run.py M idlelib/config-extensions.def A idlelib/MultiCall.py
* Use Queue's blocking feature instead of sleeping in the mainKurt B. Kaiser2005-05-051-2/+1
| | | | loop. Patch # 1190163 Michiel de Hoon
* The remote procedure call module rpc.py can now access data attributes ofKurt B. Kaiser2004-12-211-1/+1
| | | | | | | | | | | remote registered objects. Changes to these attributes are local, however. M EditorWindow.py M NEWS.txt M PyShell.py M idlever.py M rpc.py M run.py
* On OpenBSD, terminating IDLE with ctrl-c from the command line caused aKurt B. Kaiser2004-11-191-1/+3
| | | | | | | | stuck subprocess MainThread because only the SocketThread was exiting. M NEWS.txt M idlever.py M run.py
* Redirect the warning stream to the shell during the ScriptBinding check of ↵Kurt B. Kaiser2004-07-041-0/+17
| | | | | | | | | | | | user code and format the warning similarly to an exception for both that check and for warnings raised in the subprocess. M NEWS.txt M Pyshell.py M ScriptBinding.py M run.py
* Added a Tk error dialog to run.py inform the user if the subprocess can'tKurt B. Kaiser2004-01-211-8/+23
| | | | | | | | | | | | | | connect to the user GUI process. Added a timeout to the GUI's listening socket. Added Tk error dialogs to PyShell.py to announce a failure to bind the port or connect to the subprocess. Clean up error handling during connection initiation phase. This is an update of Python Patch 778323. M NEWS.txt M PyShell.py M ScriptBinding.py M run.py Backport candidate.
* - Print correct exception even if source file changed since shell wasKurt B. Kaiser2004-01-021-0/+2
| | | | | | | restarted. IDLEfork Patch 869012 Noam Raphael Modified Files: NEWS.txt run.py
* - After an exception, run.py was not setting the exception vector. NoamKurt B. Kaiser2003-11-191-1/+2
| | | | | | | Raphael suggested correcting this so pdb's postmortem pm() would work. IDLEfork Patch 844675 Modified: NEWS.txt run.py
* Idlefork patch #682347: convert Unicode strings from readline toMartin v. Löwis2003-06-221-0/+3
| | | | | IOBinding.encoding. Also set sys.std{in,out,err}.encoding, for both the local and the subprocess case.
* Remove the 2.2 compatibility module boolcheck.py and related codeKurt B. Kaiser2003-06-141-2/+0
| | | | | | M PyShell.py R boolcheck.py M run.py
* Interrupt module has been folded into the thread moduleKurt B. Kaiser2003-06-131-5/+5
| | | | | | | Modified Files: run.py Removed Files: interruptmodule.c
* Avoid problem resolving 'localhost'Kurt B. Kaiser2003-06-051-1/+3
| | | | | | M PyShell.py M rpc.py M run.py
* Modify the remote stack viewer to work in the threaded subprocess.Kurt B. Kaiser2003-06-021-3/+12
| | | | | M PyShell.py M run.py
* Added a config-main General option to delete sys.exitfunc. The defaultKurt B. Kaiser2003-05-281-5/+17
| | | | | | | | is not to do that. VPython and student environment support. M PyShell.py M config-main.def M run.py
* 1. Stake Freddy.Kurt B. Kaiser2003-05-241-24/+34
| | | | | | | | | | | | | 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
* Show Freddy the mirrorKurt B. Kaiser2003-05-171-7/+15
| | | | i.e. improve subprocess exit paths and exeception reporting
* On Windows the subprocess was not exiting during a restart.Kurt B. Kaiser2003-05-141-0/+2
| | | | | | | | | | | This bug, henceforth designated Freddy, was due to the mistaken elimination of the KeyboardInterrupt exception at the previous revision. PyShell's unix_terminate hammer was masking the problem on Linux. On W2K the subprocess MainThread was trying to print the exception after the SockThread had ceased to service the socket. The subprocess would then detach and spin when the GUI created the new subprocess. Modified Files: run.py
* 1. RemoteDebugger now runs user code in subprocess MainThreadKurt B. Kaiser2003-05-121-53/+58
| | | | | | | | | | | 2. run.py: move exception printing to toplevel to allow access from main() 3. Clarification in PyShell.py: when the subprocess is restarted, the debugger GUI is reused with a fresh instance of the subprocess debugger. M PyShell.py M RemoteDebugger.py M run.py
* 1. Implement processing of user code in subprocess MainThread. Pass loopKurt B. Kaiser2003-05-081-55/+75
| | | | | | | | | | | | 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
* M PyShell.pyKurt B. Kaiser2003-03-221-9/+72
| | | | | | | | | | | | | | | | M run.py 1. Move subprocess socket handling to a subthread - "SockThread". 2. In the subprocess, implement a queue and global completion and exit flags. Execute code after it is passed through the queue. (Currently, user code is executed in SockThread. The next phase of development will move the tail of the queue to MainThread.) 3. Implement an RPC message used to shut down the execution server. 4. Improve normal and exception subprocess exits. (At this checkin a "pass loop" interrupt doesn't work on any platform. It will be restored for all platforms once user code execution is moved to MainThread.)
* M rpc.pyKurt B. Kaiser2003-03-111-1/+1
| | | | | | M run.py 1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket. 2. Improve exception handling in subprocess when GUI terminates abruptly.
* SF 695861Kurt B. Kaiser2003-03-031-1/+11
| | | | | | | Eliminate extra blank line in shell output. Caused by stdout not being flushed upon completion of subprocess' Executive.runcode() when user code ends by outputting an unterminated line, e.g. print "test",
* M rpc.pyKurt B. Kaiser2003-02-271-1/+45
| | | | | | | | 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-0/+5
| | | | | | | | | | | | | | | | | | 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().
* Update way a subprocess is launched for Mac OS X.Tony Lownds2002-12-201-0/+2
| | | | | | | | | | Another applet mechanism has been developed for Python on Mac OS X and trying to use the -c "__import__('run').main()" trick is just not working. macosx_main.py is a new file which should be used as the startup file for Mac OS X applet bundles. This startup file understands a -p option, which when seen will start run.main(). When running as an applet, this seems like the best approach.
* M CallTips.py Add support for getting calltip from subprocess,Kurt B. Kaiser2002-10-101-15/+23
| | | | | | | | | | | | 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-11/+3
| | | | | | | | | | 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
* GvR provided solution to the socket rebinding timeout problem.Kurt B. Kaiser2002-08-051-2/+2
| | | | | | M PyShell.py M rpc.py M run.py
* Reset the Python execution server environment to its initial value priorKurt B. Kaiser2002-07-281-3/+11
| | | | | | | to executing Run/F5 from an EditorWindow. M ScriptBinding.py : add call to clear_the_environment() M run.py : implemented Executive.clear_the_environment()
* Reverse the RPC socket connection: Python execution server connects toKurt B. Kaiser2002-07-261-1/+32
| | | | | | | 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-3/+7
| | | | | | | | | | | 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-2/+2
| | | | | | 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/+49