summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Update way a subprocess is launched for Mac OS X.Tony Lownds2002-12-201-14/+18
| | | | | | | | | | 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 ColorDelegator.pyKurt B. Kaiser2002-12-171-1/+0
| | | | | | | | | | | | | M PyShell.py M ScriptBinding.py 1. Update ScriptBinding.py to highlight a syntax error in the Edit window, and place the cursor on the error. Add a syntax check to the Run Script event instead of waiting until the script tries to run and raises a syntax error in the shell, forcing the user to navigate back to the Edit window to fix it. 2. Modify tag_config's appropriately in PyShell.py and ColorDelegator.py 3. Some minor clean-up in ScriptBinding.py
* M EditorWindow.pyKurt B. Kaiser2002-12-161-3/+8
| | | | | | | | | | M PyShell.py Idlefork SF Bug 440383 - IDLE goes into beep loop Fix loop in EditorWindow.newline_and_indent_event() and in addition fix submission of >>> prompt to PyParse.Parser Eliminate extra attribute EditorWindow.auto_indent
* M Debugger.pyKurt B. Kaiser2002-12-141-33/+63
| | | | | | | | | | | | | | | | | | | | | | | M IOBinding.py M PyShell.py * Could not remove last set of saved breakpoints from a file * Starting with empty edit window, could not load a file * Multiple adjacent breakpoints were saved as one breakpoint * Storing breakpoints whenever a file is closed can get them out of synch with the saved version of a file. Only store them when the file is saved. * Add comment on current limitations on file editing in the presence of breakpoints. * Replace get_current_breaks() with update_breakpoints(), add an update to PyShellEditorWindow.breakpoints, which is the master breakpoint data structure, and which is used to reload the subprocess debugger. * Revert Debugger.Debugger.load_breakpoints() to use editwin.breakpoints. It is easier to debug the debugger if the breakpoint list in IDLE is identical to the list in the subprocess debugger and is transferred when the subprocess debugger is restarted, because this list can be easily queried. * Cleanup some linespacing and comments in IOBinding.py
* Rework the command line interface, incorporating the shell/editKurt B. Kaiser2002-12-111-72/+136
| | | | | | configuration selection. Rework the usage message to match. Also some minor code polishing.
* M PyShell.pyKurt B. Kaiser2002-12-061-5/+19
| | | | | | | | | | | | | 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.
* Add missing self for method callNeal Norwitz2002-11-301-2/+2
|
* M PyShell.pyKurt B. Kaiser2002-11-301-16/+18
| | | | | | M rpc.py SF Bug 629987: Idle not printing prompts following SyntaxError
* Correct an error introduced at Rev 1.30. The keyword arg is necessaryKurt B. Kaiser2002-11-291-6/+8
| | | | to freeze the value of orig_checkcache. Otherwise infinite recursion.
* Set breakpoints on remote debuggerChui Tey2002-11-041-8/+9
|
* Recalls breakpoints set in a fileChui Tey2002-11-041-7/+57
|
* Implement Restoring Breakpoints in Subprocess DebuggerKurt B. Kaiser2002-10-231-34/+96
| | | | | | | | | | | | | | | | | | | | M Debugger.py M EditorWindow.py M PyShell.py 0. Polish PyShell.linecache_checkcache() 1. Move break clearing code to PyShell.PyShellEditorWindow from EditorWindow. 2. Add PyShellEditorWindow.breakpoints attribute to __init__, a list of line numbers which are breakpoints for that edit window. 3. Remove the code in Debugger which removes all module breakpoints when debugger is closed. Want to be able to reload into debugger when restarted. 4. Moved the code which sets EditorWindow.text breakpoints from Debugger to PyShell.PyShellEditorWindow and refactored. 5. Implement reloading subprocess debugger with breakpoints from all open PyShellEditorWindows when debugger is opened or subprocess restarted. 6. Eliminate the break_set attribute, use the breakpoint list instead.
* M CallTips.py Add support for getting calltip from subprocess,Kurt B. Kaiser2002-10-101-10/+7
| | | | | | | | | | | | 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
* Finding a suitable interpreter to spawn needed tweaking on the MacTony Lownds2002-09-291-4/+17
|
* Fix bug I created during merge from Python-idle.Kurt B. Kaiser2002-09-231-2/+2
| | | | Also, decided IDENTCHARS is better as global, after all.
* Merge Py Idle changes:Kurt B. Kaiser2002-09-181-1/+2
| | | | Missed adding "import types" while merging PyShell by hand....
* Merge Py Idle changes:Kurt B. Kaiser2002-09-181-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Rev 1.35 fdrake Use string.ascii_letters instead of string.letters (SF bug #226706). Move computation of sets of characters out of the body of the function that uses them. Rev 1.36 tim_one Convert a pile of obvious "yes/no" functions to return bool Rev 1.37 (skip, done differently in Idlefork) Rev 1.38 loewis Patch #590913: PEP 263 support. Rev 1.39 loewis Convert characters from the locale's encoding on output. Reject characters outside the locale's encoding on input. Rev 1.40 doerwalter (string methods) Rev 1.41 (skipped, done by GvR in rpc)
* MERGE DS_RPC_BRANCH into MAINKurt B. Kaiser2002-09-141-40/+4
| | | | | | | | PyShell.py don't track Py Idle patch 543222 - disable script bindings in shell since it was done differently in MAIN Remove "binding comments" 05 Aug 1.13.2.2 to 1.13.2.3
* M PyShell.pyKurt B. Kaiser2002-09-051-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | M RemoteDebugger.py M ScriptBinding.py Restart the execution server with a clean environment and execute the active module from scratch upon activation of Run/F5. Add functionality to PyShell.py to restart the execution server in a new subprocess. The server makes a connection to the Idle client which sends a block of code to be executed. Modify ScriptBinding.py to restart the subprocess upon Run/F5, assuming that an execution is not currently in progress. Remove Import Module functionality, not required now that the code is executed in a clean environment. If the Debugger is active, also restart the subprocess side of the split debugger. Add functionality to RemoteDebugger.py to support this. At this time breakpoints will be lost in the subprocess if Run/F5 is activated. A subsequent checkin of PyShell.py will implement reloading of the breakpoints into the subprocess debugger. I'm keeping this separate as the design may change.
* GvR provided solution to the socket rebinding timeout problem.Kurt B. Kaiser2002-08-051-5/+3
| | | | | | M PyShell.py M rpc.py M run.py
* Reverse the RPC socket connection: Python execution server connects toKurt B. Kaiser2002-07-261-6/+12
| | | | | | | Idle client and localhost origin of connection is verified by client. M PyShell.py M rpc.py M run.py
* 1. Prevent Undo before IOmark in PyShell.PyShellKurt B. Kaiser2002-07-111-3/+10
| | | | | 2. Consolidate Undo code in EditorWindow.EditorWindow 3. Remove Formatting and Run menus from PyShell
* Shutdown subprocess debugger and associated Proxies/Adapters when closingKurt B. Kaiser2002-06-261-4/+5
| | | | | | | | | | | 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
* Clear associated breakpoints when closing an edit window.Kurt B. Kaiser2002-06-241-27/+26
| | | | | | | | | | M Debugger.py : Added clear_file_breaks() M EditorWindow.py : Clear breaks when closed, commments->docstrings, comment out some debugging print statements M PyShell.py : comments->docstrings ; clarify extending EditorWindow methods. M RemoteDebugger.py: Add clear_all_file_breaks() functionality, clarify some comments.
* 1. Debugger Breakpoints, finish implementationKurt B. Kaiser2002-06-201-1/+10
| | | | | 2. Debugger Clear Breakpoints, implement 3. Nice yellow breakpoints for Chui :)
* Polish RemoteDebugger code.Kurt B. Kaiser2002-06-161-0/+3
| | | | | | 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.
* Rework the code to have only the GvR RPC. Output from execution of userKurt B. Kaiser2002-06-121-209/+106
| | | | code is directed to the Shell.
* GvR's rpc patchChui Tey2002-05-261-17/+188
|
* _finally_ tracked down and eliminated a major problemSteven M. Gava2002-03-271-4/+7
| | | | | in PyShell.py that was causing extreme headaches in working on EditorWindow.py
* First work on making config changes dynamic,Steven M. Gava2002-03-021-12/+16
| | | | dynamic theme changes
* loading core keybindings via new config system plusSteven M. Gava2002-01-041-4/+2
| | | | further devel of highlight handling
* back in harness on new config systemSteven M. Gava2001-11-211-1/+1
|
* further config system workSteven M. Gava2001-11-041-8/+9
|
* merged port binding error message patchSteven M. Gava2001-10-071-14/+33
|
* Implement idle command interface as suggested by GvR [idle-dev] 16 JulyKurt B. Kaiser2001-07-171-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | | **************** PyShell: Added functionality: usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title] [arg] ... idle file(s) (without options) edit the file(s) -c cmd run the command in a shell -d enable the debugger -i open an interactive shell -i file(s) open a shell and also an editor window for each file -r script run a file as a script in a shell -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else -t title set title of shell window Remaining arguments are applied to the command (-c) or script (-r). ****************** idles: Removed the idles script, not needed ****************** idle: Removed the IdleConf references, not required anymore
* Call out IDLE Fork in startup message.Kurt B. Kaiser2001-07-161-1/+1
|
* Add a script "idles" which opens a Python Shell window.Kurt B. Kaiser2001-07-161-11/+11
| | | | | | | | | The default behaviour of idlefork idle is to open an editor window instead of a shell. Complex expressions may be run in a fresh environment by selecting "run". There are times, however, when a shell is desired. Though one can be started by "idle -t 'foo'", this script is more convenient. In addition, a shell and an editor window can be started in parallel by "idles -e foo.py".
* py-cvs-2001_07_13 (Rev 1.34) mergeKurt B. Kaiser2001-07-141-1/+1
| | | | | | | | | | | | | | | | "Amazing. A very subtle change in policy in descr-branch actually found a bug here. Here's the deal: Class PyShell derives from class OutputWindow. Method PyShell.close() wants to invoke its parent method, but because PyShell long ago was inherited from class PyShellEditorWindow, it invokes PyShelEditorWindow.close(self). Now, class PyShellEditorWindow itself derives from class OutputWindow, and inherits the close() method from there without overriding it. Under the old rules, PyShellEditorWindow.close would return an unbound method restricted to the class that defined the implementation of close(), which was OutputWindow.close. Under the new rules, the unbound method is restricted to the class whose method was requested, that is PyShellEditorWindow, and this was correctly trapped as an error." --GvR
* cvs-py-rel2_1 (Rev 1.29 - 1.33) mergeKurt B. Kaiser2001-07-141-11/+25
| | | | | | | | | | | Merged the following py-cvs revs without conflict: 1.29 Reduce copyright text output at startup 1.30 Delay setting sys.args until Tkinter is fully initialized 1.31 Whitespace normalization 1.32 Turn syntax warning into error when interactive 1.33 Fix warning initialization bug Note that module is extensively modified wrt py-cvs
* Initial revisionDavid Scherer2000-08-151-0/+860