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
Terry Jan Reedy
eaa1eae55e
IDLE: Condense run.main threading.Thread start. ( #106125 )
...
Use daemon argument added in 3.3 and directly call .start.
Remove now unused 'sockthread' name.
2023-06-27 13:12:56 -04:00
Irit Katriel
3ee921d84f
gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer ( #103339 )
2023-06-08 21:19:05 +01:00
Nikita Sobolev
bd2dca035a
gh-103668: Run pyugrade on idlelib ( #103671 )
...
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-04-23 19:25:08 -04:00
Irit Katriel
d1e4917e06
gh-102778: IDLE - make sys.last_exc available in Shell after traceback ( #103314 )
...
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-04-19 01:05:52 -04:00
Irit Katriel
4d1f033986
gh-102778: revert changes to idlelib ( #102825 )
2023-03-19 12:19:59 -04:00
Irit Katriel
e1e9bab006
gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback ( #102779 )
2023-03-18 11:47:11 +00:00
Terry Jan Reedy
6a15f918b5
idlelib: replace 'while 1' with 'while True' ( #94827 )
2022-07-13 21:09:07 -04: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
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
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
Ken
7a34380ad7
bpo-43008: Make IDLE respect sys.excepthook (GH-24302)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-01-26 18:55:52 -05:00
Terry Jan Reedy
8dfe15625e
bpo-43013: Update idlelib code to 3.x (GH-24315)
...
Remove 9 remaining '(object)' occurrences in class headers in idlelib
and 25 '()' occurrences in idlelib.idle_test class headers.
2021-01-24 14:08:50 -05:00
Terry Jan Reedy
f2e161c279
bpo-41468: Improve and test IDLE run error exit (GH-21798)
...
A message box pops up when an unexpected error stops the run process. Tell users it is likely a random glitch, but report it if not.
2020-08-09 16:08:30 -04:00
Serhiy Storchaka
b690a2759e
bpo-36698: IDLE no longer fails when write non-encodable characters to stderr. (GH-16583)
...
It now escapes them with a backslash, as the regular Python interpreter.
Added the "errors" field to the standard streams.
2019-10-08 14:32:25 +03:00
Terry Jan Reedy
6aeb2fe606
bpo-26806: IDLE should run without docstrings ( #14657 )
...
After fcf1d00
, IDLE startup failed with python compiled without docstrings.
2019-07-09 14:37:25 -04:00
Tal Einat
fcf1d003bf
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
...
This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.
This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
2019-07-06 15:35:24 +03:00
Terry Jan Reedy
8fac122109
bpo-37321: Edit IDLE subprocess connection error messages. ( #14170 )
...
Mainly, add a doc reference to message in pyshell.
2019-06-17 17:23:28 -04:00
Terry Jan Reedy
81bb97df61
bpo-37038: Make idlelib.run runnable; add test clause (GH-13560)
2019-05-24 21:59:53 -04:00
Terry Jan Reedy
6d965b39b7
bpo-36958: In IDLE, print exit message (GH-13435)
...
Print any argument other than None or int passed to SystemExit
or sys.exit().
2019-05-19 22:52:22 -04:00
Terry Jan Reedy
06e2029dfa
bpo-33907: Rename an IDLE module and class. (GH-7807)
...
Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.
2018-06-19 23:00:35 -04:00
Terry Jan Reedy
1e2fcac497
bpo-32207: Improve tk event exception tracebacks in IDLE. ( #4703 )
...
When tk event handling is driven by IDLE's run loop, a confusing
and distracting queue.EMPTY traceback context is no longer added
to tk event exception tracebacks. The traceback is now the same
as when event handling is driven by user code. Patch based on
a suggestion by Serhiy Storchaka.
2017-12-04 16:16:18 -05:00
Zane Bitter
de86073a76
bpo-28603: Fix formatting tracebacks for unhashable exceptions ( #4014 )
2017-10-18 00:29:39 +03:00
Serhiy Storchaka
a96c96f5da
bpo-31500: IDLE: Scale default fonts on HiDPI displays. ( #3639 )
2017-09-21 11:20:06 +03:00
terryjreedy
188aedf8bb
bpo-25514: Improve IDLE's connection refused message ( #2177 )
...
When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies.
2017-06-13 21:32:16 -04:00
Serhiy Storchaka
55fe1ae970
bpo-30022: Get rid of using EnvironmentError and IOError (except test… ( #1051 )
2017-04-16 10:46:38 +03:00
Terry Jan Reedy
bfbaa6b206
Issue #27891 : Consistently group and sort imports within idlelib modules.
2016-08-31 00:50:55 -04:00
Terry Jan Reedy
41bc067873
Issue #25507 : Merge from 3.5 with ttk replacing colorchooser.
...
IDLE no longer runs buggy code because of its tkinter imports.
Users must include the same imports required to run directly in Python.
2016-07-16 18:27:11 -04:00
Terry Jan Reedy
ff1d5ab16e
Issue #25507 : IDLE no longer runs buggy code because of its tkinter imports.
...
Users must include the same imports required to run directly in Python.
2016-07-16 18:26:32 -04:00
Terry Jan Reedy
6cf0e13b65
Issue #25507 : Move 4 objects from pyshell to run and switch inports.
...
This removes one problem inport and reduces len(sys.modules) by 37.
2016-07-15 02:43:03 -04:00
Terry Jan Reedy
6fa5bdc6e8
Issue #24225 : Within idlelib files, update idlelib module names.
...
This follows the previous patch that changed idlelib file names.
Class names that matched old module names are not changed.
Change idlelib imports in turtledemo.__main__.
Exception: config-extensions.def. Previously, extension section
names, file names, and class names had to match. Changing section
names would create cross-version conflicts in config-extensions.cfg
(user customizations). Instead map old names to new file names
at point of import in editor.EditorWindow.load_extension.
Patch extensively tested with test_idle, idle_test.htest.py, a custom
import-all test, running IDLE in a console to catch messages,
and testing each menu item. Based on a patch by Al Sweigart.
2016-05-28 13:22:31 -04:00
Terry Jan Reedy
3be2e54adc
Issue #25173 : Replace 'master' with 'parent' in tkinter.messagebox calls.
...
This associates the message box with the widget and is better for Mac OSX.
Patch by Mark Roseman.
2015-09-25 22:22:55 -04:00
Terry Jan Reedy
038c16b9a0
Issue #23184 : idlelib, remove more unused names and imports.
2015-05-15 23:03:17 -04:00
Terry Jan Reedy
a92bfa457c
Merge with 3.3
2013-06-28 23:52:05 -04:00
Terry Jan Reedy
95a3f11f95
Issue *18081, #18242 : Change Idle warnings capture in PyShell and run to stop
...
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
2013-06-28 23:50:12 -04:00
Terry Jan Reedy
912bad7cd7
Issue #18081 : Back out temporary changeset, 2a9e1eb3719c, to merge new patch.
...
If buildbots run before next push, test_logging will (temporarily) fail.
2013-06-28 23:47:40 -04:00
Victor Stinner
b28a375f2f
Issue #18081 : Workaround "./python -m test_idle test_logging" failure
...
"import idlelib" should not install hooks on the warning modules, hooks should
only be installed when IDLE is started.
2013-06-25 00:17:37 +02:00
Roger Serwy
6d844c5db9
#18196 : merge with 3.3
2013-06-11 22:25:34 -05:00
Roger Serwy
f467521927
#18196 : Avoid displaying spurious SystemExit tracebacks.
2013-06-11 22:25:14 -05:00
Georg Brandl
fbb9152f92
Issue #17838 : merge with 3.3
2013-05-12 11:21:27 +02:00
Benjamin Peterson
0d4931eb9e
prevent IDLE from trying to close when sys.stdin is reassigned ( #17838 )
2013-05-11 22:24:28 -05:00
Serhiy Storchaka
4c9bae3d31
Issue #9290 : In IDLE the sys.std* streams now implement io.TextIOBase
...
interface and support all mandatory methods and properties.
2013-01-25 15:35:28 +02:00
Serhiy Storchaka
b1b3c0dfef
Issue #9290 : In IDLE the sys.std* streams now implement io.TextIOBase
...
interface and support all mandatory methods and properties.
2013-01-25 15:34:21 +02:00
Serhiy Storchaka
39e70a4e83
Issue #9290 : In IDLE the sys.std* streams now implement io.TextIOBase
...
interface and support all mandatory methods and properties.
2013-01-25 15:30:58 +02:00
Serhiy Storchaka
df558cb3b1
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:26:54 +02:00
Serhiy Storchaka
7131749959
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:24:48 +02:00
Serhiy Storchaka
78470b4c3a
Issue #16491 : IDLE now prints chained exception tracebacks.
2013-01-09 12:21:57 +02:00
Andrew Svetlov
0832af6628
Issue #16717 : get rid of socket.error, replace with OSError
2012-12-18 23:10:48 +02:00