summaryrefslogtreecommitdiff
path: root/Lib/idlelib
Commit message (Collapse)AuthorAgeFilesLines
* gh-104499: Fix typo. (#104598)Terry Jan Reedy2023-05-181-1/+1
|
* gh-104499: IDLE - fix completions for tk aqua 8.7 (#104591)Terry Jan Reedy2023-05-172-7/+5
|
* gh-104496: IDLE - fix About for mixed tcl/tk versions (#104585)Terry Jan Reedy2023-05-173-23/+21
| | | Print both if they are different, as may happen in the future.
* GH-71383: IDLE - Document testing subsets of modules (#104463)Terry Jan Reedy2023-05-132-15/+28
|
* gh-75710: IDLE - add docstrings and comments to editor module (#104446)Terry Jan Reedy2023-05-131-25/+102
| | | | | Commit extracted from PR #3669. Will edit more later. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* gh-99836: IDLE - update news.txt for 3.12 (#104444)Terry Jan Reedy2023-05-131-2/+13
| | | | | * gh-99836: IDLE 3.12 news.txt * gh-99836: IDLE - update news.txt for 3.12
* gh-88496: IDLE - fix another test on macOS (#104075)Terry Jan Reedy2023-05-021-2/+3
| | | Needed for Catalina: test_sidebar add 'idletasks' and skip assert.
* gh-88496: Fix IDLE test hang on macOS (#104025)Terry Jan Reedy2023-04-302-2/+2
| | | | Replace widget.update() with widget.update_idletasks in two places.
* Change 'dependant' to 'dependent' (#103745)Christopher Chavez2023-04-241-2/+2
| | | | The word 'dependent' is both an adjective and a noun. A 'dependant' is a British alternative spelling for the noun form. In idlelib.sidebar, 'OS-dependant' is an adjective and clearly wrong. In 'Using', 'dependant' as a noun would be acceptable in Britain, but we use American spellings in Python docs. https://www.merriam-webster.com/words-at-play/spelling-variants-dependent-vs-dependant
* gh-103668: Run pyugrade on idlelib (#103671)Nikita Sobolev2023-04-2317-50/+50
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)Irit Katriel2023-04-191-0/+1
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* 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 Reedy2022-12-311-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-041-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-302-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-136-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-233-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
|