[issue44330] IDLE: Colorizer and output tests hang on macOS

2021-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Colorizer test hangs on macOS -> IDLE: Colorizer and output tests hang on macOS ___ Python tracker <https://bugs.python.org/issu

[issue44330] IDLE: Colorizer test hangs on macOS

2021-06-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : Ned, have you seen or heard anything about tkinter/tk8.6.11 freezing on macOS? It is happening in many places. On my MacBook, python3.9 -m test -ugui -v test_idle runs OK in about 10 seconds. With installed python3.10.0b2, it runs test_colorizer

[issue44325] IDLE: Fix shell comment anomalies

2021-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added debug prints to _maybe_compile and confirmed 1) trailing whitespace (' ' and '\t' at least) is removed before this function is called. I presume in IDLE rather than code.II, but cannot find where. It is not with .rstrip. (Note: doing so after

[issue44325] IDLE: Fix shell comment anomalies

2021-06-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #38673, about standard REPL, msg356271 (me) and msg356348 (Guido). In the following interactions, no blank lines were entered. 3.9 behavior >>> #a >>> # a >>> #a >>> # a >>> Mystery 1: why the

[issue43610] Ctrl C makes interpreter exit

2021-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that sndhdr.what(0) calls "with open(0, rb)" so that Eryk's comment applies. (On Windows, handle 0 is invalid, so the call errors immediately instead of hanging.) -- nosy: +terry.reedy resolution: -> not a bug stage: ->

[issue44322] Document SyntaxError args and interpretation for f-string fields

2021-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +25151 pull_request: https://github.com/python/cpython/pull/26562 ___ Python tracker <https://bugs.python.org/issue44

[issue44322] Document SyntaxError args and interpretation for f-string fields

2021-06-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : Document that SyntaxError args[1] is a tuple of the other attributes and how the meaning of the attributes is adjusted when the syntax error is in an f-string field replacement expression. Also add compile() to the list of builtins that can raise

[issue44265] Create an MSI Package

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue44265> ___ ___ Python-bugs-list m

[issue44310] lru_cache memory leak

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue44310> ___ ___ Python-bugs-list m

[issue44309] Add support for yescrypt in crypt.

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +jafo ___ Python tracker <https://bugs.python.org/issue44309> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44307] date.today() is half as fast as datetime.now().date()

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: date.today() is 2x slower than datetime.now().date() -> date.today() is half as fast as datetime.now().date() ___ Python tracker <https://bugs.python.org/issu

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Coredevs are likely to assume that the problem is in greenlets, especially if it has any C code (I don't know). I suggest you first try to find the commit between releases that resulted in the problem. If it is not deterministicly reproducible, you likely

[issue44301] Is there a way to provide destructor for module written using C API?

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue44301> ___ ___ Python-bugs-list m

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, Raymond's flattening is a plausible replacement, especially ater a future speedup. However, I would re-order the patterns to None, False, True, str(), int(), ..., _. These independent conditions, other than _ (or else in the if chain), can

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jesse or Andre, please test interactive help in IDLE as pydoc then knows that it is *not* talking to Windows console. It then does not use more.com but prints the entire text at once. It should send it 'as is' and should ignore the console language

[issue44266] AttributeError: module 'sys' has no attribute 'original_stdout'

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you intend to import the stdlib sys and succeed, the original stdout is called '__stdout__'. See https://docs.python.org/3/library/sys.html#sys.__stdin__, including the note that it may be None on Windows. Also peruse that doc to see what attributes

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2021-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Concrete reason 3. Treewidget does not work on high-res monitors. The #37041 quick Treeview test worked for Andre Roberge -- nosy: +aroberge versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The other thing I thought is parameterizing the decorator to pass in a delay only for this test, but that require another layer of wrapping, which I cannot do right now. So I think we should just add skiptest for now. In fact, we only need to run it when

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The confusion is my fault: PR-26404 is where I first saw this failure, for the previously added tests, not where the test was added. I unlinked the erroneous message. Running 12 duplicate tests in parallel on Windows on a 6 core (12 CPU) machine with f

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg394871 ___ Python tracker <https://bugs.python.org/issue44282> ___ ___ Python-bug

[issue41611] IDLE: problems with completions on Mac

2021-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -25083 ___ Python tracker <https://bugs.python.org/issue41611> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43654] IDLE: Fix tab completion after settings and some keys

2021-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Currently, the keys that define certain pseudoevents and invoke the associated event handlers are fixed: tab, '.', and within strings, '/' and '\' for completions, '(' and ')' for calltip open and close, and ')', ']', and '}' for opener matching. Note

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-01 Thread Terry J. Reedy
New submission from Terry J. Reedy : idlelib.idle_test.test_colordelagator.ColorDelegatorTest.test_incremental_editing has failed on at least on the following machines. Pip32 CI Pipelines Win32 Gen3x https://buildbot.python.org/all/#/builders/464 x86 Gentoo Installed with X 3.x GenPR

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Followup to PR-26404, which added the tests. -- ___ Python tracker <https://bugs.python.org/issue44282> ___ ___ Python-bug

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9bcb76c24f6d3f01e596a439c1521f9099e3fe80 by Miss Islington (bot) in branch '3.9': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448) https://github.com/python/cpython/commit

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset addd32986f703e692463828ac0014023a901010f by Miss Islington (bot) in branch '3.10': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448) https://github.com/python/cpython/commit

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset af5a324843de395cecc562cb0c757b3768f2077f by Terry Jan Reedy in branch 'main': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448) https://github.com/python/cpython/commit/af5a324843de395cecc562cb0c757b3768f2077f

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I picked a bluish green that works on both white and black on Windows. Test is you can and wish. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Of course, I cannot set the background on my Mac, so I will test on Windows and let you verify on dark theme mac -- ___ Python tracker <https://bugs.python.org/issue44

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you tested pr_26448. If default colors do not work, that is on tcl/tk. I suspect 8.6.11 is not prepared for dark theme. The underlying bug is ignoring the tk/user setting and deferring to the system for background only. In the meanwhile, I

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +25042 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26448 ___ Python tracker <https://bugs.python.org/issu

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, could you check the darwin osascript in turtledemo.__main__, lines 138-149 is current (both needed and correct)? subprocess.run( [ 'osascript', '-e', 'tell application

[issue44254] Change turtledemo button colors

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to disable color config on darwin (and hope it gets into b2). The default should always work. -- ___ Python tracker <https://bugs.python.org/issue44

[issue30495] IDLE: modernize textview module

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44259] lib2to3 does not accept "exec" as name

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'exec' was a keyword in 2.x, but that should not matter in 3.9. What OS? Did you get an actual crash (core dump on *nix), or a python exception and traceback (not a crash)? If the latter, copy and paste it. -- nosy: +terry.reedy

[issue44249] Readme typo fix

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python

[issue44249] Readme typo fix

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7261b29fa90d22f6cb5f3c94a3dbbf7978c6f448 by Miss Islington (bot) in branch '3.10': bpo-44249: Fix 3 README.rst typos (GH-26385) https://github.com/python/cpython/commit/7261b29fa90d22f6cb5f3c94a3dbbf7978c6f448

[issue44249] Readme typo fix

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8f8f2ea832949fd9cd76c7a7924f346b316fb610 by Miss Islington (bot) in branch '3.9': bpo-44249: Fix 3 README.rst typos (GH-26385) https://github.com/python/cpython/commit/8f8f2ea832949fd9cd76c7a7924f346b316fb610

[issue44249] Readme typo fix

2021-05-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : New changeset acac6c71ff370413374c6aca1df808c426e8a30c by Ayush Parikh in branch 'main': bpo-44249: Fix 3 README.rst typos (GH-26385) https://github.com/python/cpython/commit/acac6c71ff370413374c6aca1df808c426e8a30c -- nosy: +terry.reedy

[issue44215] help() module listing displays import warnings from deprecated package modules

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue44215> ___ ___ Python-bugs-list m

[issue44225] stop() on a stopped loop inhibits the next run_forever

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44225> ___ ___ Python-bugs-list m

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: David and Steve merged the seemingly conflicting PRs. -- nosy: +r.david.murray, steve.dower, terry.reedy versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue44

[issue43654] IDLE: Applying settings disables tab completion

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I think you had the right solution the first time. To me, tab is (should be) a fixed key, and the event added just once, like the other fixed keys. I am quite surprised that it isn't. Please revise or make a new patch to remove it from both

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue23937] IDLE: revise window size, placement startup options

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I changed the title, I intended to broaden the issue beyond 'start maximized'. Even for that, there are two possibilities. 1. Configure option (default as now). 2. Save 'current' position, which helps non-maximizers also. So I am inclined

