[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 full discussion here

[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: Traceback (most r

[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 sent

[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. -- nosy: +terry.reedy

[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

[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:

[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/bf782b2636880dd634281f905ae43b8555450ee2

[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/11d75ec807f05eff1148c049e38b808d11c23b8a

[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

[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

[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

[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
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/901a9834420e516c07d6cad356d2be481db6d8d1

[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/23a567c11ca36eedde0e119443c85cc16075deaf

[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 Shannon today posted

[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

[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

[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 and function

[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.

[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: New changeset 7a34380ad76f5ad50d4175ceb2d5715b8cff by Ken in branch 'master': bpo-43008: Make IDLE respect sys.excepthook (GH-24302) https://github.com/python/cpython/commit/7a34380ad76f5ad50d4175ceb2d5715b8cff

[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/a178473dd6a3b527a67ab3f9dc38ef8b1a60881a

[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/fd668bc62b7f6de95448344b6650e1c3c2a997fa

[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
Change by Terry J. Reedy : -- pull_requests: +23162 pull_request: https://github.com/python/cpython/pull/24343 ___ Python tracker <https://bugs.python.org/issue41

[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

[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 more difficult to fix

[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/26af2fae189629d22a87aaf01b92d6f4de92b958

[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: 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 instances of tkColorChooser, tkFileDialog

[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/879986d8a932c4524cb6ff822afc9537de16e28d

[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-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-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/63ebba0d9430a0bc18fd8551ad27b9b25709a4be

[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/8dfe15625e6ea4357a13fec7989a0e6ba2bf1359

[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: 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 priority. First

[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.org/issue43

[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
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 merge

[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 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: open -&g

[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 the options

[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, 'import

[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

[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

[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

[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 responsi

[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

[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-

[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 ___ Python tracker

[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

[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

[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: 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 an expert

[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

[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

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

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 644d52818a6391535e5838fd57d58ffcb1163056 by Борис Верховский in branch 'master': bpo-40304: Correct type(name, bases, dict) doc (GH-19553) https://github.com/python/cpython/commit/644d52818a6391535e5838fd57d58ffcb1163056 -- nosy

[issue42447] robotsparser deny all with some rules

2021-01-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your Linux result is the same as on Windows. Given strings 'abc' or 'abcd', ignore 'c' or 'cd' and expand 'ab' to 'abab', making value 0xabab. Is your computer Ubuntu (implying that personal Ubuntu != CI Ubuntu) or a different Linux? Are there tk/tcl

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: 65535 = 35536 - 1 = 256 * 256 - 1 == 255 * 257 On Windows, each r, g, b value is n * 257 for n in range(256) (see attached file). The precision loss happens when colors are stored, before the division in winfo_rgb. Perhaps 8 bits/channel (including alpha

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://www.tcl.tk/man/tcl8.6/TkCmd/winfo.htm says "winfo rgb window color Returns a list containing three decimal values in the range 0 to 65535, which are the red, green, and blue intensities that correspond to color in the window given by w

[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del

2021-01-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, would your proposal in PEP-651 fix this case? -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue42

[issue42916] Support for DICOM image file format in imghdr module

2021-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can you submit a patch, or post here an test_dicom function? -- nosy: +terry.reedy stage: -> needs patch ___ Python tracker <https://bugs.python.org/issu

[issue42889] Incorrect behavior after ast node visits

2021-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The parser is not involved here. The transformed code is *not* equivalent to "1=2; print(1)" because you replace 'a' with the string '1', not the int 1. The result is to transform "globals()['a']=2; print(globals()['a'])" to &quo

[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del

2021-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Xinmeng, to verify Ronald's explanation, run this instead mystr = "hello123" for x in range(100): mystr = mystr.__sizeof__() input('>') # Hit Enter to continue. del mystr # Expect crash here. input('<') # And never get here.

[issue42888] Not installed “libgcc_s.so.1” causes exit crash.

2021-01-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +C API -Interpreter Core title: Not installed “libgcc_s.so.1” causes parser crash. -> Not installed “libgcc_s.so.1” causes exit crash. ___ Python tracker <https://bugs.python.org/issu

[issue42885] Regex performance problem with ^ aka AT_BEGINNING

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

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In order to test code.InteractiveCompiler (used by IDLE) and codeop._maybe_compile (which IC calls), which calls compile() 3 times with mode 'single', I entered the example as 2 or 3 lines in Shell. >>> [file for str(file) in [] # Error highli

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, Victor's one liner failed on repository debug builds with Windows' process error popup. I have seen this mysterious failure at least once when testing IDLE Shell running on the repository build. After the patch, my debug build gives

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: With a truly minimal but reproducible example, I was able to understand and experiment. As is, widget creation is done without the event loop running. Displaying the message box shifts grabs the internal focus but also displays the unfocused tk window

[issue33065] IDLE debugger: failure stepping through module loading

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

[issue33065] IDLE debugger: failure stepping through module loading

2021-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 81f87bbf9f65702062021a78abd9b8f82c98a414 by Terry Jan Reedy in branch 'master': bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183) https://github.com/python/cpython/commit/81f87bbf9f65702062021a78abd9b8f82c98a414

[issue33065] IDLE debugger: failure stepping through module loading

2021-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am reluctant to make changes without adding tests, and until I focused again on how to do so, because of your ping, I had no idea how to do so. The added test results in the same error, "AttributeError: 'BinData' object has no attribute 'length'&quo

[issue33065] IDLE debugger: failure stepping through module loading

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

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2021-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Phillipe: I was the first to comment, but had no futher involvement with this issue until now. Multiple people, including coredevs, considered the old behavior to be buggy and multiple people, including coredevs, contributed to the fix. You are unlikely

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: No problem. While your failing example was 'too long', you *did* search and find the appropriate previous issue, with my inadequate response and incorrect resolution, even though closed. I appreciate having my understanding fixed. IDLE uses several entry

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added this note to #9673 after rereading the posts and the 2010 tkinter list thread. "My testing was inadequate. From #42867, it appears that 0. the bug is limited to Windows; 1. opening a canned dialog or message box is part of getting the

[issue9673] Entry Widget Not Editable under Windows XP with dialog call.

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: My testing was inadequate. From #42867, it appears that 0. the bug is limited to Windows; 1. opening a canned dialog or message box is part of getting the buggy behavior; 2. timing is involved; 3. the bug can be exhibited on Windows directly with wish/tk

[issue42849] pool worker can't be terminated

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 has not gotten bug fixes for a couple of years. This needs to be verified on a current release. -- nosy: +davin, pitrou, terry.reedy ___ Python tracker <https://bugs.python.org/issue42

[issue42820] Sphinx conf.py needs_version entry is outdated

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is related to #42843, which is about deciding what the min sphinx should be. Since the alternative to 3.2 is some 2.x, 1,8 is certainly wrong. -- nosy: +terry.reedy ___ Python tracker <ht

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The PR says that this deletes "uncalled code". I imagine that this is safe for a .exe. But for a .dll? As i understand it, one can, from python code, access any function via ctypes, so it seems to me that there is no way for the linker to

[issue42820] Sphinx conf.py needs_version entry is outdated

2021-01-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +mdk ___ Python tracker <https://bugs.python.org/issue42820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42812] @overload-ing method of parent class without actual implementation

2021-01-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +gvanrossum, levkivskyi ___ Python tracker <https://bugs.python.org/issue42812> ___ ___ Python-bugs-list mailing list Unsub

[issue42807] smtplib send_message should gives more clear exception if the msg is None

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not familiar with either smtp or email, but I can make some general comments. 1. "AttributeError: 'NoneType' object has no attribute 'get_all'" seems pretty straightforward to me. Hard to debug? Depends on knowledge and experience. When c

[issue42712] Segmentation fault in running ast.literal_eval() with large expression size.

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed the following by Xinmeng as duplicates of this: #42713 eval(...) #42714 compile(...) #42715 exec(...) #42716 ast.parse(...) This is probably a duplicate of #42609, and should likely be closed also. -- nosy: +terry.reedy

[issue42746] python3.7.3 - ssl.SSLContext() - "Killed"

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7.3 is an old release of an old version. It has already been patched a few times. If you cannot upgrade to at least the last bugfix release of 3.7, you are somewhat on your own. The word 'Killed' in not in the ssl module, so I presume it comes from

[issue42831] IDLE fix colours for MacOS dark mode

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This might be related to #7949, about KDE/GTK dark themes. In general, IDLE only controls colors for Shell and editor windows, leaving dialogs to system default. This appears to be true for the settings and search dialogs. 'About' is unusual in having some

[issue32631] IDLE: revise zzdummy.py

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

[issue32631] IDLE: revise zzdummy.py

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a087a97438e922fcace357ff4c29806ff65838d8 by Terry Jan Reedy in branch '3.8': [3.8] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491) https://github.com/python/cpython/commit/a087a97438e922fcace357ff4c29806ff65838d8

[issue32631] IDLE: revise zzdummy.py

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/65567057/how-can-i-get-started-developing-extensions-for-python-idle prompted me to finish this enough to merge it. My intention was that in the absence of a selection, all lines should be prefixed, not just the current

[issue32631] IDLE: revise zzdummy.py

2021-01-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22945 pull_request: https://github.com/python/cpython/pull/24115 ___ Python tracker <https://bugs.python.org/issue32

[issue32631] IDLE: revise zzdummy.py

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d82392facefe0564dd55aa2adf04bf21c704858d by Terry Jan Reedy in branch '3.9': [3.9] bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491) https://github.com/python/cpython/commit/d82392facefe0564dd55aa2adf04bf21c704858d

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that this issue is done. Please open a new one if more is needed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42508] macOS IDLE with Tk 8.6.10 in 3.9.1rc1 universal2 installer fails smoke test

2021-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d05b470d6ad6dfe0d4933ffc3c5c1e2c03b390bd by Miss Islington (bot) in branch '3.8': bpo-42508: Keep IDLE running on macOS (GH-23577) (#23670) https://github.com/python/cpython/commit/d05b470d6ad6dfe0d4933ffc3c5c1e2c03b390bd

[issue32631] IDLE: revise zzdummy.py

2021-01-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22944 pull_request: https://github.com/python/cpython/pull/24114 ___ Python tracker <https://bugs.python.org/issue32

[issue32631] IDLE: revise zzdummy.py

2021-01-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e40e2a2cc94c554e7e245a8ca5a7432d31a95766 by Cheryl Sabella in branch 'master': bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491) https://github.com/python/cpython/commit/e40e2a2cc94c554e7e245a8ca5a7432d31a95766

[issue42804] Unable to compile the cpython code x86 windows

2021-01-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From the evidence presented, the problem building 3.8 on Win 10 is not with >our build code. I therefore believe that this should be closed as '3rd-party' >and that Sunny should inquire on python-list about the permission problem. >Howev

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> commit review versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issu

[issue42735] "trace_at_recursion_limit.py" should be removed from "Python/Lib/test/crashers"

2020-12-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issue42735> ___ ___ Python-bugs-list m

[issue42733] io's r+ mode truncate(0)

2020-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Enhancements" (non-bugfix feature changes) can only be applied to future versions. However, you are asking for the reversion of an intentional feature change made in a 'bugfix' release# for (I believe) 3.1. Before the change, as I remember,

<    7   8   9   10   11   12   13   14   15   16   >