Commit Graph

2456 Commits

Author SHA1 Message Date
Bartosz Sławecki b6b72e7663 gh-144285: Improve AttributeError attribute suggestions (#144299) 2026-02-12 14:12:49 +00:00
Pablo Galindo Salgado 46d5106cfa gh-142349: Implement PEP 810 - Explicit lazy imports (#142351)
Co-authored-by: T. Wouters <twouters@meta.com >
Co-authored-by: Brittany Reynoso <breynoso@meta.com>
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
2026-02-12 00:15:33 +00:00
Terry Jan Reedy 29f1e778fa gh-135142: Initial 3.15 IDLE News3.txt entries (#144200) 2026-01-23 21:34:41 -05:00
Terry Jan Reedy fa3abf5a51 gh-143774 - Improve IDLE Format Paragraph doc (#143775)
Add a reminder to not rewrap code line to the Menu => Format => Reformat Paragraph entry.
In Editing and Nagivagion, add a new 'Format block' subsection that defines 'paragraph'
to better match what is dependably handled as more or less expected.
In particular, specify equal indents and that the resulting indent equals original indent.
Also mention that selections are expanded to complete lines and how to modify max length.

(Also fix a couple case errors in cross references.)
2026-01-20 04:07:29 -05:00
Terry Jan Reedy ec254e2b40 gh-139707: Copy-strip change to idle.rst into idlelib (#143718)
On Windows, running `python -c "from idlelib.help import copy_strip;
copy_strip()"` after idle.html is built results in
`f:\dev\3x\Doc\build\html\library\idle.html
copied to f:\dev\3x\Lib\idlelib\help.html`
This PR commits the html change to idlelib/help.html.
2026-01-12 12:55:06 -05:00
Adam Turner c5825ff4c9 GH-139436: Remove PDF and CHM from IDLE HelpSource (#140418) 2025-12-09 12:32:53 +00:00
Victor Stinner 0b8c348f27 Fix pyflakes warnings: variable is assigned to but never used (#142294)
Example of fixed warning:

    Lib/netrc.py:98:13: local variable 'toplevel'
    is assigned to but never used
2025-12-08 14:00:31 +01:00
Stan Ulbrych 4e6e208be9 Minor fixes to idle.rst and regenerate help.html (#140037) 2025-11-06 03:21:02 -05:00
Terry Jan Reedy 6a7c969d00 gh-129876: Move misplaced IDLE news item (#141118) 2025-11-06 03:08:24 -05:00
Stan Ulbrych 790cdae5a0 Lib/idlelib/idle_test/__init__.py: remove commented out duplicate code (#140259) 2025-10-19 00:16:13 -04:00
Stan Ulbrych d4e5802588 gh-96491: Deduplicate version in IDLE shell title (#139841)
Saving to a file added both the filename and repeated the version.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-10-10 21:37:48 -04:00
Anuradha Agrawal 6fd1418341 gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests (#139756)
Add 't' prefix to colorizer.py stringprefix regex to support Python 3.14 template strings.
Add t prefixes to test_colorizer.py source test text and adjust line numbers on test methods.
---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-09 05:24:53 -04:00
Stan Ulbrych 2e8f64c931 gh-71648: Optimize PNG files (GH-138842)
* Only keep > 1 kb savings
2025-09-12 20:13:05 +00:00
Stan Ulbrych 3b4cd88563 gh-95844: Move help_url code to a help module function (#129971)
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-09-03 21:27:12 +00:00
Yongzi Li be24ff0b57 gh-138081: Fix/remove incorrect links in idlelib/HISTORY.txt (#138091) 2025-08-24 21:48:29 -04:00
Weilin Du f04d2b8819 Doc: Fix duplicate words in idlelib (#136089) 2025-06-29 02:47:38 -04:00
Stan Ulbrych 642e5dfc74 IDLE: Update NEWS2x.txt with 2.7.0 release date (#129908) 2025-06-26 16:20:07 -04:00
Terry Jan Reedy 0df15d0d4d gh-129876: Update IDLE News3.txt to May 2025 (#135139) 2025-06-04 11:26:19 -04:00
Serhiy Storchaka 84a08f8629 gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337) 2025-05-03 17:58:49 +03:00
Zhikang Yan 7e7e49be78 gh-112936: Fix IDLE: no Shell menu item in single-process mode (GH-126598) 2025-05-02 20:03:32 +03:00
Stan Ulbrych ed831b95a2 gh-69001: Convert links to more usable buttons (#129591)
In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works.  All buttons might get converted to colored and underlined links in the future.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-20 08:30:57 +00:00
Stan Ulbrych d9bf3c16e5 gh-68400: Remove outdated 2.7 comment (#129919) 2025-02-09 23:53:32 -05:00
Stan Ulbrych 6fbf15f98e gh-129873: IDLE: Improve help.py's method of parsing HTML (#129859)
In `help.copy_strip`, only copy the text `<section>`.  In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html.  Add a reminder at the top of idle.rst to run copy_strip after changes.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-09 08:17:35 +00:00
Terry Jan Reedy 0d9c4e260d gh-129876: Initial 3.14 News3.txt entries (#129881) 2025-02-09 07:24:34 +00:00
Terry Jan Reedy f72977b2f4 gh-112953: Update news to finish 3.13 as main (#129877)
Entry for patch to 3.13.rc3
2025-02-09 06:13:43 +00:00
Stan Ulbrych 33a7094aa6 gh-129699: Add description to IDLE doc title (#129727)
Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-08 14:26:07 -05:00
Stan Ulbrych d83a8a26f5 gh-86206: Change IDLE splash line (#129698)
Change splash line

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-06 07:55:25 +00:00
Stan Ulbrych 76e0182948 gh-69001: Replace maintainer email in IDLE credits (#129588)
Instead, anyone requesting credit should submit a PR with contribution summary.
(Also fix typo in existing name.)
2025-02-06 01:44:50 -05:00
Terry Jan Reedy dbb25ce037 gh-71339: Use new assertion methods in test_idle (#129213)
Revise 10 tests in 7 files, with 1 test split into 2.
2025-01-23 13:25:14 -05:00
Victor Stinner 559b0e7013 gh-127060: Disable traceback colors in IDLE (#128028)
Set TERM environment variable to "dumb" to disable traceback colors
in IDLE, since IDLE doesn't understand ANSI escape sequences.
2024-12-18 00:35:05 -05:00
Terry Jan Reedy 3fea1d000e Fix idlelib typos (#125484)
Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.
2024-10-14 17:11:58 -04:00
Zhikang Yan c5df1cb7bd gh-122392: IDLE - Fix overlapping lines in browsers (#122392) (#124975)
Increase currently inadequate vertical spacing for the IDLE browsers (path,
module, and stack) on high-resolution monitors.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-10-07 14:52:09 -04:00
Terry Jan Reedy d5f95ec07b gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (#124310)
https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS.  While theoretically correct, the result was Shell freezing when receiving continuous short strings to print.  Test: `while 1: 1`.

The guess is that there is no idle time in which to do the screen update.  Reverting the change in one of the files,
outwin, fixes the issue.  Colorizer runs ever 1/20 second and seems to work fine.

When running test-outwin on macOS, alias 'update'
to 'update_idletasks on the text used for testing.
2024-09-22 15:51:09 -04:00
abstractee 1f4a49ea53 Fix typos in warnings, docstrings, comments and text files (#123597) 2024-09-03 02:20:40 +02:00
Terry Jan Reedy fe85a8291d Further revise idlelib/Icons/README.text (#123364)
In particular, add trademark derivative approval information.
2024-08-26 17:44:35 -04:00
Terry Jan Reedy 6401cdf908 Rewrite idlelib/Icons/README.txt (#123329) 2024-08-25 22:11:59 -04:00
Sergey B Kirpichev 354d55eb1f gh-121804: Always show error location for SyntaxError's in new repl (#121886) 2024-08-19 15:19:23 +01:00
Serhiy Storchaka 4b66b6b7d6 gh-120104: IDLE: Fix padding in config and search dialogs (#120107) 2024-08-06 12:45:53 -04:00
John Riggles 5a7f7c4864 gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)
On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (#120083 (comment)).

The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-08-01 23:02:43 -04:00
Jonathon Vandezande dbdbef3668 Fixes typo in idlelib/idle_test/example_stub.pyi (#122520)
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-08-01 21:31:37 -04:00
Terry Jan Reedy 29c04dfa27 GH-122482: Make About IDLE direct discussion to DPO (#122483)
Currently, idle-dev@python.org and idle-dev mailing list
serve to collect spam (90+%).  Change About IDLE to direct
discussions to discuss.python.org.  Users are already
doing so.
2024-07-30 18:29:52 -04:00
Terry Jan Reedy 58753f33e4 gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (#121876)
Problem occurred when attribute xyz could not be pickled.
Since this is not trivial to selectively fix, block all
attributes (other than 'width').  IDLE does not access them
and they are private implementation details.
2024-07-17 09:33:33 -04:00
Victor Stinner 44eafd6688 gh-121008: Fix idlelib.run tests (#121046)
When testing IDLE, don't create a Tk to avoid side effects such as
installing a PyOS_InputHook hook.
2024-06-26 15:41:16 +02:00
Victor Stinner 4c6d4f5cb3 gh-120417: Remove unused imports in the stdlib (#120420) 2024-06-12 20:56:42 +02:00
Xie Yanbo ce3879bd45 Fix typos in documentation (#120338) 2024-06-12 12:24:43 +00:00
Wulian233 538ed5e481 gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (#119175)
------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-05-20 23:32:00 -04:00
Terry Jan Reedy 357f5a1f73 IDLE: fix url in config.py comment (#119198) 2024-05-20 06:04:50 +00:00
Serhiy Storchaka 65f5e586a1 gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)
Callbacks registered in the tkinter module now take arguments as
various Python objects (int, float, bytes, tuple), not just str.
To restore the previous behavior set tkinter module global wantobject to 1
before creating the Tk object or call the wantobject() method of the Tk object
with argument 1.
Calling it with argument 2 restores the current default behavior.
2024-05-07 12:07:32 +00:00
Terry Jan Reedy 7758be4318 gh-78955: Use user-selected color theme for Help => IDLE Doc (#9502) 2024-05-06 03:55:56 -04:00
Pablo Galindo Salgado 345e1e04ec gh-112730: Make the test suite resilient to color-activation environment variables (#117672) 2024-04-24 21:25:22 +01:00