[issue31790] double free or corruption (while using smem)

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: pydev core has not touched 2.7 in a year. Anyone else maintaining 2.7 has had a chance to grab 2.7 issues. So all 2.7 issues should be closed unless obviously relevant to current issues (and even then have 2.7 removed). I agree that the later does

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: #44254 is a followup to change turtledemo unpressed button colors to something on white. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44254] Change turtledemo button colors

2021-05-27 Thread Terry J. Reedy
New submission from Terry J. Reedy : [Following up on #44243.] tk/tkinter-based turtledemo buttons are currently white on something. On Mac, configured foreground button colors are honored (while the button is unpressed), while background colors are ignored. Given that the unpressed

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: "The configure and cget subcommands can still manipulate the values, but do not cause any variation to the look of the widget." is wrong. Setting the foreground color *does* change the unpressed foreground color, so that 'white' becomes 'whit

[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The completion freeze fix is easily backported to non-Windows installations. 1. Run IDLE 2. File => Open Module, enter 'idlelib.autocomplete_w', OK. 3. Goto line 247 (3.9) or 250 (3.10) with "acw.update". 4. Add # in from of above to disabl

[issue41611] IDLE: problems with completions on Mac

2021-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.10.0b1 on Mac I am getting attribute completion freezes. I had to turn them off. I am tempted to disable completions until there is a Mac IDLE developer to dig into issues like this. -- nosy: +taleinat

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue44243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : Mac Mohave, 3.9 with 8.6.8 and 3.10 with 8.6.11 import tkinter as tk r = tk.Tk() b = tk.Button(r, text='START', fg='white', bg='red') # Or '#f00'. b.pack() r.mainloop() On Windows, white on red button, as expected. On Mac, all white until one presses

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will link to an IDLE shell followup issue later. Discussions about other IDLE issues should be on pre-existing issues (use the tracker search with Components: IDLE), new issues, or without an issue, on the idle-dev list. -- resolution: -> fi

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: In order to understand what Paul is concretely proposing, I read and partly reviewed his PR. I thought about maintainability. Part A adds test.support.hypothesis_helper, similar in purpose to other specialized xyz_helper modules. Hypothesis_helper imports

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is fundamentally a tk text widget issue. Prior to fall 2019, attempts to insert an astral (non-BMP) chars in tkinter widgets raised a unicode decode exception. Then Serhiy fixed tkinter so that such chars could be displayed, either as the actual chars

[issue44190] Dictionary assignment shorthand

2021-05-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44190> ___ ___

[issue43927] Remove IOError references from the tutorial

2021-05-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44038] In documentation Section 8.6, the definition of parameter_list need correcting

2021-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: After mentally reparsing and translating to English, I think you are right. -- ___ Python tracker <https://bugs.python.org/issue44

[issue43927] Remove IOError references from the tutorial

2021-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: IOError is a back-compatibility synonym for OSError. I will eliminate the last use from all 3 versions. The change to the previous example was done by 2 people who did not backport to 3.9 and I will not bother with that. Future versions are already fixed

[issue43927] Remove IOError references from the tutorial

2021-05-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch nosy: +terry.reedy nosy_count: 2.0 -> 3.0 pull_requests: +24893 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26289 ___ Python tracker <https://bugs.python.org/i

[issue44038] In documentation Section 8.6, the definition of parameter_list need correcting

2021-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I *think* that another bracket pair is needed, changing "," "/" to ["," "/"] -- nosy: +pablogsal, terry.reedy versions: +Python 3.11 -Python 3.9 ___ Python trac

[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that from the outside is seems slightly bizarre to make an internal list to implement a function documented as returning an iterator. However, list(scandir) was added by Serhiy in #26032 with the comment that it made globbing 1.5-4 times faster

[issue44163] IDLE ValueError in HyperParser

2021-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: For now, I want to just improve the error message and then close. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44163] IDLE ValueError in HyperParser

2021-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: So, consider both possibilities where relevant. In the future, I will assume that you are running standard, up-to-date, Mac build unless you say otherwise. I presume you start IDLE from terminal and check it before shutting down. I have wondered whether

[issue44163] IDLE ValueError in HyperParser

2021-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the report. Which 3.9.? hyperparser has not changed in a year, but some of the calltip logic has. This occurred when you typed a '(' and IDLE tried to open a calltip but failed, and you did not notice its absence. Easy when not looking

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tcl_Finalize can be called more than once, says the tcl doc. It also says it, or T_FThread should be called when unloading. If the tcl implementation on some system does not match the doc, then there is a bug that should be reported. If the registration

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: As Tal notes on the PR, the _tkinter patch is the minimum needed to fix the problem for IDLE, not the undetermined patch to tkinter that should be done to properly expose the fix to all tkinter users. If the tcl function were exposed with a presumably

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can we backport? The change to _tkinter, not directly exposed in tkinter, could be considered an enhancement, but is necessary to fix what I consider a real bug in tkinter, and hence in IDLE. Pablo, would you allow the _tkinter change in .0b2? If we

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal: cancel comment above. I was confused because FinalizeThread is exposed as just finalize. On Windows, PR fixes issue whether Shell or editor is closed last. -- ___ Python tracker <https://bugs.python.

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy: what do you know of tcl finalization? Tal: why does your patch only expose the option that you said crashes ubuntu. Spacekiwigames: if you have a cpython fork and local repository, you could try the patch on your linux mint. -- nosy

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alexey, to repeat what I said to Thomas above: please sign a contributor agreement for your patches to be considered. https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2021-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue24964> ___ ___ Python-bugs-list mailin

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2021-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was really two issues: fix doc of existing behavior; change behavior (which would be an enhancement). The first has been done; the second not. I think this should be closed and if anyone still proposes the second, open a new enhancement issue

[issue44072] Doc: power operator (`**`) present for numbers.Complex, not added in numbers.Integral

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the report and clean patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44107] HTTPServer can't close http client completely

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.8 only gets security fixes. Please verify issue on a current release. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue44

