summaryrefslogtreecommitdiff
path: root/Lib/idlelib/run.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) ↵Cheryl Sabella2018-10-201-0/+14
| | | | | | | (GH-6585) (cherry picked from commit a96c96f5dab68d4e611af4b8caefd7268533fd9a)
* Issue #25173: Replace 'master' with 'parent' in tkinter.messagebox calls.Terry Jan Reedy2015-09-251-1/+1
| | | | | This associates the message box with the widget and is better for Mac OSX. Patch by Mark Roseman.
* Issue #15809: IDLE shell now uses locale encoding instead of Latin1 forSerhiy Storchaka2015-05-171-0/+2
| | | | decoding unicode literals.
* Issue #23184: idlelib, remove more unused names and imports.Terry Jan Reedy2015-05-151-1/+0
|
* Issue #18316: Update idlelib 2.7 except clauses to ease backports.Terry Jan Reedy2013-06-291-1/+1
|
* Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stopTerry Jan Reedy2013-06-281-18/+38
| | | | | | replacing warnings.formatwarnings and to reverse replacement of warnings.showwarnings when import is complete and when main function exits. Add test_warning.py. Vinay Sajip provided capture_warnings function.
* prevent IDLE from trying to close when sys.stdin is reassigned (#17838)Benjamin Peterson2013-05-111-0/+5
|
* Keep IDLE from displaying spurious SystemExit tracebacksRaymond Hettinger2013-02-091-1/+4
| | | | | when running scripts that terminated by raising SystemExit (i.e. unittest and turtledemo).
* Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBaseSerhiy Storchaka2013-01-251-45/+9
| | | | interface and support all mandatory methods and properties.
* Issue #15318: Prevent writing to sys.stdin.Martin v. Löwis2012-07-251-6/+21
| | | | Patch by Roger Serwy and myself.
* Use _RPCFile.write properly.Martin v. Löwis2012-07-111-2/+2
|
* Don't use TextIOBase implementations in _RPCFile.Martin v. Löwis2012-07-111-2/+8
|
* Issue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka.Martin v. Löwis2012-07-111-1/+1
|
* Issue 13532: Allow bytearrays to be written also.Terry Jan Reedy2012-07-091-2/+2
|
* Widen test to support unicode.Martin v. Löwis2012-07-091-1/+1
|
* - Issue #13532: Check that arguments to sys.stdout.write are strings.Martin v. Löwis2012-07-091-3/+21
|
* #7092: Fix additional "-3" warnings in the idlelib package, and convert to ↵Florent Xicluna2010-04-021-10/+11
| | | | absolute imports.
* Issue #3926: Fix the usage of the new showwarnings and formatwarning.Guilherme Polo2009-08-141-3/+4
|
* 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",