[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-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

[issue27477] IDLE: Switch search dialogs to ttk widgets, and other refinement

2021-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #33987 was reopened, 4 patches merged and backported, and reclosed. This is only open for other possible refinements listed above. -- ___ Python tracker <https://bugs.python.org/issue27

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I looked at all 4 hooks. sys.breakpointhook is invoked by breakpoint() in user code, so is not IDLE's concern at present. sys.unraiseablehook is invoked by the interpreter when user code messes up badly, so is not IDLE's condern. (And it is

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre: while I would like friendlier tracebacks available in IDLE without 3rd party installation, I doubt this will happen soon. In the meanwhile, I see that you are working to polish Friendly Traceback with a friendly contest. I presume FT uses

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ken: I will probably work on tests, perhaps as a followup or parallel issue. I will likely do a bit or refactoring to make testing easier. I just looked at print_exception and discovered that the double traceback can likely by handled by properly setting

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch nosy: +terry.reedy nosy_count: 3.0 -> 4.0 pull_requests: +23129 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24308 ___ Python tracker <https://bugs.python.org/i

[issue42962] Windows: SystemError during os.kill(..., signal.CTRL_C_EVENT)

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand correctly, this is open for someone to evaluate Eryk's suggestion in msg385291 that a 'missing' return be added to win32_kill. -- nosy: +terry.reedy versions: -Python 3.7 ___

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: -> enhancement versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue42971> ___ ___ Python-

[issue42974] tokenize reports incorrect end col offset and line string when input ends without explicit newline

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The question in the issue for tokenizer and virtual newlines is mimicking the C tokenizer versus consistency between and within token 5-tuples. As a tokenizer user, I would lean toward consistency but it is definitely not my call. https://github.com/python

[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This should likely be closed as 3rd party zjdavid Which python release, which macOS, which installer, which tk patchlevel? (IDLE Help=>About displays it). At least one of the 3.9.1 python.org mac installers installs 8.6.10. We cannot be responsible

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42992> ___ ___ Python-bugs-list

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patrick, I am not sure what you are saying. All the methods listed is this section are for both, as with bytes.count(sub[, start[, end]]) bytearray.count(sub[, start[, end]])ΒΆ but only bytearray has .copy (since there is never a need to copy an immutable

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: What system, what errors (copy-paste failure blocks)? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre: with this patch, you could potentially add a function or submodule that would point sys.excepthook to a function that would print the exception and then interact before returning. If this worked, one could add, for instance, 'i

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ken, I read on another issue that an exception in an except suite is automatically linked to the caught exception, though the printed result may not be exactly the same. Once your CLA is 'activated', I will experiment with th

[issue43003] Parts of the API will be removed in Python 4.0 ?

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should be asked on Q&A forums, like python_list. Check Removed section of What's New in 3.10. https://docs.python.org/3.10/whatsnew/3.10.html#removed -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status:

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Tal, just so you know in case you see a resulting merge conflict. I've been waiting for years to do these until most PRs were closed. Has not happened, and annoyances continue. Since there is no search option I can find to search for PRs with a

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Josh, you are right. I closed the PR. Before closing, I will think about whether to propose a change to make this more prominent. I notice the issubclass(array.array, collections.abc.MutableSequence ) is True even though some of the methods (like clear

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: 5. Extraneous () after class name in class header: 'class name():'. Never done in idlelib itself, 27 in test files, mostly in 1 file. -- ___ Python tracker <https://bugs.python.o

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Delete 2. 'list' is needed if for-suite mutates the dict all 6 either directly or maybe indirectly do so. Not worth checking unless otherwise editing the function. 6. N unneeded .keys() (out of 13 occurrences) when iterating dict. Low priori

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23134 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24315 ___ Python tracker <https://bugs.python.org/issu

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8dfe15625e6ea4357a13fec7989a0e6ba2bf1359 by Terry Jan Reedy in branch 'master': bpo-43013: Update idlelib code to 3.x (GH-24315) https://github.com/python/cpython/commit/8dfe15625e6ea4357a13fec7989a0e

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 63ebba0d9430a0bc18fd8551ad27b9b25709a4be by Miss Islington (bot) in branch '3.8': bpo-43013: Update idlelib code to 3.x (GH-24315) (#24317) https://github.com/python/cpython/commit/63ebba0d9430a0bc18fd8551ad27b9

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interesting. I would prefer to make fewer changes per pre-PR branch commit, but I see from the doc that I could split changes into at least 4 batches from the existing options. Has this been run/tested on projects better tested than IDLE? Anyway 7. Run

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23145 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24326 ___ Python tracker <https://bugs.python.org/issu

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 879986d8a932c4524cb6ff822afc9537de16e28d by Terry Jan Reedy in branch 'master': bpo-43013: Fix old tkinter module names in idlelib (GH-24326) https://github.com/python/cpython/commit/879986d8a932c4524cb6ff822afc95

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR for 3. For 2.x, tkinter comprised several modules that became tkinter submodules. For 3.0, 'import tkOld' was replaced by 'import tkinter.new as tkOld', where 'new' is lowercase version of 'Old'. Fix remaining in

[issue36086] Split IDLE into separate feature in Windows installer

2021-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: turtledemo currently requires a couple of modules from idlelib. One to syntax color examples, another to display the help file. So turtledemo would have to be patched if IDLE were separate from tkinter

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 26af2fae189629d22a87aaf01b92d6f4de92b958 by Miss Islington (bot) in branch '3.9': bpo-43013: Fix old tkinter module names in idlelib (GH-24326) https://github.com/python/cpython/commit/26af2fae189629d22a87aaf01b92d6

[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts

2021-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are about 40 open PRs with 'idle' or 'idlelib' in title. I only found 2 or 3 with merge conflicts related to this issue -- and they are easy to fix. There are more conflicts from other patches (some fixed). These are usually m

[issue42948] bytearray.copy is undocumented

2021-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue42948> ___ ___ Python-bugs-list mailing list Un

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23162 pull_request: https://github.com/python/cpython/pull/24343 ___ Python tracker <https://bugs.python.org/issue41

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23163 pull_request: https://github.com/python/cpython/pull/24344 ___ Python tracker <https://bugs.python.org/issue41

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fd668bc62b7f6de95448344b6650e1c3c2a997fa by Terry Jan Reedy in branch '3.9': [3.9] bpo-41841: Prepare IDLE NEWS for 3.9.2 (#GH-4343) https://github.com/python/cpython/commit/fd668bc62b7f6de95448344b6650e1

[issue41841] idlelib/NEWS.txt for 3.10.0 and backports

2021-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a178473dd6a3b527a67ab3f9dc38ef8b1a60881a by Terry Jan Reedy in branch '3.8': [3.8] bpo-41841: Prepare IDLE NEWS for 3.8.8 (GH-24344) https://github.com/python/cpython/commit/a178473dd6a3b527a67ab3f9dc38ef

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7a34380ad76f5ad50d4175ceb2d5715b8cff by Ken in branch 'master': bpo-43008: Make IDLE respect sys.excepthook (GH-24302) https://github.com/python/cpython/commit/7a34380ad76f5ad50d4175ceb2

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ken, for next time -- there is a separate News category for IDLE. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I hope this is not your last contribution. Another hint: if one uses issue 12643 or #12643, then the tracker makes the link -- and strikes it out if closed. -- ___ Python tracker <https://bugs.python.

[issue38307] Add .end_lineno attribute to pyclbr _Objects

2021-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The answer, Aviral discovered, is that current ast nodes have end_lineno attributes, so the patch amounts to consistently copying them. I don't understand Aviral's use case either, but an item on my IDLE wish list is to be able to move class an

[issue38307] Add .end_lineno attribute to pyclbr _Objects

2021-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If IDLE were to recalculate the end from start, it would have to more or less parse forward to find the end of the statement. This is why I considered it a speculative wish. > would `end_lineno=None` make any sense? Only as a kludge if a default w

[issue24790] Idle: improve stack viewer

2021-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 9. As of now, values are not named, whereas I believe they are in debugger. IE given def f(a,b,c): 1/0; f(1,2,3), viewer prints unlaabelled 1, 2, 3 on separate lines. Also, the representation of a value may not fit on a line. I believe a current debugger

[issue42380] Build windows binaries with MS VS2019 16.8+ / MSVC 19.28+

2021-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Judging from the link you posted to version numbering https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering the first line should have 'MSVC 14.28' the middle column title should be 'MS Visual Studio'. Mark

[issue23544] IDLE hangs when selecting Stack View with debug active

2021-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 23a567c11ca36eedde0e119443c85cc16075deaf by Zackery Spytz in branch 'master': bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) https://github.com/python/cpython/commit/23a567c11ca36eedde0e119443c85c

[issue23544] IDLE hangs when selecting Stack View with debug active

2021-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 901a9834420e516c07d6cad356d2be481db6d8d1 by Miss Islington (bot) in branch '3.8': bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) (#24366) https://github.com/python/cpython/commit/901a9834420e516c07d6cad356d2be

[issue23544] IDLE hangs when selecting Stack View with debug active

2021-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I agree with you. The debugger is an execution controller with an optional current-frame viewer updated whenever execution is paused. It displays both name and value. I believe a current PR addresses the issue of value representations being

[issue23544] IDLE hangs when selecting Stack View with debug active

2021-01-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

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2021-01-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue30

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23194 pull_request: https://github.com/python/cpython/pull/24370 ___ Python tracker <https://bugs.python.org/issue43

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 11d75ec807f05eff1148c049e38b808d11c23b8a by Terry Jan Reedy in branch 'master': bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) https://github.com/python/cpython/commit/11d75ec807f05eff1148

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bf782b2636880dd634281f905ae43b8555450ee2 by Miss Islington (bot) in branch '3.9': bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) (#24374) https://github.com/python/cpython/commit/bf782b2636880dd63428

[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think you meant assertEqual(len(alist), len(set(alist))). I agree with others. -- nosy: +terry.reedy resolution: -> rejected stage: patch review -> resolved status: open -> closed type: -> enhancement versions:

[issue43034] Python tutorial misleads users about floor division behavior

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: -17/3 = -5.667 = -6.0 + .333. It is the latter fraction that gets discarded. However, this is a frequent source of confusion. How about adding >>> -17 // 3 -6 >>> -17 % 3 1 >>> -6 * 3 + 1 -17 to illus

[issue43039] tempfile.TemporaryDirectory() name string is incorrect

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Making str(td) == td.name does not seem useful. I think this should be closed as 'Not a bug', because it isn't. If changed to an enhancement request, reject as insufficiently warranted against the likely breakage. -- nos

[issue43042] Delete or merge redundant tutorial sentence.

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The sentence you quoted ends a paragraph that begins with a sentences saying the same thing even more clearly. "The execution of a function introduces a new symbol table used for the local variables of the function." I think the ending sentenc

[issue43048] Printing RecursionError results in RecursionError

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.9, exc.py produces for me Traceback (most recent call last): File "F:\Python\a\tem3.py", line 3, in f raise ValueError('hello') ValueError: hello During handling of the above exception, another exception occurred: Traceba

[issue43056] Use of dicts in 4.2 and 4.7 of Python tutorial a bit confusing

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: For 4.2, the point is the '.copy()' versus the 'active_users' copy. I think a real beginner would, or should, ignore any other details not immediately familiar. 4.7.2 Keyword arguments. It is simply a fact that including the f

[issue38307] Add .end_lineno attribute to pyclbr _Objects

2021-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 000cde59847beaf5fa7b73633e1f3c898fe5bf90 by Aviral Srivastava in branch 'master': bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348) https://github.com/python/cpython/commit/000cde59847beaf5fa7b73633e1f3c

[issue38078] IDLE: Don't run internal code in user namespace.

2021-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachery, thank you for the PR to test. It turns out that the proposed change is more dangerous the the possible error it prevent. I could have easily missed the problem (not setting __file__, see PR). Before considering this again, I need to list ways to

[issue43042] Delete or merge redundant tutorial sentence.

2021-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ramond, any opinion on this? We could just close this, but I consider either alternative enough of an improvement to write a PR and merge it. -- nosy: +rhettinger ___ Python tracker <https://bugs.python.

[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

2021-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE also caches shell input. Off topic here, I sent Andre an email about how FT could access it. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43135] Can't input Japanese on idle (MacOS).

2021-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change in 3.10 is installing tk 8.6.11 instead of 8.6.8. This would have been or would be backported if and only if Ned and Ronald think it both possible and wise. As with most tkinter issues, this affects IDLE but is not an IDLE issue as such. The

[issue43071] IDLE: Windows 7 - Trackpad two-finger vertical scrolling is not recognized

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python has nothing to do with interpreting finger movements. -- resolution: -> third party stage: -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker <https://bugs.python.or

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 is a few years old and only gets security fixes. Can you either test on current releases or whether code is still same? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue43

[issue43127] Unable to install Python 3.9.1 - Windows 10

2021-02-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue43

[issue43071] IDLE: Windows 7 - Trackpad two-finger vertical scrolling is not recognized

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue appears to be quite different from #34047. The latter partly involved two then recent tcl/tk versions known to still be buggy on Mac. It then determined to be directly a matter of how IDLE was interpreting the delta attribute of tk mousewheel

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

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

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0ec57e25c918b859b9f8d464e34e0ac859c2f8b3 by Terry Jan Reedy in branch 'master': bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) https://github.com/python/cpyth

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR is based on 'Note:...' directly above. I am still thinking about a patch for the namespace paragraph. -- nosy: -miss-islington stage: patch review -> needs patch ___ Python tracker <https:/

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 863eb7170b3017399fb2b786a1e3feb6457e54c2 by Miss Islington (bot) in branch '3.9': bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) https://github.com/python/cpyth

[issue43151] SyntaxWarning for 'is '

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that there are two discrepancies in IDLE versus the standard REPL on Windows with 3.10.0a5. The latter first (which does not converted warnings to errors). Python 3.10.0a4+ (heads/master:0332e569c1, Feb 1 2021, 09:19:58) [MSC v.1900 64 bit

[issue37824] IDLE: Handle Shell input SyntaxWarning & DeprecationWarning

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43151 asked about 'is ' syntax warnings in REPL. Discussion noted that IDLE Shell does note print it for "x is 'a'" (known here) and that for "if x is 'a': print('executed')" there is a syntax

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: webbrowser is 'generous' at to what browsers it will open, some of which are not what hardly anyone would want. So I would call this an 'enhancement' (really 'disenchantment', like all removals;-) unless there were a technical

[issue43163] codeop prematurely raises SyntaxError when ']' is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE is a Python program that wraps the Python interpreter. Before blaming IDLE for how code is executed, one should first execute the same code directly in Python. The example above shows that one should also try code.interact, especially for

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when ']' is needed -> codeop prematurely raises SyntaxError when closer is needed ___ Python tracker <https://bugs.pytho

[issue43163] codeop prematurely raises SyntaxError when closer is needed

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: test.test_codeop's test_incomplete is incomplete in that it tests several missing-closer single lines, like the above and "[x for x in (", all of which pass, but no corresponding multiple line snippets, like the above. The only multiple li

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: codeop prematurely raises SyntaxError when closer is needed -> codeop prematurely raises on 2nd line when closer is needed ___ Python tracker <https://bugs.python.org/issu

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issu

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the idea and Matthew's version. This continuing problem is worth doing experiments. I marked this as 'enhancement' and 3.10 only because this might break code that hardcodes the complete name. This might also, unfortunately,

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, the program title depends on what 'app' you start. I presume that this is normal for Mac. -- ___ Python tracker <https://bugs.python.o

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: A 300 KB file of unknown type that has to be downloaded and opened with an unknown program is pretty useless. Please state system/OS, exact Python release, command run, and copy-paste the errors here on the web page. I do not see test_embed or

[issue43163] codeop prematurely raises on 2nd line when closer is needed

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is for 3.10 only since the never-closed message was only added for 3.10.0a5 and not backported. Pablo, Is there any sane possibility that the compiler could, at least sometimes, raise an IncompleteSyntax subclass of SyntaxError when code is

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : Following-up on discussion in #43163 and PR-24483, this issue is limited to changes that are expected to not affect the return value. Therefore, do not backport unless and until needed as part of a bugfix. First is moving the code return to immediately

[issue43202] Cleanup codeop._maybe_compile

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

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2068b261e95e9fe9c4041f0102c9e931692dd5aa by Terry Jan Reedy in branch 'master': bpo-43202: Immediately return code object in codeop._maybe_compile (GH-24508) https://github.com/python/cpython/commit/2068b261e95e9fe9c4041f0102c9e9

[issue43202] Cleanup codeop._maybe_compile

2021-02-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +23298 pull_request: https://github.com/python/cpython/pull/24512 ___ Python tracker <https://bugs.python.org/issue43

[issue43042] Augment tutorial sentence.

2021-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/tutorial/controlflow.html#defining-functions I decided to augment the sentence as suggested by Jesse, and see what any reviewers think. -- assignee: docs@python -> terry.reedy nosy: -rhettinger title: Delete or me

[issue43042] Augment tutorial sentence.

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

[issue43209] system cannot find the file specified in subprocess.py

2021-02-12 Thread robert j richardson
New submission from robert j richardson : When using >python synth.py in the directory google-api-java-client-services-master python returns: synthtool > Cloning https://github.com/googleapis/discovery-artifact-manager.git. synthtool > Cleaning output directory. Traceback (most re

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Tkinter ___ Python tracker <https://bugs.python.org/issue43139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: When system? It appears to be some *nix. Is this a buildbot? Whose tcl/tk? Distributed with system or locally compiled? -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker <https://bugs.python.

[issue43140] built-in open() doesn't use locale.getpreferredencoding() as the default encoding

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eryk, are you suggesting that this should be closed as 'Not a bug'? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.o

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 and before only get security fixes. -- nosy: +davin, pitrou, terry.reedy versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue43

[issue43141] `asdict` fails with frozen dataclass keys, using raw dict form

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: On freshly compiled master on Win10, the example code gives "TypeError: unhashable type: 'dict'". -- nosy: +terry.reedy title: `asdict` fails with frozen dataclass keys; tries to use raw dict form as key -> `asdict` fails wit

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: After a week without response, I consider making a PR open to anyone. Whoever should add "Original patch by ..." in the message part. The patch is obvious enough that I would be willing to merge if no one else. -- keywords: +easy nosy: +t

[issue43145] Leak of locks from multiprocessing.Process

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue43145> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26389] Expand traceback module API to accept just an exception as an argument

2021-02-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/issue26389> ___ ___ Python-bugs-list mailin

[issue43146] 3.10a5 regression: AttributeError: 'NoneType' object has no attribute '__suppress_context__' in traceback.py

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It seems to me that print_exception(None), etc, *should* raise something. Printing "NoneType: None\n" makes no sense to me since NoneType is not an exception. In 3.9, it raised TypeError for # of arguments. I do note t

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: unraiseable hook is not needed. The REPL does: >>> sys.excepthook = lambda: None >>> 1/0 Error in sys.excepthook: TypeError: () takes 0 positional arguments but 3 were given Original exception was: Traceback (most recent call last): F

[issue43177] How to use `long double` as a PyObject?

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: You immediate questions are answered. Adding 128 bit floats to Python itself need a discussion on python-ideas and very likely a PEP. Maybe a decade? -- nosy: +terry.reedy resolution: -> postponed stage: -> resolved status: open -&g

[issue43182] TURTLE: Default values for basic Turtle commands

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Enhancements only go in future versions. -- nosy: +terry.reedy versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43

<    30   31   32   33   34   35   36   37   38   39   >