[issue44081] ast.unparse: dont use redundant space separator for lambdas with no parameters

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed. unparse is already correct if there is a parameter. >>> ast.unparse(ast.parse("lambda x: 'hey!'")) "lambda x: 'hey!'" -- nosy: +terry.reedy ___ Python tracker <ht

[issue40358] pathlib's relative_to should behave like os.path.relpath

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: On #44078 (closed as duplicate), Mark Hammond made a similar request. -- nosy: +terry.reedy versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue40

[issue44078] Output relative path when using PurePath.relative_to

2021-05-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pathlib's relative_to should behave like os.path.relpath ___ Python tracker <https://bugs.python

[issue44072] Doc: power operator (`**`) present for numbers.Complex, not added in numbers.Integral

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, complex ** complex works fine, and "TypeError: pow() 3rd argument not allowed unless all arguments are integers". -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.o

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue confuses two different testing issues. First is selection of test data before the test versus generation while testing (usually 'randomly') Second is how the function is tested. All tests test some property of the inputs and function

[issue31753] Unnecessary closure in ast.literal_eval

2021-05-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> rejected ___ Python tracker <https://bugs.python.org/issue31753> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13657] IDLE doesn't recognize resetting sys.ps1.

2021-05-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Starting with 3.10.0b1, Shell is being reworked in ways that make this issue, as formulated, out of date. Solving the indent problems means that prompt must be removed from the first line of interactive input. #37892. The initial solution is to put

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-05-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy versions: +Python 3.11 -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue39

