summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. ↵Miss Islington (bot)2021-10-162-3/+12
| | | | | | | | | | | | (GH-29000) (GH-29001) Since the keyword list is frozen, only compute it once per session. The colorizer already handles context keywords. (cherry picked from commit 42ac06dcd234bdda989dcfe854ac5173337024c9) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Automerge-Triggered-By: GH:terryjreedy
* [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)Christian Clauss2021-10-075-7/+7
| | | | | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>. (cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be) Co-authored-by: Christian Clauss <cclauss@me.com>
* bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28600)Miss Islington (bot)2021-09-282-0/+14
| | | | | | IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z. (cherry picked from commit e649e0658ff2af87b07d994c05ae048e16e31aae) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)Łukasz Langa2021-09-212-2/+2
| | | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29) Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
* bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)Miss Islington (bot)2021-09-151-1/+1
| | | | | | | | | The line that should not have been needed on macOS tk 8.6.8 but was, should not be a problem on Ubuntu, but is. It is not needed on macOS tk 8.6.11, installed with 3.10. Disable it but leave it for now in case some system needs it. (cherry picked from commit 1afc7b3219b24c951bb4e6b7e1ead904228de074) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45020: Don't test IDLE with frozen module. (GH-28344)Miss Islington (bot)2021-09-151-2/+2
| | | | | | Otherwise, test would need special import. (cherry picked from commit 369bf949ccbb689cd4638b29b4c0c12db79b927c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE: adjust Python version in doc url for 3.10+ (GH-28228)Miss Islington (bot)2021-09-101-5/+7
| | | | | | | | Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit b74c819fab86bedc9b962ea42cfb9b5893fd2dda) Co-authored-by: giovanniwijaya <16949408+giovanniwijaya@users.noreply.github.com>
* Update idlelib/help.html to include idle.rst spelling fix (GH-28191)Miss Islington (bot)2021-09-071-13/+7
| | | | | | The idle.rst fix was GH-27903 two weeks ago. (cherry picked from commit f05ad9202896f21ca9717f5c9f4b933b7f5b6550) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)Miss Islington (bot)2021-08-311-0/+9
| | | | | (cherry picked from commit 22fe0eb13c3441b71b60aaea0e7fe289a29783da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)Miss Islington (bot)2021-08-311-1/+1
| | | | | (cherry picked from commit 54f100514b02f6628450043e21ccfe39350d7ac7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)Miss Islington (bot)2021-07-301-1/+1
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-261-1/+1
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)Miss Islington (bot)2021-06-111-0/+1
| | | | | | | | In particular, when running with tk8.6.8, as in PSF 3.9. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f) Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
* bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)Miss Islington (bot)2021-06-102-118/+71
| | | | | | | | | If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 42d5a4fc3b35e45cdd237d56a04e98894d0a31f5) Co-authored-by: Mark Roseman <mark@markroseman.com>
* bpo-40468: Split IDLE settings General tab (GH-26621)Miss Islington (bot)2021-06-092-139/+180
| | | | | | | | | | Replace it with Windows tab for Shell and Editor options and Shell/Ed for options exclusive to one of them. Create room for more options and make dialog shorter, to better fit small windows. (cherry picked from commit 275d5f7957dbb56a6d5e1248addff210ee2e7270) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)Miss Islington (bot)2021-06-092-201/+216
| | | | | (cherry picked from commit 5571cabf1b3385087aba2c7c10289bba77494e08) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)Miss Islington (bot)2021-06-082-139/+188
| | | | | | These are the settings that extend the help menu. Moving them shortens the dialog and will help with it being too tall for small screens. (cherry picked from commit ab36b9f83424a020fbd672f218612e6f19257a32) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Use absolute imports in IDLE tests (GH-26581)Miss Islington (bot)2021-06-071-1/+1
| | | | | | Relative imports do not work when running test_x as main. (cherry picked from commit e915db3e9e512249a6f494c0b331db2d021e1f56) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44282: Fix occasional test_incremental_editing failures on buildbots ↵Miss Islington (bot)2021-06-033-43/+49
| | | | | | | | (GH-26491) (GH-26499) Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com> (cherry picked from commit adef445dc34685648bd0ea1c125df2ef143912ed) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-41611: IDLE: Catch TclError exceptions in ↵Miss Islington (bot)2021-05-281-27/+36
| | | | | | | | | AutoCompleteWindow.winconfig_event() (GH-26404) Since the <Configure> event may occur after the completion window is gone, catch potential TclError exceptions when accessing acw. (cherry picked from commit 4e2e5c1c4f792b4011e4c78d011baea2aee39f1b)
* bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)Miss Islington (bot)2021-05-271-1/+7
| | | | | (cherry picked from commit abc4bd5db91c86b6b74289241378a13bd3a0a5e2) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Miss Islington (bot)2021-05-193-73/+328
| | | | | (cherry picked from commit 60d343a81679ea90ae0e08fadcd132c16906a51a) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)Miss Islington (bot)2021-05-083-5/+61
| | | | | | | | | A C function accessible by the default exception handler, but not by python code, finds the existing name closest to the name causing a name or attribute error. For such errors, call the default handler after capturing stderr and retrieve its message line. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 092f9ddb5e85665552c8207972cd393d492f764e) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)Tal Einat2021-05-038-212/+336
| | | | | | 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-43981: Fix reference leaks in test_squeezer (GH-25758)Pablo Galindo2021-04-301-0/+1
|
* bpo-43981: Fix error in idle-test leak test (GH-25739)Terry Jan Reedy2021-04-301-3/+2
| | | | | Remove call to macosx.setupApp, which calls macosc.overrideRootMenu, which modifies the menus, which results in two failures in the second round of the leak test.
* bpo-37892: Use space indents in IDLE Shell (GH-25678)Terry Jan Reedy2021-04-292-3/+10
| | | | | | 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-2813-131/+886
| | | | | | The first followup will change shell indents to spaces. More are expected. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by ↵Serhiy Storchaka2021-04-253-7/+7
| | | | window managers on macOS and X Window (#25187)
* Reformat idlelib colorizer (GH-25479)E-Paine2021-04-231-16/+20
| | | | | Also replace if-then and and-or with conditional expressions. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42225: IDLE - document two unix-related problems. (#25078)Terry Jan Reedy2021-03-311-7/+20
| | | | 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars.
* bpo-41841: Revise header (GH-24633)Terry Jan Reedy2021-02-241-2/+3
|
* bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)Terry Jan Reedy2021-02-242-1/+13
| | | | | | Printing to IDLE's Shell is often slower than printing to a system terminal, but it can be made faster by pre-formatting a single string before printing.
* bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)Terry Jan Reedy2021-02-211-22/+22
| | | | | In the Running User Code section, gather together paragraphs about two processes and the sys.stdstream replacements, preparing to add another.
* bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)Aviral Srivastava2021-02-011-9/+9
| | | | | | | | For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)Terry Jan Reedy2021-01-291-1/+1
|
* bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)Zackery Spytz2021-01-285-5/+35
| | | | | 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-43008: Make IDLE respect sys.excepthook (GH-24302)Ken2021-01-263-12/+61
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43013: Fix old tkinter module names in idlelib (GH-24326)Terry Jan Reedy2021-01-2513-67/+66
| | | | | | Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import.
* bpo-43013: Update idlelib code to 3.x (GH-24315)Terry Jan Reedy2021-01-2410-47/+49
| | | | Remove 9 remaining '(object)' occurrences in class headers in idlelib and 25 '()' occurrences in idlelib.idle_test class headers.
* bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)Terry Jan Reedy2021-01-103-3/+19
| | | | | If __repr__ uses instance attributes, as normal, and one steps through the __init__ method, debugger may try to get repr before the instance attributes exist. reprlib.repr handles the error.
* bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)Cheryl Sabella2021-01-055-31/+225
| | | | | Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* 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-33610: Edit idlelib.codecontext (GH-23773)Terry Jan Reedy2020-12-151-5/+8
| | | Add sentence to module docstring and import tkinter items.
* bpo-42508: Keep IDLE running on macOS (GH-23577)Terry Jan Reedy2020-12-072-19/+11
| | | | | Remove obsolete workaround that prevented running files with shortcuts when using new universal2 installers built on macOS 11. Ignore buggy 2nd run_module_event call.
* 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-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)Serhiy Storchaka2020-11-223-9/+10
|
* 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-42416: Use inspect.getdoc for IDLE calltips (GH-23416)Terry Jan Reedy2020-11-203-6/+12
| | | Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
* bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910)Tal Einat2020-11-023-7/+141
| | | | | | They were occurring with both repeated 'force-calltip' invocations and by typing parentheses in expressions, strings, and comments in the argument code. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>