summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* gh-102778: revert changes to idlelib (#102825)Irit Katriel2023-03-194-24/+9
|
* gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵Irit Katriel2023-03-184-9/+24
| | | | sys.last_value,sys.last_traceback (#102779)
* IDLE: Simplify DynOptionsMenu __init__code (#101371)JosephSBoyle2023-02-281-14/+11
| | | | | | Refactor DynOptionMenu's initializer to not copy kwargs dict and use subscripting; improve its htest. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE - fix module browser test (#100647)Terry Jan Reedy2023-01-011-2/+1
|
* bpo-33964: IDLE macosx - removed unused local dict. (GH-7926)Terry Jan Reedy2022-11-061-4/+2
|
* gh-97527: IDLE - fix buggy macosx patch (#98313)Terry Jan Reedy2022-10-162-16/+31
| | | | | | #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.
* gh-98254: Include stdlib module names in error messages for NameErrors (#98255)Pablo Galindo Salgado2022-10-151-1/+2
|
* bpo-35675: IDLE - separate config_key window and frame (#11427)Cheryl Sabella2022-09-304-82/+174
| | | | | bpo-35598: IDLE: Refactor window and frame class Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-97527: IDLE: protect macosx Tk() call when no GUI (#97530)Terry Jan Reedy2022-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.
* gh-87179: Fix more IDLE class headers (#96899)Terry Jan Reedy2022-09-172-2/+2
| | | Remove unneeded '(object)' and '()'.
* gh-75500: Update idlelib/help.html (#96523)Terry Jan Reedy2022-09-031-7/+8
|
* gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499)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. 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#). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.
* gh-78143: IDLE - fix settings dialog page label. (#96009)Terry Jan Reedy2022-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.
* gh-95841: IDLE - Revise Windows local doc url (#95845)Terry Jan Reedy2022-08-111-4/+14
| | | | | | #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
* gh-84910: Change 'IDLE Help' to 'IDLE Doc' (#95873)Terry Jan Reedy2022-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. .
* gh-75500: Add idlelib section to IDLE doc (#95832)Terry Jan Reedy2022-08-091-1/+14
| | | This enables accessing IDLE as 'idlelib' in the Doc Module listing.
* gh-95491: Mention IDLE Issue project in Readme (#95750)Terry Jan Reedy2022-08-081-0/+8
|
* gh-95251: IDLE - Add What's New section to README (#95688)Terry Jan Reedy2022-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>
* gh-89362: Doc IDLE menu and search (#95697)Terry Jan Reedy2022-08-051-15/+27
| | | | | Update menu item position and capitalization. Add paragraph about search. For help.html, include save-as addition.
* gh-65802: IDLE - explain SaveAs and extensions (#95690)Terry Jan Reedy2022-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.
* gh-95638: Update idlelib README file and menu lists (#95639)Terry Jan Reedy2022-08-041-50/+59
|
* gh-95597: Fix typo in Lib directory files (#95599)Jo, Yunjin2022-08-031-1/+1
|
* gh-83270: Update IDLE's credits (#95528)Erlend Egeberg Aasland2022-08-021-1/+11
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-95191: IDLE: Include prompts when saving Shell #95554Terry Jan Reedy2022-08-024-24/+42
|
* gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (#95512)Terry Jan Reedy2022-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.)
* IDLE: Fix docs URL in the About window (#28417)Serhiy Storchaka2022-07-311-2/+3
|
* gh-95471: IDLE - Tweak Edit menu (#95481)Terry Jan Reedy2022-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.
* gh-90654: IDLE - Insert blank line in NEWS.txt (#95478)Terry Jan Reedy2022-07-301-0/+1
| | | Needed for backports.
* gh-95411: IDLE - Enable using the module browser with .pyw files (#95397)Erlend Egeberg Aasland2022-07-303-9/+30
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-89610: Add .pyi as a recognised extension for IDLE on macOS (#95393)Erlend Egeberg Aasland2022-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>
* gh-90654: Remove unneeded blank line (#95044)Terry Jan Reedy2022-07-201-1/+0
|
* gh-90654: Add item missing from idlelib/NEWS.txt (#95038)Terry Jan Reedy2022-07-201-0/+2
|
* idlelib: replace 'while 1' with 'while True' (#94827)Terry Jan Reedy2022-07-146-8/+8
|
* gh-93883: elide traceback indicators when possible (#93994)John Belmonte2022-07-111-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered).
* IDLE doc: Tweek RESTART and Windows console start (#94530)Terry Jan Reedy2022-07-031-3/+5
|
* gh-82006: IDLE doc improvements (#94349)Terry Jan Reedy2022-06-272-177/+306
| | | | | | 0. Update text start and stop conditions. 1. Title-case sections but not subsections. 2. Edit Shell Window sections: title, execute, restart.
* IDLE: replace if statement with expression (#94228)Terry Jan Reedy2022-06-241-6/+2
|
* gh-84623: Remove unused imports in idlelib (#94143)Victor Stinner2022-06-223-17/+7
| | | | | Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-84623: Remove unused imports in stdlib (#93773)Victor Stinner2022-06-132-2/+1
|
* Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)luzpaz2022-05-301-2/+2
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44712: Replace "type(literal)" with corresponding builtin types (GH-27294)Serhiy Storchaka2022-05-081-1/+1
| | | | I suppose it is a remnants of very old code written when str, int, list, dict, etc were functions and not classes.
* gh-91827: Add method info_pathlevel() in tkinter (GH-91829)Serhiy Storchaka2022-05-061-3/+3
|
* gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings ↵Oleg Iarygin2022-04-191-1/+3
| | | | | | | (#31711) Closes GH-91098. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)Serhiy Storchaka2022-03-193-36/+1
|
* bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950)Alex Waygood2022-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>
* Optimize images by IMGbot (GH-21348)Manish Kumar ⛄2022-02-0410-0/+0
| | | Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
* bpo-46588: fix typo in test_calltip.py (GH-31119)Caio Agiani2022-02-041-1/+1
|
* bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)Terry Jan Reedy2022-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.
* bpo-45975: IDLE - Remove extraneous parens (GH-31107)Terry Jan Reedy2022-02-033-4/+4
| | | | mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9.
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Nick Drozd2022-02-035-24/+9
|