[issue37903] IDLE Shell sidebar.

2021-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, lets discuss actual problems and various possible solutions. Raymond's example is incomplete as it omits multiline statements, which is where the real problems lie and the reason a fix was sorely needed. This has been more or less agreed on since

[issue44028] Request for locals().update() to work, it is

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: When quoting, please include the source, preferably a direct link. In Python 1 and 2, there were two function local namespace *implementations* -- array index by number or dictionary indexed by name. The implementation, and hence the lookup mode, was fixed

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44026> ___ ___

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Merged to 3.11.0a0 first, bot forget to post it. Dennis, thank you for the analysis and then the suggestion as to how to access the not directly accessible. It would likely have been awhile before I stumbled from 'cannot' to 'can with workaround'. Feel

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5a5237c6d08ed97458b0903d6836624168df0b51 by Miss Islington (bot) in branch '3.10': bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912) https://github.com/python/cpython/commit/5a5237c6d08ed97458b0903d6836624168df0b51

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +24631 pull_request: https://github.com/python/cpython/pull/25975 ___ Python tracker <https://bugs.python.org/issue44

[issue37892] IDLE Shell: isolate user code input

2021-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 25678 merged on top of the sidebar patch results in using space indents with the sidebar. An additional patch is needed to have the mode with '>>>' on a line by itself instead of having a sidebar. The shell prompt_last_line attribute is now

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is only backported to 3.10 and not 3.9 because the fix recommendations were only added in 3.10. If the code difference became a problem, this could be backported because the roundabout method for name and attribute errors would work in 3.9

