summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* IDLE: Simplify DynOptionsMenu __init__code (GH-101371)Miss Islington (bot)2023-02-281-14/+11
| | | | | | | | | Refactor DynOptionMenu's initializer to not copy kwargs dict and use subscripting; improve its htest. (cherry picked from commit c41af812c948ec3cb07b2ef7a46a238f5cab3dc2) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE - fix module browser test (GH-100647)Miss Islington (bot)2023-01-011-2/+1
| | | | | (cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-97527: IDLE - fix buggy macosx patch (GH-98313)Miss Islington (bot)2022-10-162-16/+31
| | | | | | | | | GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI. But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and Microsoft Python 3.10.2288.0 when test/* is not installed. After this patch, test.* is only imported when testing on Mac. (cherry picked from commit 35fa5d5e7f2b0971b39b2659dc70cb77e34a7dd6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35675: IDLE - separate config_key window and frame (GH-11427)Miss Islington (bot)2022-09-304-82/+174
| | | | | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 1cc308d03c1b44a0885a3c5f07d0786b49ea711d) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* gh-97527: IDLE: protect macosx Tk() call when no GUI (GH-97530)Miss Islington (bot)2022-09-241-13/+17
| | | | | | | | Only call tkinter.tk and its follow-up code in _init_tk_type when requires('gui') does not raise. This function can be called as an unintended side-effect of calling other idlelib code as part of tests on macOS without a GUI enabled. (cherry picked from commit 9704f8da333a51da32318f16106d45abb20fab76) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-87179: Fix more IDLE class headers (GH-96899)Miss Islington (bot)2022-09-172-2/+2
| | | | | | Remove unneeded '(object)' and '()'. (cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-75500: Update idlelib/help.html (GH-96523)Miss Islington (bot)2022-09-031-7/+8
| | | | | (cherry picked from commit 837ce6460d6554e9d7a847951ca5108ac6926ee5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96501)Gregory P. Smith2022-09-021-1/+3
| | | | | | | | | | | | | | | | | Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds. This PR comes fresh from a pile of work done in our private PSRT security response team repo. This backports https://github.com/python/cpython/pull/96499 aka 511ca9452033ef95bc7d7fc404b8161068226002 Signed-off-by: Christian Heimes [Red Hat] <christian@python.org> Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org> Reviews via the private PSRT repo via many others (see the NEWS entry in the PR). <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).
* gh-78143: IDLE - fix settings dialog page label. (GH-96009)Miss Islington (bot)2022-08-151-1/+1
| | | | | | | '/Tab' should have been removed from the font page label when the tab-spaces setting was moved to the Windows page. (cherry picked from commit f6b811059ac945a283bb59bf37efac162c3bbab6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95841: IDLE - Revise Windows local doc url (GH-95845)Miss Islington (bot)2022-08-111-4/+14
| | | | | | | | | GH-91242 replaced the Windows chm help file with a copy of the html docs. This PR replaces the IDLE code that fetches the Windows local help url passed to os.startfile. Co-authored-by: Steve Dower (cherry picked from commit bdb2cf8e913c041f26e8976abe58414819b3e8ff) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-84910: Change 'IDLE Help' to 'IDLE Doc' (GH-95873)Miss Islington (bot)2022-08-111-1/+1
| | | | | | | 'IDLE Help' was a plain text file. It was superceded years ago by a copy of the much more complete html doc. . (cherry picked from commit 05a0f37029f8ef917ed7ddbf7871856fc73aaca1) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-75500: Add idlelib section to IDLE doc (GH-95832)Miss Islington (bot)2022-08-091-1/+14
| | | | | | This enables accessing IDLE as 'idlelib' in the Doc Module listing. (cherry picked from commit 70fc9641b56144854777aef29c145cd10789e3df) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.11] gh-88878: IDLE - replace type('') with str (GH-95792)Miss Islington (bot)2022-08-091-1/+1
| | | | | | | Change in idlelib.browser, line 54 cherrypicked from 3680ebed7f3e529d01996dd0318601f9f0d02b4b (cherry picked from commit 1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95491: Mention IDLE Issue project in Readme (GH-95750)Miss Islington (bot)2022-08-081-0/+8
| | | | | (cherry picked from commit 63140b445e4a303df430b3d60c1cd4ef34f27c03) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95251: IDLE - Add What's New section to README (GH-95688)Miss Islington (bot)2022-08-051-2/+23
| | | | | | | | Document what I (TJR) currently do for 3.10/3.11. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit a302a274892f2dad4e1fa492c4886d55e4df0a80) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-89362: Doc IDLE menu and search (GH-95697)Miss Islington (bot)2022-08-051-15/+27
| | | | | | | | Update menu item position and capitalization. Add paragraph about search. For help.html, include save-as addition. (cherry picked from commit 834064c19a110dad425dc290c91c0545eaa24471) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-65802: IDLE - explain SaveAs and extensions (GH-95690)Miss Islington (bot)2022-08-051-0/+2
| | | | | | | | File name extensions may or may not be shown for the current name and are added in an OS-dependent manner if not given for the new name. (cherry picked from commit 9890f86ae2001d19e7a18fee5b13aa0dd6069aef) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95638: Update idlelib README file and menu lists (GH-95639)Miss Islington (bot)2022-08-041-50/+59
| | | | | (cherry picked from commit 621b33ce258f3eaf154322c1edf0ead1e4892e36) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95597: Fix typo in Lib directory files (GH-95599)Miss Islington (bot)2022-08-031-1/+1
| | | | | (cherry picked from commit b53aed76d26419fc7449c358c6035c9afe055e16) Co-authored-by: Jo, Yunjin <black33jo@gmail.com>
* gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95558)Miss Islington (bot)2022-08-024-24/+42
| | | | | (cherry picked from commit b85411fc5e9e223a6bd44f89f674ee3b2e29b99e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-83270: Update IDLE's credits (GH-95528) (#95560)Miss Islington (bot)2022-08-021-1/+11
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 698fa8bf6075c1594966ef6da8501a6f81db50f2) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (GH-95512)Miss Islington (bot)2022-08-013-15/+17
| | | | | | | | | 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.) (cherry picked from commit fc31a13dc1799b8d972c1f4ea49f27090aed7f48) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE: Fix docs URL in the About window (GH-28417)Miss Islington (bot)2022-07-311-2/+3
| | | | | (cherry picked from commit 0f17a754d925345d67beff18897d86780436c506) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-95471: IDLE - Tweak Edit menu (GH-95481)Miss Islington (bot)2022-07-312-1/+6
| | | | | | Move `Select All` above `Cut` as it is used with `Cut` and `Copy` but not `Paste`. Add a separator between `Replace` and `Go to Line` to separate items that belong to the 'Edit-find' (above) and 'Edit-show' (below) IDLE github project topics. (cherry picked from commit 53357b3ee53d767c2da5cd77f9c47117903e9a44) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] gh-90654: IDLE - Insert blank line in NEWS.txt (#95479)Terry Jan Reedy2022-07-301-0/+1
| | | | | Needed for backports. Cherrypicked from 9ec6abf6dc6ab622efda83a28d83d25ba129bbe2
* gh-95411: IDLE - Enable using the module browser with .pyw files (GH-95397)Miss Islington (bot)2022-07-303-9/+30
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 7e19e417b5df765dabab8d6550ec0e9d897c573e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-89610: Add .pyi as a recognised extension for IDLE on macOS (GH-95393)Miss Islington (bot)2022-07-281-0/+2
| | | | | | | | This allows opening stub files by double clicking on them in the Finder. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 06fc249135e5b98a74fc0213e157e80412354659) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-90654: Update maintenance NEWS header (#94355)Terry Jan Reedy2022-07-201-3/+2
|
* gh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)Miss Islington (bot)2022-07-201-0/+2
| | | | | (cherry picked from commit acb105a7c1f435f93fee08e292ee12438f716abd) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* idlelib: replace 'while 1' with 'while True' (GH-94827)Miss Islington (bot)2022-07-146-8/+8
| | | | | (cherry picked from commit 6a15f918b5a6fb5113d5332ebf27df1d5360e66c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE doc: Tweek RESTART and Windows console start (GH-94530)Miss Islington (bot)2022-07-031-3/+5
| | | | | (cherry picked from commit 39c29f753e6d6f390dce5a36613c1e03f43d28ea) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] gh-82006: IDLE doc improvements (GH-94349) (GH-94358)Miss Islington (bot)2022-06-282-177/+306
| | | | | | | | | 0. Update text start and stop conditions. 1. Title-case sections but not subsections. 2. Edit Shell Window sections: title, execute, restart. (cherry picked from commit e6391e08bff775a3c10707fd2cfce6963e6ae429) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.11] gh-84623: Remove unused imports in stdlib (GH-94313)Miss Islington (bot)2022-06-272-2/+1
| | | | | | | | | GH-93773 Backport only for 2 idlelib files. Cherrypicked from 259dd71c32a42708a2800c72898e2664a33fda9c (cherry picked from commit bc8d81a8febd26e7d02e26f46532aeb7ecbd55be) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE: replace if statement with expression (GH-94228)Miss Islington (bot)2022-06-241-6/+2
| | | | | (cherry picked from commit 91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-84623: Remove unused imports in idlelib (GH-94143) (#94148)Miss Islington (bot)2022-06-233-17/+7
| | | | | | | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 576dd901170af30fc50b0a7f07a388b38fd724a9) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332) (#93340)Miss Islington (bot)2022-05-301-2/+2
| | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 4f195f9db168bfe3360607eb45ba8d9ac98506ec) Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
* bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)Terry Jan Reedy2022-02-139-3/+75
| | | | | | | | | | | 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> (cherry picked from commit 50cf4991c49e19f917305dd7b9c71085c11edddb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Optimize images by IMGbot (GH-21348)Miss Islington (bot)2022-02-0410-0/+0
| | | | Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> (cherry picked from commit ba650af7d660084e08859dd1ee1917cccee24e88)
* bpo-46588: fix typo in test_calltip.py (GH-31119)Miss Islington (bot)2022-02-041-1/+1
| | | | | (cherry picked from commit 222865daabfa7a8b12ca9a5e9c23b9ce217448f1) Co-authored-by: Caio Agiani <agianicaio@gmail.com>
* bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)Miss Islington (bot)2022-02-032-1/+4
| | | | | | | On Windows, one had to Tab or click on the entry box to get a cursor and be able to enter anything. (cherry picked from commit d1df81a730499cc6286d02afa6028a1e9c22bbbf) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45975: IDLE - Remove extraneous parens (GH-31107)Miss Islington (bot)2022-02-033-4/+4
| | | | | | | mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9. (cherry picked from commit 916d0d822c79933f4c420f7a36f16f3eb788646b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Miss Islington (bot)2022-02-035-24/+9
| | | | | (cherry picked from commit 51a95be1d035a717ab29e98056b8831a98e61125) Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com>
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Miss Islington (bot)2022-02-023-2/+6
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 53c78080573b3bae4c4e782b9f47dce48aac9688) Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
* bpo-46496: news11-10 for bpo45296 (GH-30937)Miss Islington (bot)2022-01-271-0/+6
| | | | | | | (cherry picked from commit 9f0881476e0113d3a35e0ffa96649b9276dd75c5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936) (GH-30944)Miss Islington (bot)2022-01-272-11/+13
| | | | | | | | | | | 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. (cherry picked from commit fcde0bc10ddd836b62d0a8e893d80b8c55e0ba3f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] bpo-46496: Update IDLE News to 2021 Jan 24 (GH-30876)Terry Jan Reedy2022-01-251-0/+12
| | | Cherry picked from b1a3446f077b7d56b89f55d98dadb8018986a3e
* bpo-41841: update idlelib News up to 3.10.0. (GH-30868) (GH-30870)Miss Islington (bot)2022-01-251-1/+31
| | | | | | | (cherry picked from commit 9d3c9788a6ccd4f2f53a147dd0026a316c396976) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [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>