[issue23469] Delete Misc/*.wpr files
Terry J. Reedy added the comment: Since the files have effectively been abandoned, I think removing them should be considered now. The three files in /Misc, for wing-3, 4, and 5, are python-wing3.wpr python-wing4.wpr python-wing5.wpr The current version of Wing is 8.1.1. The files were last edited in March 2011, a decade ago, by M. Foord. The last contains #!wing #!version=5.0 ## # Wing IDE project file # ## [project attributes] proj.directory-list = [{'dirloc': loc('..'), 'excludes': [u'.hg', u'Lib/unittest/__pycache__', u'Lib/unittest/test/__pycache__', u'Lib/__pycache__', u'build', u'Doc/build'], 'filter': '*', 'include_hidden': False, 'recursive': True, 'watch_for_changes': True}] proj.file-type = 'shared' *4.* is the same except for the version comment. Both are specialized for working with Lib/unittest, failing to exclude most of the other __pycache__ directories. I wonder whether current Wing now knows that it should ignore __cache__ directories. (I considered emailing supp...@wingware.com, but decided to wait.) In the absence of more comments, we could inquire on python-dev. In 2019, these .ini-format configuration data files were marked as executable scripts. I believe that this was a mistake. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue23469> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23469] Delete Misc/*.wpr files
Terry J. Reedy added the comment: url: https://github.com/python/cpython/blob/main/Misc/python-wing5.wpr -- ___ Python tracker <https://bugs.python.org/issue23469> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys
Terry J. Reedy added the comment: IDLE is a tkinter application and tkinter wraps the tcl/tk GUI framework. Your problem is mostly in the interaction between Windows, your Cyrillic input method, and tk. As a test, run import tkinter as tk r = tk.Tk() t = tk.Text(r) t.pack() Click in the box, type something, and try Ctrl-X, -C, -V. If they work, we can add explicit bindings somewhat similar to those IDLE makes. Also, how do you make your keyboard a Cyrillic keyboard. EP, are you aware of any related tk issues? Serhiy, do you know of any specific problems with Cyrillic and tkinter/tk? -- assignee: terry.reedy -> components: +Tkinter nosy: +epaine, serhiy.storchaka title: Ctrl+C, Ctrl+V in IDLE on Windows do not work with Cyrillic keyboard layout -> Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys ___ Python tracker <https://bugs.python.org/issue46052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46052] Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys
Terry J. Reedy added the comment: It appears that your particular keyboard program is translating Ctrl + letter key combinations to something other than the default Ascii Control-letter code. Do you see the same problem with Notepad? To test what tcl/tk and hence tkinter see, expand the test code to import tkinter as tk r = tk.Tk() t = tk.Text(r) t.pack() def keyevent(e): if c := e.char: print(f'char: {c}, ord: {ord(c)}, ', end='') print(f'code: {e.keycode}, sym: {e.keysym}, num: {e.keysym_num}.') t.bind('', keyevent) If I type c and ctrl + c in the tk box, I see the following in either the IDLE Shell or Command Prompt. char: c, ord: 99, code: 67, sym: c, num: 99. code: 17, sym: Control_L, num: 65507. char: , ord: 3, code: 67, sym: c, num: 99. I expect the third line will be different for you when you switch to Russian. Your immediate fix is to use either the IDLE Edit menu or the right-click context menu to access copy and paste functions. A longer term fix might be to get a different Russian keyboard program. Assuming that I am correct above, I will make this an IDLE doc issue to add something about non-ascii keyboard issues, and include the test program above. -- title: Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys -> Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys ___ Python tracker <https://bugs.python.org/issue46052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46052] Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys
Terry J. Reedy added the comment: This is a duplicate of #31244, but I continue here with more experiments using the code above. I first confirmed that on Windows, CapsLock is really 'caps inversion. Keycode 67 is the keycode for 'C' given in https://www.tcl.tk/man/tcl/TkCmd/keysyms.html (Ascii keyboards have the capitals on keycaps), but the chars 'c' and 'C', without and with shift, are 4 different events. char: c, ord: 99, code: 67, sym: c, num: 99. code: 16, sym: Shift_L, num: 65505. char: C, ord: 67, code: 67, sym: C, num: 67. code: 20, sym: Caps_Lock, num: 65509. char: C, ord: 67, code: 67, sym: C, num: 67. code: 16, sym: Shift_L, num: 65505. char: c, ord: 99, code: 67, sym: c, num: 99. Next, the same keypresses with Ctrl added. At least on Windows, Ctrl+c, Shift+Ctrl+c, Ctrl+C, and Shift+Ctrl+C are different events that have the same Ascii code but are differentiated by the key sym that would have been generated without the control modifier and the state of the Shift key. (Note, for instance, that on the file menu, the addition of 'Shift' modifies 'Save' to 'Save as'). code: 17, sym: Control_L, num: 65507. char: , ord: 3, code: 67, sym: c, num: 99. code: 17, sym: Control_L, num: 65507. code: 16, sym: Shift_L, num: 65505. char: , ord: 3, code: 67, sym: C, num: 67. code: 20, sym: Caps_Lock, num: 65509. code: 17, sym: Control_L, num: 65507. char: , ord: 3, code: 67, sym: C, num: 67. code: 17, sym: Control_L, num: 65507. code: 16, sym: Shift_L, num: 65505. char: , ord: 3, code: 67, sym: c, num: 99. I loaded the Win 10 Russian package. Repeating the no-ctrl block, we get the Cyrillic с and С. The keysym field is '??' instead of the char because non-ascii letters are not valid as keysyms. The keysym_num field is correct as if the keysym were the non-ascii letter. char: с, ord: 1089, code: 67, sym: ??, num: 1089. code: 16, sym: Shift_L, num: 65505. char: С, ord: 1057, code: 67, sym: ??, num: 1057. code: 20, sym: Caps_Lock, num: 65509. char: С, ord: 1057, code: 67, sym: ??, num: 1057. code: 16, sym: Shift_L, num: 65505. char: с, ord: 1089, code: 67, sym: ??, num: 1089. With Ctrl added, the generated character is still ascii 3, control-C and the keycode is still 67. But the keysym and keysym_num are changed and they no longer match neither ascii 'c' or 'C'. So the event matches neither the control-c or control-C events and the copy event is not invoked. code: 17, sym: Control_L, num: 65507. char: , ord: 3, code: 67, sym: ??, num: 1089. code: 17, sym: Control_L, num: 65507. code: 16, sym: Shift_L, num: 65505. char: , ord: 3, code: 67, sym: ??, num: 1057. code: 20, sym: Caps_Lock, num: 65509. code: 17, sym: Control_L, num: 65507. char: , ord: 3, code: 67, sym: ??, num: 1057. code: 17, sym: Control_L, num: 65507. code: 16, sym: Shift_L, num: 65505. char: , ord: 3, code: 67, sym: ??, num: 1089. The workaround considered in #31244 was to add key-x bindings specific to a particular Windows IME. But this does not work as key sequences only allow ascii alphanumerics as keysyms. (See https://www.tcl.tk/man/tcl8.6/TkCmd/bind.html, event details.) There are non-ascii letter descriptions, such as 'Cyrillic_es' listed in https://www.tcl.tk/man/tcl/TkCmd/keysyms.html, but I suspect that these only work for native keyboards, with the non-ascii chars on the keycaps, that generate the keycodes specific to each key as listed in that doc. Cyrillic_es has keycode 1747, not 67. When I tried binding '' there was no TclError, but a Russian es, 'с' or 'С', did not invoke the handler. Instead of expanding keybindings, we should consider collapsing events to undo the IME translation. '??' is not a valid keysym, so there seems to be no generic 'non-Ascii IME letter' event. But we could try replacing the keysym with the ascii char that would have been there if there were no IME. The problem is that modifying the python event will not change the tk event. Nor can it be used with event_generate. Rather it has to be turn back into 'sequence' string, taking into account the .state attribute. Automated testing would be done by calling the key event handler with a synthesized Event instance. EP: Since Key-X, where x is a non-ascii char, in not a legal sequence and cannot be bound to anything, it seems reasonable to ask that tk itself translate control key events into bindable control sequences. They might object that this would break any code that catches '??' events in generic key handlers to do something language specific. But perhaps they could add a non-default option. -- assignee: -> terry.reedy stage: -> test needed versions: +Python 3.11 -Python 3.9 ___ Python tracker <https://bugs.python.org/issue46052>
[issue31244] IDLE: work around shortcuts bug in Windows' IMEs and tk
Terry J. Reedy added the comment: What makes IDLE different from other desktop apps is that is it written in Python, uses the tkinter wrapping of cross-platform tcl/tk, and allows users to customize nearly all hotkey shortcuts. But tk only allows Ascii chars, with modifiers, for hotkeys. This issue would be much easier if IDLE had a fixed set of bindings, or even a fixed set for each major platform. Issue 46052 is a duplicate of this. In experiments reported there, using the Win10 Russian IME, I determined that the event.char for a Ctrl + letter-key combination is the corresponding Ascii control character, even when switched to Russian. The difference is that event.keysym is '??' instead of an ascii letter and event.keysym_num is the unicode ordinal of the russian letter instead of the ascii letter. So ('c', 99) becomes ('??', 1089). I propose on #46052 to solve these issues by undoing this change and generating the event that would have happened in ENG mode. -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys ___ Python tracker <https://bugs.python.org/issue31244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows
Terry J. Reedy added the comment: I closed #31244 as a duplicate of this. The modifier code for tkinter.Event.__repr__ can be used to construct the modifier part of the reconstructed event sequence. Just join with '-' instead of '|'. -- title: Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys -> IDLE: make Ctrl,Alt + IME non-ascii letter work on Windows ___ Python tracker <https://bugs.python.org/issue46052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows
Terry J. Reedy added the comment: Thank you Eryk. The X/Ubuntu behavior is what I want to simulate. I can only wonder why tk has not fixed that for non-X systems. Are Alt+letter combinations also fixed on Ubuntu, so that, for instance, Alt+M-key is seen as Alt-M even with Russian layout? -- ___ Python tracker <https://bugs.python.org/issue46052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue30716> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?
Terry J. Reedy added the comment: This is not an IDLE issue, as IDLE merely calls tkinter.filedialog.SaveAS(args).show() and uses the returned path to open and write the file. This is likely not a tkinter issue either, but I will leave it open for now for others to comment. SaveAs subclasses _Dialog, which subclasses tkinter.commondialog.Dialog. For SaveAs .show calls tk_getSaveFile. This "pops up a dialog box for the user to select a file to save" and returns a full path or "". https://www.tcl.tk/man/tcl8.6/TkCmd/getOpenFile.html makes little promise about the dialog. On Windows, it opens a standard system SaveAs dialog, which allows directory navigation and creation. On macOS it opens a macOS dialog. I don't know about other systems. You might want to ask or python-list or idledev list about the experience of others with newer Python versions. -- assignee: terry.reedy -> components: +Tkinter -IDLE nosy: +serhiy.storchaka title: In IDLE, 'File > Save As' seems not to allow creation of a new folder -> tkinter.filedialog.SaveAs: create new folder on Ubuntu? ___ Python tracker <https://bugs.python.org/issue46062> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44413] OverflowError: mktime argument out of range after 2019
Terry J. Reedy added the comment: Thank you both. Status: Failures on Open Suse TW (Vyacheslav) and Ubuntu 20-04 (Daniel McDonald, Github Actions, and Azure Pipelines). Success on Windows (me), macOS (Catalina-me and 11.6.1-DM), Centos 7.9 and Ubuntu 18-04 (both DM) I verified that the sample tuple is consistent and round-trips with time.localtime. >>> import time >>> time.mktime((2017,5,26,15,30,16,4,146,1)) 1495827016.0 >>> time.localtime(time.mktime((2017,5,26,15,30,16,4,146,1))) time.struct_time(tm_year=2017, tm_mon=5, tm_mday=26, tm_hour=15, tm_min=30, tm_sec=16, tm_wday=4, tm_yday=146, tm_isdst=1) While OverflowError is documented as a legitimate response, it is not for a contemporary valid datetime such as the above. Someone with a failure machine could try to determine what tuple vales do and don't result in the error. Someone with both failure and success machines could add debug prints to mktime (or use C debugger) to see where the behavior of the C code diverges on the two machines. If no one active on the issue can do either, a request could be made for help on python-list. -- ___ Python tracker <https://bugs.python.org/issue44413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46117] tk could not refresh auto in mac os
Terry J. Reedy added the comment: IDLE is neither the Python it is written it, nor the tkinter module it depends on. For this tracker, this is at most a tkinter on macOS 12 issue. But I suspect that it is an issue of the 3rd party tcl/tk on the new macOS version. There have been others. Perhaps someone else can test on earlier macOS. (I verified that the code works as intended on Win 10 with Tk 8.6.12.) I am not sure of your intention in half-closing this issue. But, does adding 'root.update_idletasks()' to the end of 'change' make any difference? -- assignee: terry.reedy -> components: +Tkinter, macOS -IDLE nosy: +epaine, ned.deily, ronaldoussoren, serhiy.storchaka status: pending -> open ___ Python tracker <https://bugs.python.org/issue46117> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20741] Documentation archives should be available also in tar.xz format
Terry J. Reedy added the comment: https://docs.python.org/3/download.html says a) tar.bz2 can be read by the tar program, which I presume is true also of tar.xz. So there is no issue of *needing* two separate programs. It also claims "The .tar.bz2 archives provide the best compression and fastest download times." This only need be true, if it is, for the doc formats, as opposed to python code. In the absence of at least 2 requests from *nix consumers of the archives, why even think of changing? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue20741> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46051] Make @atexit.register work for functions with arguments
Terry J. Reedy added the comment: You might post on python-ideas list to get comments from other possible users. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46051> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44896] AttributeError in ast.unparse
Terry J. Reedy added the comment: #46073 may be a duplicate of this and perhaps should have the same resolution. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue44896> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46103] inspect.getmembers will call the instance __bases__ attribute, which may cause an exception
Terry J. Reedy added the comment: PR edits inspect._getmembers. I nosied people who have edited it previously. -- nosy: +ethan.furman, ping, pitrou, terry.reedy ___ Python tracker <https://bugs.python.org/issue46103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46103] inspect.getmembers will call the instance __bases__ attribute, which may cause an exception
Change by Terry J. Reedy : -- nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue46103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash
Terry J. Reedy added the comment: Windows, IDLE, 3.10.1: compile("-"*300 + "4", '', mode) crashes execution process for any of 'exec', 'eval', 'single'. #42609 is also about 'too high' string multiplication with new compilet, though the exact breaking point in crash dumps seems different. -- nosy: +pablogsal, terry.reedy title: `eval("-"*300 + "4")` in cmd causes hard crash -> compile("-"*300 + "4", '', mode) causes hard crash ___ Python tracker <https://bugs.python.org/issue46110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46117] tk could not refresh auto in mac os
Terry J. Reedy added the comment: The macOS system tk, 8.5.9, is over a decade old and buggy. python.org python now always uses the recent 8.6 version included with the installer. -- ___ Python tracker <https://bugs.python.org/issue46117> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46051] Make @atexit.register work for functions with arguments
Terry J. Reedy added the comment: Yes, that is the list. Serhiy, can you comment on using atexit.register and classmethod decorators together? Or suggest someone else? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46051> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44413] Improvement mktime error reporting
Terry J. Reedy added the comment: Daniel, I believe your proposal is an enhancement request that could only be implemented in a future version. I changed headers accordingly. I leave it to Christian or someone else to evaluate the request itself. -- title: OverflowError: mktime argument out of range after 2019 -> Improvement mktime error reporting type: behavior -> enhancement ___ Python tracker <https://bugs.python.org/issue44413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43424] Document the `controller.name` field in `webbrowser` module
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg408987 ___ Python tracker <https://bugs.python.org/issue43424> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43424] Document the `controller.name` field in `webbrowser` module
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file50506/images (5).jpeg ___ Python tracker <https://bugs.python.org/issue43424> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43424] Document the `controller.name` field in `webbrowser` module
Change by Terry J. Reedy : -- pull_requests: -28440 ___ Python tracker <https://bugs.python.org/issue43424> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43424] Document the `controller.name` field in `webbrowser` module
Terry J. Reedy added the comment: Zach, gaurawgoshwami is a spammer. Deleted added nosy, unlinked spam file and unrelated PR. I have no idea what 'repository containing patch' means or how g. created link to non-existent? file. -- nosy: -asvetlov, barry, dstufft, eric.araujo, ezio.melotti, gaurawgoshwami, koobs, lys.nikolaou, mrabarnett, ned.deily, pablogsal, paul.moore, r.david.murray, ronaldoussoren, steve.dower, tim.golden, vstinner, yselivanov ___ Python tracker <https://bugs.python.org/issue43424> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46146] Python IDLE fails to start (tk font issue?)
Terry J. Reedy added the comment: (This is behavior, not crash issue, as the latter is when there is no traceback.) The editor code was added 3 years ago in #37929, PR-15452, to correct using the configured char width after font and window size changes make that invalid. It is based on https://www.tcl.tk/man/tcl8.6/TkCmd/text.html#M21 "If the font does not have a uniform width then the width of the character “0” [zero] is used in translating from character units to screen units." The implies that said char width is non-zero. It would seem like a font bug if not. This is first report I know of where width is 0. The current code implements this as zero_char_width = \ Font(text, font=text.cget('font')).measure('0') Matej, what OS and font gives this error? Please run the following, also uploaded, with the offending font, replacing the name I used. import tkinter as tk from tkinter.font import Font r = tk.Tk() t = tk.Text(r, font=('Source Code Pro', 10, 'normal')) t.pack() s = '0oO !*}' t.insert('1.0', s) # Only to check that all above is valid. for c in s: print(Font(t, font=t['font']).measure(c)) For fixed 10 pitch Source Code Pro, all widths are 8. --- We could, of course, catch ZeroDivisionError, but when then? This is why I want to know what OS, font, and a test with multiple characters. On possibility is to check whenever font is set, but still, what then? -- nosy: +taleinat type: crash -> behavior versions: +Python 3.11 -Python 3.8 Added file: https://bugs.python.org/file50507/tem.py ___ Python tracker <https://bugs.python.org/issue46146> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46146] Python IDLE fails to start (tk font issue?)
Terry J. Reedy added the comment: On a system where IDLE will not start, the code has to be run directly with 'python3', however that is done there. One will need to add the line 'r.mainloop()' at the end of the script to see the tk window. However, this is not needed to see the printed width results. What tcl/tk version do you distribute? Is the person seeing the bug using that? Add "print(tk.call('info', 'patchlevel'))" to see. I presume that when IDLE worked for you, you used the default font. Specific tests to run: python3 -m test -ugui test_tk test_tcl test_ttk_guionly test_ttk_textonly test_idle -- ___ Python tracker <https://bugs.python.org/issue46146> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46146] Python IDLE fails to start (tk font issue?)
Terry J. Reedy added the comment: Serhiy: Matej Cepl (SUSE) asks about tk and Wayland switch. Do you know anything? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46146> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46146] Python IDLE fails to start (tk font issue?)
Change by Terry J. Reedy : -- nosy: +epaine, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46146> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4079] urllib.requst.Request 'timeout' attribute needs to have a default
Terry J. Reedy added the comment: urllib2 became urllib.request in 3.x. In 2.6, 'timeout' became a parameter of both urlopen and OpenerDirector.open. In both cases the default was and is the 'global default timeout setting'. So 'timeout' has a default. Both functions take a Request object in lieu of a url. I see no indication that the Request object itself ever has a timeout attribute, at least not in .__init__. It certainly does not now. It seems that the idea was that timeouts are a property of an open action, not of the reusable Request object that wraps a url. CacheFTPHandler.setTimeout() is for FTP handlers. So it seems that this should be closed as either 'not a bug' or 'out of date'. -- nosy: +terry.reedy title: new urllib2.Request 'timeout' attribute needs to have a default -> urllib.requst.Request 'timeout' attribute needs to have a default versions: +Python 3.11 -Python 3.4 ___ Python tracker <https://bugs.python.org/issue4079> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2756] urllib2 add_header fails with existing unredirected_header
Terry J. Reedy added the comment: Bug needs to be verified on 3.10 or 3.11. -- nosy: +terry.reedy versions: +Python 3.10, Python 3.11 -Python 2.6, Python 2.7 ___ Python tracker <https://bugs.python.org/issue2756> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2756] urllib.request.add_header fails with existing unredirected_header
Change by Terry J. Reedy : -- title: urllib2 add_header fails with existing unredirected_header -> urllib.request.add_header fails with existing unredirected_header ___ Python tracker <https://bugs.python.org/issue2756> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46126] Unittest output drives developers to avoid docstrings
Terry J. Reedy added the comment: I also use comments in lieu of docstrings for text_xyx methods because I find the addition of the first line of the docstring in error reports to be useless, distracting, and sometimes, depending on the content, confusing. If the error is in the test method, the full comment is available when looking back at the method code. If the error is in the tested code, the comment/docstring is inapplicable. When I edit test files, I run them directly from an IDLE editor via the 'if __name__' clause. When I run all IDLE tests from Command Prompt, I usually run 'python -m test.test_idle'. (Similar but not necessarily identical to 'python -m -ugui test_idle'.) So fiddling with regrtest will not help in either case. Based on the above, the following seems to work. runner = unittest.TextTestRunner(descriptions=False, verbosity=2) unittest.main(testRunner=runner) I am not sure what passing a runner does, versus leaving the default None, but the verbosity passed to the runner overrides and verbosity argument passed to main. What I would like is 'descriptions' added as a parameter to main, so that unittest.main(descriptions=False, verbosity=2) would work. -- nosy: +terry.reedy -eric.araujo ___ Python tracker <https://bugs.python.org/issue46126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46166] Get "self" args or non-null co_varnames from frame object with C-API
Terry J. Reedy added the comment: Pablo, Mark: I am guessing that at least one of you know about this. -- nosy: +Mark.Shannon, pablogsal, terry.reedy ___ Python tracker <https://bugs.python.org/issue46166> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46172] [doc] Outdated description of `license` object
Terry J. Reedy added the comment: On Windows, with the python.orgs 3.9.9, 3.10.1, and 3.11.0b3 installers, 'licence' displays the documented text. Ditto for all 3 build from repository. Ditto for 3.10.1 on Mac. The behavior is set, I believe, in site.py, so your system ignored the doc. What are you running on? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46172> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46174] Feature Request for Python Interfaces
Terry J. Reedy added the comment: (IDLE does not support typing.Protocol classes, because no one has proposed that it do so, let alone submit a patch.) A new keyword requires a PEP that specifies the syntax for an 'interface' statement and what such a statement would do. You should start with discussion on the python-ideas list. This should probably be closed until there is a concrete proposal that could be evaluated and possibly implemented or rejected. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46174> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46126] Unittest output drives developers to avoid docstrings
Change by Terry J. Reedy : -- nosy: +eric.araujo ___ Python tracker <https://bugs.python.org/issue46126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46177] can't install launcher for all users
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file50521/Annotation 2021-12-25 165843.png ___ Python tracker <https://bugs.python.org/issue46177> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46177] can't install launcher for all users
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg409173 ___ Python tracker <https://bugs.python.org/issue46177> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka stage: -> test needed type: crash -> behavior versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue46180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab
Terry J. Reedy added the comment: Win10, Py 3.11: run combobug.py, click down arrow, click entry. 'changed' is printed to stdout (console or IDLE Shell). Cursor not visible and clicking on remaining entry box does nothing. Click on another window and back to entry box. Cursor is present in box and clicking keys enters characters. I am not sure is this is tkinter bug or tk 8.6.12 bug or program bug. On Windows, .focus_force is often needed to get focus properly. I may be seeing same thing with IDLE entry boxes, but have not investigated thoroughly yet. -- nosy: +epaine, serhiy.storchaka, terry.reedy ___ Python tracker <https://bugs.python.org/issue46181> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46206] Crash when editing emoji containing strings
Terry J. Reedy added the comment: On Win10 command prompt, 😀 is initially displayed as 2 boxes, subsequently as box-space. Besides this, editing works fine and when Entered, the string is echoed. -- nosy: +pablogsal, terry.reedy ___ Python tracker <https://bugs.python.org/issue46206> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46213] webbrowser.open doesn't work in Termux
Terry J. Reedy added the comment: https://termux.com/ "Termux is an Android terminal emulator [on Android] and Linux environment app" I don't believe that core devs (and b.p.o.) support running Python on Android. If so, this should be closed here and your question redirected to whoever supplied your Android python installer. They might just say that Termux is not a supported terminal. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46213> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46217] 3.11 build failure on Win10: new _freeze_module changes?
New submission from Terry J. Reedy : Installed 3.11.0a3 was built Dec 8 2021, 22:56:33. My corresponding repository build is a bit older than that. Rebuilding now I get fileutils.c ..\Python\fileutils.c(2132): error C2065: 'PATHCCH_FORCE_ENABLE_LONG_NAME_PROCE SS': undeclared identifier [f:\dev\3x\PCbuild\_freeze_module.vcxproj] I have likely seen this before today but mistook the error message for a warning and did not check the respository build date. 3.9 and 3.10 just update normally, so unique to 3.11 and apparently new freeze changes. -- components: Build messages: 409445 nosy: terry.reedy priority: normal severity: normal status: open title: 3.11 build failure on Win10: new _freeze_module changes? versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46217] 3.11 build failure on Win10: new _freeze_module changes?
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue46217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash
Terry J. Reedy added the comment: Does python_startup benchmark start with all modules parsed and __pycache__d, or with no cache, so it includes the normally one-time parse time? -- ___ Python tracker <https://bugs.python.org/issue46110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab
Terry J. Reedy added the comment: >From what I understand, this issue is about a somewhat esoteric tk-design or >program bug and should be closed as either 'not a bug' or '3rd-party'. -- ___ Python tracker <https://bugs.python.org/issue46181> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46280] About vulnerabilities in Cpython native code
Terry J. Reedy added the comment: Last I knew, CPython C code is a) regularly scanned by Valgrind and b) Valgrind is somehow informed as to false positives to not report. But I know none of the details. So I suggest you look into this and how to not report the same false positives. I suggest working with the 'main' branch (future 3.11) as nearly all patches are applied there first and backported as appropriate. Infer is a facebook github project, used by by other big corps and projects, so it may be worthwhile working with if false positives can be suppressed. -- nosy: +terry.reedy versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue46280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46217] 3.11 build failure on Win10: new _freeze_module changes?
Terry J. Reedy added the comment: Let me be clearer. This bug prevents me from building main (3.11) to test anything with a proper up-to-date 3.11 binary. So to me this is highest priority. Is this just my machine or every Windows system? How are CI and buildbots rebuilding and running? Is there some workaround I need to add? Use newer VC (and change devguide)? -- priority: normal -> release blocker stage: -> backport needed type: -> compile error ___ Python tracker <https://bugs.python.org/issue46217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46220] imaplib.py "select" mailbox names containing spaces.
Terry J. Reedy added the comment: I presume you mean the mailbox parameter of imaplib.IMAP.select(). https://docs.python.org/3/library/imaplib.html#imaplib.IMAP4.select IMAP4.select(mailbox='INBOX', readonly=False) Select a mailbox. Returned data is the count of messages in mailbox (EXISTS response). The default mailbox is 'INBOX'. If the readonly flag is set, modifications to the mailbox are not allowed. Enhancements only go into future releases. Please make sure that the current main branch does not have the feature you are requesting. Neither our doc nor https://datatracker.ietf.org/doc/html/rfc2060.html contain '2822', so you might be requesting something not supported. There is no active maintainer for this module, so response from someone familiar with imaplib may take awhile. -- nosy: +terry.reedy versions: +Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue46220> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46223] asyncio cause infinite loop during debug
Change by Terry J. Reedy : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue46223> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42209] Incorrect line reported in syntax error
Terry J. Reedy added the comment: Arian-f's new issue is #46237. -- nosy: +terry.reedy superseder: -> Incorrect line reported in syntax error ___ Python tracker <https://bugs.python.org/issue42209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46237] Incorrect line reported in syntax error
Terry J. Reedy added the comment: Since #42209 was closed, a new issue seems OK. As a result of the incorrect line number, IDLE highlights one of the opening quotes on line 1. -- nosy: +pablogsal, terry.reedy -eric.smith versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue46237> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46237] Incorrect line reported in syntax error
Change by Terry J. Reedy : -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue46237> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46282] print() docs do not indicate its return value
Terry J. Reedy added the comment: How about following "The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order." in https://docs.python.org/3/library/functions.html with "Here and elsewhere in these docs, entries for functions (including methods) that always return None usually omit 'Return None' and just say what the function does." Barry: The PEP 8 'return None' recommendation could be added to the Reference entry for 'return'. But I think this should be a separate issue as 1) it is about coding rather than documentation and 2) there is the possible objection that choosing completely explicit 'return None' versus half explicit, half implicit 'return' and the latter versus completely implicit should be left to the style PEP. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46282> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46217] 3.11 build failure on Win10: new _freeze_module changes?
Change by Terry J. Reedy : -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue46217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46217] 3.11 build failure on Win10: new _freeze_module changes?
Terry J. Reedy added the comment: Thank you. Compiles without even any warnings. Tests also all pass. -- ___ Python tracker <https://bugs.python.org/issue46217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46237] Incorrect line reported in syntax error
Terry J. Reedy added the comment: I understand. I think that for IDLE, I should check that the error .text is in the line indicated, and if not, recover somehow rather than blindly marking the the indicated column. For a shell statement entry, try to find the right line. Not sure for an editor syntax error. This is a rare situation in any case. -- ___ Python tracker <https://bugs.python.org/issue46237> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1927] Change input() to always prompt to stderr
Terry J. Reedy added the comment: Further discussion at https://discuss.python.org/t/builtin-function-input-writes-its-prompt-to-sys-stderr-and-not-to-sys-stdout/12955 -- nosy: +terry.reedy versions: +Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue1927> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39663] IDLE: Add additional tests for pyparse
Change by Terry J. Reedy : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39663> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46393] Generate frozenset constants when explicitly appropriate
New submission from Terry J. Reedy : The CPython compiler is capable of making frozenset constants without being explicitly asked to. Exactly how it does so is, of course, 'hidden' from python code. With current main: . >>> dis('{1,2,3}') 1 0 BUILD_SET0 2 LOAD_CONST 0 (frozenset({1, 2, 3})) 4 SET_UPDATE 1 6 RETURN_VALUE Suppose one wants actually wants a frozenset, not a mutable set. 'frozenset({1,2,3})' is compiled as the above followed by a frozenset call -- making an unneeded double conversion to get what already exists. To avoid the intermediate set, one can use a constant tuple instead. >>> dis('frozenset((1,2,3))') 1 0 LOAD_NAME0 (frozenset) 2 LOAD_CONST 0 ((1, 2, 3)) 4 CALL_FUNCTION1 6 RETURN_VALUE Even nicer would be 1 0 (frozenset({1, 2, 3})) 2 RETURN_VALUE 'set((1,2,3))' is compiled the same as 'frozenset((1,2,3)), but frozenset does not having the option is using a more efficient display form. I cannot think of any reason to not call frozenset during compile time when the iterable is a constant tuple. Serhiy, I not sure how this relates to your issue 33318 and the discussion therein about stages, but it does relate to your interest in compile time constants. -- components: Interpreter Core messages: 410666 nosy: serhiy.storchaka, terry.reedy priority: normal severity: normal stage: test needed status: open title: Generate frozenset constants when explicitly appropriate type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46393> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45447] IDLE: Support syntax highlighting for .pyi stub files
Terry J. Reedy added the comment: A minimal version of util.py just for this issue is fine. What is blocking the issue deciding exactly what the minimum should be. Are both the extension list and function needed? Alex says somewhere in PR comments that ispythonsource passes directories. That seems wrong. Perhaps moving and revising it and making no-extension files browsable and removing the x.py(?) limitation should be a separate issue. IDLE users on *nix don't mind using extensions. I have not seen a complaint, though perhaps people who do mind silently use something else. I need to check again how the editor function is used and decide if we can leave it alone for now. So don't remove anything just now. I need to experiment with Ron's suggestion on my Mac. The Windows context menu is definitely a separate issue. Please add idle_test/example.pyi with the line in msg403741 for manual testing now and possibly future automatic testing. -- ___ Python tracker <https://bugs.python.org/issue45447> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43476] Enabling access to showsyntaxerror for IDLE's shell
Terry J. Reedy added the comment: Whatever you worked out is probably better than depending on something that I hope to significantly change. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43476> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46393] Generate frozenset constants when explicitly appropriate
Terry J. Reedy added the comment: Sigh. You are right. I will close this tomorrow. This also means that 'set()' is not guaranteed to return an empty built-in set. I did think of this workaround for that: >>> (empty:={None}).clear() >>> empty set() Go ahead and propose something on python-ideas if you want, pointing out that only displays (and comprehensions) are guaranteed to result in a builtin. -- ___ Python tracker <https://bugs.python.org/issue46393> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46393] Generate frozenset constants when explicitly appropriate
Terry J. Reedy added the comment: Rejected by the reality of Python's dynamism, which I overall appreciate ;-). -- ___ Python tracker <https://bugs.python.org/issue46393> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24194] tokenize fails on some Other_ID_Start or Other_ID_Continue
Terry J. Reedy added the comment: Udated doc link, which appears to be same: https://docs.python.org/3.11/reference/lexical_analysis.html#identifiers Updated property list linked in above: https://www.unicode.org/Public/14.0.0/ucd/PropList.txt Relevant content for this issue: 1885..1886; Other_ID_Start # Mn [2] MONGOLIAN LETTER ALI GALI BALUDA..MONGOLIAN LETTER ALI GALI THREE BALUDA 2118 ; Other_ID_Start # Sm SCRIPT CAPITAL P 212E ; Other_ID_Start # So ESTIMATED SYMBOL 309B..309C; Other_ID_Start # Sk [2] KATAKANA-HIRAGANA VOICED SOUND MARK..KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK # Total code points: 6 00B7 ; Other_ID_Continue # Po MIDDLE DOT 0387 ; Other_ID_Continue # Po GREEK ANO TELEIA 1369..1371; Other_ID_Continue # No [9] ETHIOPIC DIGIT ONE..ETHIOPIC DIGIT NINE 19DA ; Other_ID_Continue # No NEW TAI LUE THAM DIGIT ONE # Total code points: 12 Codepoints of '℘·' opening example: '0x2118' Other_Id_start Sm Script Capital P '0xb7' Other_Id_continue P0 Middle dot Except for the two Mongolian start characters, Meador's patch hardcodes the 'Other' characters, thereby adding them without waiting for re to be fixed. While this will miss new additions without manual updates, it is better than missing everything for however many years. I will make a PR with the additions and looks at the new tests. -- ___ Python tracker <https://bugs.python.org/issue24194> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24194] Make tokenize recognize Other_ID_Start and Other_ID_Continue chars
Change by Terry J. Reedy : -- title: tokenize fails on some Other_ID_Start or Other_ID_Continue -> Make tokenize recognize Other_ID_Start and Other_ID_Continue chars ___ Python tracker <https://bugs.python.org/issue24194> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24194] Make tokenize recognize Other_ID_Start and Other_ID_Continue chars
Change by Terry J. Reedy : -- assignee: meador.inge -> terry.reedy ___ Python tracker <https://bugs.python.org/issue24194> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46405] Warning compiling main on Windows
New submission from Terry J. Reedy : Sometime between Jan 7 and Jan 16 (today) this VC compile warning appeared (debug build). "specialize.c ..\Python\specialize.c(1243): warning C4018: '<': signed/unsigned mismatch [f:\dev\3x\PCbuild\_freeze_module.vcxproj]" Same is repeated at end of compile. Could and should such warnings be treated as errors in CI Windows' build? Or is it specific to debug build? -- components: Build, Windows messages: 410734 nosy: Mark.Shannon, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware priority: normal severity: normal status: open title: Warning compiling main on Windows type: compile error versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46405> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35467] IDLE: unrequested pasting into Shell after restart
Terry J. Reedy added the comment: I finally caught an example, which was not immediately after restart. I copied the two lines of output, entered 'import re\n' and the copied text was pasted, then the line with the addition compiled, leading to the error. Type "help", "copyright", "credits" or "license()" for more information. >>> for c in '℘·': hex(ord(c)) ... '0x2118' '0xb7' >>> import re'0x2118' ... '0xb7' SyntaxError: invalid syntax >>> for c in '℘·': hex(ord(c)) I pasted the copied output into an issue on the browser and did other stuff before coming back to this window to try something with re. Differences from my initial report: No RESTART (though usually or often is), no exception, not first entry (but first time not?). Edit menu item 'Paste' and the shortcut are bound to IDLE-defined pseudoevent '<>' which invokes method EditorWindow.paste which calls event_generate('<>'), where the latter event is a tk-defined event. Where triggered? I could add a print-to-console in .paste? Happening only in shell and after Enter suggest looking as shell-specific part of Enter handling. If never on Linux, could x-11-only fix-x11-paste (called in pyshell.main) explain why not? I searched stackoverflow [tkinter] questions for 'paste'. Got 840 responses, looked as first page, saw nothing relevant. Adding 'unwanted', 'unexpected', or 'spontaneous' resulted in no hits. I will consider asking a question myself. -- nosy: +epaine ___ Python tracker <https://bugs.python.org/issue35467> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46403] Unhelpful SyntaxError
Terry J. Reedy added the comment: For non-coredevs, 'not a bug' means not a bug in the CPython interpreter, as opposed to user code, which here has bugs. People asking questions (preferably in a more appropriate place) should read, for instance, https://stackoverflow.com/help/minimal-reproducible-example How to create a Minimal, Reproducible Example A minimal reproducer is '('. In 3.9, the message is 'unexpected EOF while parsing'. It is not unusual for beginners to leave out the message when reporting an exception in text rather than copy-pasting the last few lines of the traceback (which indicates exactly where the error is caught). [bpo software should be rejecting number IDs] I sent an email to Hayden. -- assignee: terry.reedy -> resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46403> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46403] Unhelpful SyntaxError
Terry J. Reedy added the comment: Email bounced. -- ___ Python tracker <https://bugs.python.org/issue46403> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46405] Warning compiling main on Windows
Terry J. Reedy added the comment: Thank you Kumar for the quick fix. Just got a clean compile. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46405> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Terry J. Reedy added the comment: Nikita, thanks for doing this. Ethan's suggestion has two advantages. 1. It would fix most backport issues. By containing a mix of changes, PR-30666 cannot be backported as is. 'unittest.main' should always backport unless there is a context conflict. But 3.9 does not have os.helper and TESTFN is still in test.support in 3.9 and that change cannot backport. (I did not check 3.10.) 2. It restricts the knowledge needed to review (and be willing to merge). I could and would review and merge a patch with only unittest.main changes, but not, without checking the docs to learn about new changes, the mixture you posted. I suggest you write a script to directly run each test.test_xyz file via subprocess and report to stdout. The test for this issue is a clean report. If you do so, I will run it on Windows in a fresh build of each of 3.9, 3.10, and 3.11. Note that there are two possible commands: 'python -m test test_xyz' and 'python -m test.test_xyz'. They are subtly different. So I would add an option to do it each way. With current 3.11, test_importlib runs fine on my Windows, with 1436 tests. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44667] tokenize.py emits spurious NEWLINE if file ends on a comment without a newline
Terry J. Reedy added the comment: This appears to have been a duplicate of #35107, where the failing example was '#' and it was NL, NEWLINE pair was noted. So this either predates 3.9 or was re-introduced. In any case, thanks for the fix. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue44667> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35107] untokenize() fails on tokenize output when a newline is missing
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: pending -> closed superseder: -> tokenize.py emits spurious NEWLINE if file ends on a comment without a newline ___ Python tracker <https://bugs.python.org/issue35107> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44667] tokenize.py emits spurious NEWLINE if file ends on a comment without a newline
Terry J. Reedy added the comment: #44667 -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue44667> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35107] untokenize() fails on tokenize output when a newline is missing
Terry J. Reedy added the comment: #44667 tokenize.py emits spurious NEWLINE if file ends on a comment without a newline Fixed on 3.11, 3.10, 3.9 Aug 2021. -- ___ Python tracker <https://bugs.python.org/issue35107> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44667] tokenize.py emits spurious NEWLINE if file ends on a comment without a newline
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg410981 ___ Python tracker <https://bugs.python.org/issue44667> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24711] Document getpass.getpass behavior on ^C
Terry J. Reedy added the comment: In IDLE Shell, with either ^C or ^D, >> try: ... input('??') ... except: ... 'done' ... ... ?? 'done' 'getpass.getpass('??') does same after printing warning from line 100 that fallback_getpass is being used. The newline may be supplied by IDLE, not sure. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue24711> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7
Terry J. Reedy added the comment: The first alpine315-tests.txt appears to be a truncated version of the second. Were you expecting the first to be automatically replaced? Should it be unlinked? https://www.alpinelinux.org "Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox." Fron the doc linked above: # Maintainer: Natanael Copa ## I nosied Natanael at his CLA-signed Alpine id. # Contributor: Sheila Aman ... # musl related fail="test__locale test_locale test_strptime test_re" # various musl locale deficiencies fail="$fail test_c_locale_coercion" fail="$fail test_datetime" # hangs if 'tzdata' installed fail="$fail test_os"# fpathconf, ttyname errno values fail="$fail test_posix" # sched_[gs]etscheduler not impl fail="$fail test_shutil"# lchmod, requires real unzip Should we change CPython tests to accommodate things that are missing (versus buggy). Should the tests requiring sched_[gs]etscheduler be skipped if missing? Or are they required to be 'posix' and is test_posix meant to test completeness as well as correctness of what is present? -- nosy: +ncopa, terry.reedy ___ Python tracker <https://bugs.python.org/issue46390> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46396] Typing: test invalid usages of `Concatenate`
Change by Terry J. Reedy : -- title: Invalid usage of `Concatenate` is not covered at all -> Typing: test invalid usages of `Concatenate` ___ Python tracker <https://bugs.python.org/issue46396> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46397] urllib.parse.quote uses safe='' as default
Terry J. Reedy added the comment: 'urlencode()' is a TypeError as a query (dict) is needed. The claim is that '/?' in a key are encoded but should not be. I verified the encoding in 3.10. >>> urlencode({'/?link': 'pubmed'}) '%2F%3Flink=pubmed' https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote and the following entry from 'quote_plus' say that by default, quote_via is quote_plus and the latter quotes '/' and '?'. So the bug report as stated is not valid. --- They also say that passing 'quote_via=quote' should suppress quoting of '/', because it defaults to 'safe='/', but it does not. >>> urlencode({'/?link': 'pubmed'}, quote_via=quote) '%2F%3Flink=pubmed' So either the doc should be changed in 3 places, or the default safe for quote should be '/' as documented. --- Anh, use safe='/?' to get what you want. >>> urlencode({'/?link': 'pubmed'}, quote_via=quote, safe='/?') '/?link=pubmed' -- nosy: +orsenthil, terry.reedy title: urllib.parse.urlencode() return wrong character -> urllib.parse.quote uses safe='' as default ___ Python tracker <https://bugs.python.org/issue46397> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46421] unittest ValueError when invoking as module
Change by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker <https://bugs.python.org/issue46421> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46452] Possible false detection of Windows LZMA library as a malware by Avast
Change by Terry J. Reedy : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46452> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33822] IDLE subsection of What's New 3.8
Terry J. Reedy added the comment: Backports to 3.8 ended when it went on security status about June 1, 2021. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33822> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41844] IDLE subsection of What's New 3.9
Change by Terry J. Reedy : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue41844> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41846] IDLE subsection of What's New 3.10
Change by Terry J. Reedy : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue41846> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46495] IDLE subsection of What's New 3.11
New submission from Terry J. Reedy : Following #41846, master issue for IDLE entries in Doc/whatsnew/3.11.rst. When appropriate, add subsection 'idlelib and IDLE' to 'Improved Modules' The initial entries include important enhancements to IDLE since 3.10.0. (Anything included in 3.10.0 does not belong here. Because of IDLE's special backport policy (PEP 434), this initial part concludes with "The changes above have been backported to 3.9 maintenance releases." Future subsubsections 'New in 3.10.z:', z >= 1, will follow for backports to 3.10.z. These can precede the backport message as long as it is true. This issue will close after the last 3.10 maintenance release. 3.11.rst will always exist in the master branch. Changes are applied to master and backported as needed at the time. Entries will normally be the same in the What's New x.y for all x.y branches that get the enhancement. However, each file needs different backports. Hence separate PRs are needed for auto backport to work. It seems convenient to have separate issues for each whatsnew/ file. -- assignee: terry.reedy messages: 411438 nosy: terry.reedy priority: normal severity: normal status: open title: IDLE subsection of What's New 3.11 versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46495> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41846] IDLE subsection of What's New 3.10
Change by Terry J. Reedy : -- superseder: -> IDLE subsection of What's New 3.11 ___ Python tracker <https://bugs.python.org/issue41846> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46496] idlelib/NEWS.txt for 3.11.0 and backports
New submission from Terry J. Reedy : Main became 3.11 as of 3.10.0 beta 1: 2021-05-03. However, backported IDLE issues continued going under What's New 3.10 on both main and 3.10 until 3.10.0rc1, 2021-08-03. Subsequent idlelib/NEWS.txt items go under What's New 3.11.0 on main branch What's New 3.10.1 on 3.10 branch In other words, idlelib News is handled as if main were branched off as of .0rc1. This is different from the changelog attached to What's New in 3.x. Release peps -- needed for proposed and actual release dates. 3.9 PEP 596 https://www.python.org/dev/peps/pep-0596/ 3.10 PEP 619 https://www.python.org/dev/peps/pep-0619/ 3.11 PEP 664 https://www.python.org/dev/peps/pep-0664/ -- assignee: terry.reedy messages: 411439 nosy: terry.reedy priority: normal severity: normal status: open title: idlelib/NEWS.txt for 3.11.0 and backports versions: Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46496> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Change by Terry J. Reedy : -- superseder: -> IDLE subsection of What's New 3.11 ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Change by Terry J. Reedy : -- pull_requests: +29049 pull_request: https://github.com/python/cpython/pull/30868 ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Change by Terry J. Reedy : -- superseder: IDLE subsection of What's New 3.11 -> idlelib/NEWS.txt for 3.11.0 and backports ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Terry J. Reedy added the comment: New changeset 9d3c9788a6ccd4f2f53a147dd0026a316c396976 by Terry Jan Reedy in branch 'main': bpo-41841: update idlelib News up to 3.10.0. (GH-30868) https://github.com/python/cpython/commit/9d3c9788a6ccd4f2f53a147dd0026a316c396976 -- ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Change by Terry J. Reedy : -- pull_requests: +29051 pull_request: https://github.com/python/cpython/pull/30871 ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Terry J. Reedy added the comment: New changeset 98cabce59958914b59914abbffbfde7129d4c47f by Terry Jan Reedy in branch '3.9': bpo-41841: update idlelib News up to 3.10.0 (GH-30871) https://github.com/python/cpython/commit/98cabce59958914b59914abbffbfde7129d4c47f -- ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41841] idlelib/NEWS.txt for 3.10.0 and backports
Terry J. Reedy added the comment: New changeset ce79b504a790d02c080449d31356d33a5aaf19dd by Miss Islington (bot) in branch '3.10': bpo-41841: update idlelib News up to 3.10.0. (GH-30868) (GH-30870) https://github.com/python/cpython/commit/ce79b504a790d02c080449d31356d33a5aaf19dd -- ___ Python tracker <https://bugs.python.org/issue41841> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46496] idlelib/NEWS.txt for 3.11.0 and backports
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +29055 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30875 ___ Python tracker <https://bugs.python.org/issue46496> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46496] idlelib/NEWS.txt for 3.11.0 and backports
Change by Terry J. Reedy : -- pull_requests: +29056 pull_request: https://github.com/python/cpython/pull/30876 ___ Python tracker <https://bugs.python.org/issue46496> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com