[issue37903] IDLE Shell sidebar.

2021-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: As described above in msg392163, the other fix is to put the prompt on a line by itself. I hoped to get a switch between fixes into b1 but ran out of time and energy. I intend to have in in the next, along with other improvements

[issue25094] [EASY][Windows] test_tools fails on Windows when passing

2021-05-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -24577 ___ Python tracker <https://bugs.python.org/issue25094> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pablo, unless you are suggesting rewriting IDLE's custom exception handing in C, I don't see how making it a single function would be an improvement. As long as it is Python code, the problem is accessing the message supplement. After reading your comment

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I realized after posting that looking for close matching is a performance issue and does not need to be done unless the exception is going to be displayed. But it is a shame to keep such great work away from many users. What would you think of either 1

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: bedevere-bot malfunctioned. Lukasz merged PR 25873 into main, and I verified the change on the main branch. But the PR is listed above as closed, not merged, and commit 3b200b2aa648fcc8a2673871807c1463afe00195 is not listed. -- nosy: +Mariatta

[issue37605] CI should not depend on gmane response

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: nntp.rst, line 23, has already been updated to "s = NNTP('news.gmane.io'). But that also occasionally fails to respond. I have not seen any test failures recently, so maybe something else has changes. Should this be closed pending current fai

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Shreyan, the fake filenames are not relevant.) By default, sys.excepthook is sys.__excepthook is . So by default IDLE runcode calls print_exception, which call cleanup_traceback for each traceback printed. This function makes two important changes

<    3   4   5   6   7   8   9   10   11   12   >