summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)Miss Islington (bot)2023-06-081-2/+2
| | | | | | | | gh-102832: IDLE - update stackviewer open (GH-105528) Use 'last_exc' instead of 'last_value' in 3.12/3. (cherry picked from commit bb3454c1a75c90da3c34c060eb23403fed3fd958) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for ↵Miss Islington (bot)2023-06-081-6/+6
| | | | | | | | stackviewer (GH-103339) (#105526) gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) (cherry picked from commit 3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-103668: Run pyugrade on idlelib (#103671)Nikita Sobolev2023-04-231-10/+10
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-102778: revert changes to idlelib (#102825)Irit Katriel2023-03-191-5/+2
|
* gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵Irit Katriel2023-03-181-2/+5
| | | | sys.last_value,sys.last_traceback (#102779)
* gh-95191: IDLE: Include prompts when saving Shell #95554Terry Jan Reedy2022-08-021-16/+19
|
* gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (#95512)Terry Jan Reedy2022-08-011-12/+10
| | | | | | | If one selects whole lines, as the sidebar makes easy, do not add an extra line. Only move the end of a selection to the beginning of the next line when not already at the beginning of a line. (Also improve the surrounding code.)
* bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)Serhiy Storchaka2022-03-191-14/+0
|
* bpo-45296: Fix exit/quit message on Windows (GH-28577)Terry Jan Reedy2021-09-281-0/+7
| | | | IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
* bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)Tal Einat2021-05-031-0/+45
| | | | | | Left click and drag to select lines. With selection, right click for context menu with copy and copy-with-prompts. Also add copy-with-prompts to the text-box context menu. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37892: Use space indents in IDLE Shell (GH-25678)Terry Jan Reedy2021-04-291-3/+3
| | | | | | Adding a newline to the prompt moves it out of the way of user code input, which now starts at the left margin, along with continuation lines.
* bpo-37903: IDLE: Shell sidebar with prompts (GH-22682)Tal Einat2021-04-281-34/+115
| | | | | | The first followup will change shell indents to spaces. More are expected. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Zackery Spytz2021-01-281-0/+4
| | | | | Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43013: Fix old tkinter module names in idlelib (GH-24326)Terry Jan Reedy2021-01-251-10/+10
| | | | | | Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import.
* bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)Serhiy Storchaka2020-12-191-1/+3
| | | | | | | | | | | * Tkinter functions and constructors which need a default root window raise now RuntimeError with descriptive message instead of obscure AttributeError or NameError if it is not created yet or cannot be created automatically. * Add tests for all functions which use default root window. * Fix import in the pynche script.
* bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)Terry Jan Reedy2020-11-301-1/+1
| | | restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
* bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)Christian Heimes2020-11-201-2/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-41775: Make 'IDLE Shell' the shell title (#22399)Terry Jan Reedy2020-09-241-1/+1
| | | 'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'.
* bpo-38439: Add 256px IDLE icon (GH-17473)Miro Hrončok2020-04-221-2/+7
| | | | Icon author: Andrew Clover, bpo-1490384
* bpo-38002: Use False/True for IDLE pyshell bools (GH-19203)Terry Jan Reedy2020-03-281-13/+12
| | | | | | | Change 0/1 assignments to 'executing', 'canceled', 'reading', 'endoffile'. These are not used outside of pyshell. Other bools already use False/True. Add comment about int needed for Windows call. Remove self.more, unused in idlelib and code.InteractiveInterpreter. The latter uses 'more' as a local.
* bpo-38792: Remove IDLE shell calltip before new prompt. (#17150)Zackery Spytz2020-01-311-0/+1
| | | | | | | Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-36698: IDLE no longer fails when write non-encodable characters to ↵Serhiy Storchaka2019-10-081-5/+9
| | | | | | | stderr. (GH-16583) It now escapes them with a backslash, as the regular Python interpreter. Added the "errors" field to the standard streams.
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Serhiy Storchaka2019-10-041-18/+0
| | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError).
* bpo-38183: Test_idle ignores user config directory GH-16198)Terry Jan Reedy2019-09-161-0/+1
| | | | | It no longer tries to create or access .idlerc or any files within. Users must run IDLE to discover problems with saving settings.
* bpo-38041: Refine IDLE Shell restart lines. (GH-15709)Terry Jan Reedy2019-09-061-3/+15
| | | Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
* bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)Terry Jan Reedy2019-08-261-14/+3
| | | Cease turning SyntaxWarnings into SyntaxErrors.
* bpo-17535: IDLE editor line numbers (GH-14030)Tal Einat2019-07-231-0/+2
|
* bpo-37321: Edit IDLE subprocess connection error messages. (#14170)Terry Jan Reedy2019-06-171-4/+4
| | | | Mainly, add a doc reference to message in pyshell.
* bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)Cheryl Sabella2019-06-021-1/+1
| | | | Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
* bpo-36429: Fix starting IDLE with pyshell (#12548)Terry Jan Reedy2019-03-261-5/+3
| | | | | Add idlelib.pyshell alias at top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
* bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)Ned Deily2019-03-011-1/+1
| | | Patch by Kevin Walzer.
* bpo-35196: Optimize Squeezer's write() interception (GH-10454)Tal Einat2019-01-131-0/+3
| | | | The new functionality of Squeezer.reload() is also tested, along with some general re-working of the tests in test_squeezer.py.
* bpo-34055: Revert deletion of line in IDLE's PyShell (#11346)Terry Jan Reedy2018-12-291-1/+1
| | | | The attribute is still used in other modules.
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (#10464)Tal Einat2018-12-071-4/+21
| | | | | | | | | | | | * bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" * add NEWS entry * address code review comments * address second code review comments * Add entry for idlelib/NEWS.txt.
* bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)Terry Jan Reedy2018-10-141-3/+3
| | | | A Windows build with _tkinter, tkinter, and idlelib but without ctypes is unlikely but apparently possible.
* bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)Tal Einat2018-09-251-0/+4
|
* bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)Terry Jan Reedy2018-06-211-1/+1
| | | | | Every other menudef key is the lowercase version of the corresponding main menu entry (in this case, 'Window').
* bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)Stéphane Wirtel2018-06-161-1/+1
| | | Make it the same as when one runs 'python'.
* bpo-33656: Add enum name for argument of Windows call. (GH-7642)Terry Jan Reedy2018-06-111-1/+4
| | | Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Terry Jan Reedy2018-06-111-0/+8
| | | | | | | | | | | | On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary unchanged, and a monitor resolution greater than 96 DPI, this should make text and lines sharper. It should otherwise have no effect. Using a magnifier, I determined that the improvement comes from horizontal and lines being better lined up with the monitor pixels. I checked that this call causes no problem on any Windows buildbot, including the Win7 buildbots. Unlike most IDLE patches, this one can be easily reverted by users by removing a few lines, at the top of idlelib/pyshell.py.
* bpo-32984: IDLE - set __file__ for startup files (GH-5981)Terry Jan Reedy2018-03-051-0/+3
| | | | | | | | | Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option.
* IDLE -- Restrict shell prompt manipulaton to the shell. (#4143)Terry Jan Reedy2017-10-281-13/+11
| | | | | | Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed.
* bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)Serhiy Storchaka2017-09-211-0/+4
|
* bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629)terryjreedy2017-07-081-2/+2
|
* bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more tests. ↵csabella2017-06-291-1/+1
| | | | | | | (#2283) Split TextViewer class into ViewWindow, ViewFrame, and TextFrame classes so that instances of the latter two can be placed with other widgets within a multiframe window. Patch by Cheryl Sabella.
* bpo-30166: Import command-line parsing modules only when needed. (#1293)Serhiy Storchaka2017-05-041-4/+6
|
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* import sys before we use it on line 9 (#828)Jelle Zijlstra2017-03-271-1/+2
|
* Issue #29162: Don't depend on 'from tkinter import *' importing sys.Terry Jan Reedy2017-01-051-3/+3
| | | | Fix error in format string.
* Issue #27891: Consistently group and sort imports within idlelib modules.Terry Jan Reedy2016-08-311-12/+12
|