Oleg Iarygin
7fbc7f6128
gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings ( #31711 )
...
Closes GH-91098.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-04-18 19:56:53 -07:00
Serhiy Storchaka
383a3bec74
bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)
2022-03-19 17:14:21 +02:00
Alex Waygood
50cf4991c4
bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)
...
Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues.
Add util.py to contain objects that are used in multiple idlelib modules
and have no dependencies on any of them.
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-02-12 19:04:48 -05:00
Manish Kumar ⛄
ba650af7d6
Optimize images by IMGbot (GH-21348)
...
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-02-04 15:49:43 +09:00
Caio Agiani
222865daab
bpo-46588: fix typo in test_calltip.py (GH-31119)
2022-02-03 23:39:59 -05:00
Terry Jan Reedy
d1df81a730
bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)
...
On Windows, one had to Tab or click on the entry box
to get a cursor and be able to enter anything.
2022-02-03 17:06:17 -05:00
Terry Jan Reedy
916d0d822c
bpo-45975: IDLE - Remove extraneous parens (GH-31107)
...
mistakenly included in 3 files in previous PR
and backported both to 3.10 and 3.9.
2022-02-03 14:44:35 -05:00
Nick Drozd
51a95be1d0
bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)
2022-02-02 20:59:24 -05:00
Wes
53c7808057
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-02-01 20:20:23 -05:00
Terry Jan Reedy
9f0881476e
bpo-46496: news11-10 for bpo45296 (GH-30937)
2022-01-26 22:19:32 -05:00
Terry Jan Reedy
fcde0bc10d
bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)
...
In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current
one) and 'Exit' is now 'Exit IDLE' (by closing all windows).
In Shell, 'quit()' and 'exit()' mean 'close Shell'.
If there are no other windows, this also exits IDLE.
2022-01-26 22:16:31 -05:00
Terry Jan Reedy
b1a3446f07
bpo-46496: Update IDLE News to 2021 Jan 24 (GH-30875)
2022-01-25 03:27:09 -05:00
Terry Jan Reedy
9d3c9788a6
bpo-41841: update idlelib News up to 3.10.0. (GH-30868)
2022-01-24 23:48:40 -05:00
Terry Jan Reedy
42ac06dcd2
bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000)
...
Since the keyword list is frozen, only compute it once per
session. The colorizer already handles context keywords.
2021-10-16 18:44:00 -04:00
Christian Clauss
745c9d9dfc
Fix typos in the Lib directory (GH-28775)
...
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-10-06 16:13:48 -07:00
Terry Jan Reedy
e649e0658f
bpo-45296: Fix exit/quit message on Windows (GH-28577)
...
IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
2021-09-28 14:05:56 +02:00
Mohamad Mansour
8f943ca257
[codemod] Fix non-matching bracket pairs (GH-28473)
...
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>
2021-09-22 01:09:00 +02:00
Terry Jan Reedy
1afc7b3219
bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)
...
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.
2021-09-15 03:13:23 -04:00
Terry Jan Reedy
369bf949cc
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
...
Otherwise, test would need special import.
2021-09-15 03:08:44 -04:00
giovanniwijaya
b74c819fab
IDLE: adjust Python version in doc url for 3.10+ (GH-28228)
...
Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-09-10 17:10:28 -04:00
Terry Jan Reedy
f05ad92028
Update idlelib/help.html to include idle.rst spelling fix (GH-28191)
...
The idle.rst fix was GH-27903 two weeks ago.
2021-09-07 00:04:54 -04:00
Terry Jan Reedy
22fe0eb13c
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
2021-08-31 14:59:35 -04:00
Serhiy Storchaka
54f100514b
bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)
2021-08-31 13:32:01 -04:00
Noah Kantrowitz
be42c06bb0
Update URLs in comments and metadata to use HTTPS (GH-27458)
2021-07-30 15:54:46 +02:00
Mariusz Felisiak
11749e2dc2
bpo-44740: Lowercase "internet" and "web" where appropriate. ( #27378 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-27 00:11:55 +02:00
Ammar Askar
4823d9a512
bpo-43950: Add option to opt-out of PEP-657 (GH-27023)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-07-07 20:07:12 +01:00
Ammar Askar
5644c7b3ff
bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)
...
The traceback.c and traceback.py mechanisms now utilize the newly added code.co_positions and PyCode_Addr2Location
to print carets on the specific expressions involved in a traceback.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
2021-07-05 00:14:33 +01:00
Binbin
17b16e13bb
Fix typos in multiple files (GH-26689)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-12 22:47:44 -04:00
Kaustubh J
3ec3ee7d2e
bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)
...
In particular, when running with tk8.6.8, as in PSF 3.9.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-11 18:55:32 -04:00
Mark Roseman
42d5a4fc3b
bpo-33962: Use ttk spinbox for IDLE indent space config (GH-22954)
...
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-06-10 15:13:55 -04:00
Terry Jan Reedy
275d5f7957
bpo-40468: Split IDLE settings General tab (GH-26621)
...
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.
2021-06-09 16:17:58 -04:00
Terry Jan Reedy
5571cabf1b
bpo-40468: Factor out class ExtPage in idlelib.configdialog (GH-26618)
2021-06-08 21:43:49 -04:00
Terry Jan Reedy
ab36b9f834
bpo-40468: Move IDLE helplist settings to extensions page of dialog. (GH-26593)
...
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.
2021-06-08 15:35:10 -04:00
Terry Jan Reedy
e915db3e9e
Use absolute imports in IDLE tests (GH-26581)
...
Relative imports do not work when running test_x as main.
2021-06-07 17:56:34 -04:00
Tal Einat
adef445dc3
bpo-44282: Fix occasional test_incremental_editing failures on buildbots (GH-26491)
...
Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
2021-06-03 01:53:41 +02:00
Tal Einat
4e2e5c1c4f
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winconfig_event() (GH-26404)
...
Since the <Configure> event may occur after the
completion window is gone, catch potential
TclError exceptions when accessing acw.
2021-05-28 09:07:21 +03:00
Tal Einat
abc4bd5db9
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
2021-05-27 17:29:55 +03:00
Tal Einat
60d343a816
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
2021-05-19 12:18:10 +03:00
E-Paine
092f9ddb5e
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
...
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>
2021-05-07 19:52:01 -04:00
Tal Einat
b43cc31a27
bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)
...
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>
2021-05-02 22:27:38 -04:00
Pablo Galindo
6689e45dfe
bpo-43981: Fix reference leaks in test_squeezer (GH-25758)
2021-04-30 19:34:29 +01:00
Terry Jan Reedy
a62e424de0
bpo-43981: Fix error in idle-test leak test (GH-25739)
...
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.
2021-04-29 23:52:47 -04:00
Terry Jan Reedy
8ec2f0dc0c
bpo-37892: Use space indents in IDLE Shell (GH-25678)
...
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.
2021-04-29 06:48:18 -04:00
Tal Einat
15d3861856
bpo-37903: IDLE: Shell sidebar with prompts (GH-22682)
...
The first followup will change shell indents to spaces.
More are expected.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-04-28 18:27:55 -04:00
Serhiy Storchaka
3bb3fb3be0
bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window ( #25187 )
2021-04-25 13:07:58 +03:00
E-Paine
702a0885ba
Reformat idlelib colorizer (GH-25479)
...
Also replace if-then and and-or with conditional expressions.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-04-22 21:21:53 -04:00
Terry Jan Reedy
1b4a9c7956
bpo-42225: IDLE - document two unix-related problems. ( #25078 )
...
1. Bad IP masquerade rules can prevent startup.
2. X cannot handle some complex colored chars.
2021-03-31 01:19:38 -04:00
Terry Jan Reedy
b9fe16a027
bpo-41841: Revise header (GH-24633)
2021-02-23 21:24:33 -05:00
Terry Jan Reedy
2827e8a177
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
...
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.
2021-02-23 19:39:51 -05:00
Terry Jan Reedy
4cf7bb8e22
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
...
In the Running User Code section, gather together paragraphs about two
processes and the sys.stdstream replacements, preparing to add another.
2021-02-21 02:44:11 -05:00