[issue45697] PyType_IsSubtype is doing excessive work in the common case

2021-11-02 Thread Itamar Ostricher
Itamar Ostricher added the comment: Dennis, you mean something like this? https://github.com/itamaro/cpython/commit/92d46b260cf6ccce1a47003f539294530138e488 sure, that would preempt the `PyType_IsSubtype` calls coming from these specific callsites, but the early return in `PyType_IsSubtype`

[issue45598] setup.py grep_headers_for() is broken by design

2021-11-02 Thread Ned Deily
Ned Deily added the comment: > Ned, what about USING_APPLE_OS_LIBFFI? Is it still relevant? It was just added a year ago as part of the support for macOS 11 Big Sur and Apple Silicon systems. -- ___ Python tracker

[issue45641] Error In opening a file through tkinter on macOS Monterey

2021-11-02 Thread Ned Deily
Ned Deily added the comment: An update: we believe that the problem with the Save dialog window not closing has been fixed in a revised updated macOS installer for 3.10.0 which is now available as the default download from python.org. See Issue44828 for more details. --

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: OK, thanks to Marc's quick response, it looks like we have conquered the elusive zombie dialog window. So let's try again. Note that the download file name has changed to avoid any confusion: As of 2021-11-03, the macOS installer file on python.org for the

[issue45697] PyType_IsSubtype is doing excessive work in the common case

2021-11-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: Interesting. It seems like several call sites already check the equality case: setobject.h: #define PyFrozenSet_Check(ob) \ (Py_IS_TYPE(ob, _Type) || \ PyType_IsSubtype(Py_TYPE(ob), _Type)) object.h: static inline int

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-11-02 Thread swgmma
Change by swgmma : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-11-02 Thread swgmma
swgmma added the comment: Anything else left to do? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45697] PyType_IsSubtype is doing excessive work in the common case

2021-11-02 Thread Itamar Ostricher
Change by Itamar Ostricher : -- keywords: +patch pull_requests: +27638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29380 ___ Python tracker

[issue45697] PyType_IsSubtype is doing excessive work in the common case

2021-11-02 Thread Itamar Ostricher
New submission from Itamar Ostricher : Based on real world profiling data we collected, a vast amount of `PyType_IsSubtype` calls are coming from `type_call`, when it decides whether `__init__` should run or not. In the common case, the arguments to this call are identical, but the

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-11-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: Feel free to use anything I wrote in a PR and make any revisions/edits you want. -- ___ Python tracker ___

[issue45696] "Deep-freeze": skip the marshal step by generating C code

2021-11-02 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45695] Out-of-tree builds are not tested.

2021-11-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45695] Out-of-tree builds are not tested.

2021-11-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I always do out of tree builds _(I find people who build anything in tree to be very weird - it makes a mess)_. I intend to look into making sure a Linux buildbot runs this way but don't let that stop anyone else from doing so. --

[issue45695] Out-of-tree builds are not tested.

2021-11-02 Thread Steve Dower
Steve Dower added the comment: FTR, I used to run all Windows builds out of tree on Azure Pipelines, but too many tests broke so I reverted it: https://github.com/python/cpython/blob/456e27ac0ac6bc1cfd6da0191bd7802d8667457b/.azure-pipelines/windows-steps.yml#L7-L10 Setting $env:Py_OutDir

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-11-02 Thread Arthur Milchior
Arthur Milchior added the comment: Thank you very much Dennis. For two reasons. First, because I like a lot what you wrote. I suspect that it would have saved me time and make things less confusing. That's not certain, because at the time I was reading the documentation of or_expr, I may

[issue45696] "Deep-freeze": skip the marshal step by generating C code

2021-11-02 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +27637 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29118 ___ Python tracker

[issue45696] "Deep-freeze": skip the marshal step by generating C code

2021-11-02 Thread Guido van Rossum
New submission from Guido van Rossum : See https://github.com/faster-cpython/ideas/issues/84 This appears to improve startup time by another 10% or more compared to main. -- assignee: gvanrossum components: Interpreter Core messages: 405570 nosy: gvanrossum priority: normal severity:

[issue24139] Use sqlite3 extended error codes

2021-11-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24139] Use sqlite3 extended error codes

2021-11-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 456e27ac0ac6bc1cfd6da0191bd7802d8667457b by Erlend Egeberg Aasland in branch 'main': bpo-24139: Add support for SQLite extended result codes (GH-28076) https://github.com/python/cpython/commit/456e27ac0ac6bc1cfd6da0191bd7802d8667457b

[issue45695] Out-of-tree builds are not tested.

2021-11-02 Thread Eric Snow
New submission from Eric Snow : Currently we don't test builds done outside the source tree, neither on GitHub nor the buildbots. [1] As a result, such builds get broken occasionally. I've certainly broken then a couple times, inadvertently. It would be helpful if we tested out-of-tree

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread Irit Katriel
Irit Katriel added the comment: Thanks Lukasz. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45243] [sqlite3] add support for changing connection limits

2021-11-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Steve, do you think it is worth it adding an audit hook for setting connection limits? Most of the limits are harmless, but limits that control recursion are more interesting. SQLITE_LIMIT_EXPR_DEPTH: Maximum Depth Of An Expression Tree SQLite

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread miss-islington
miss-islington added the comment: New changeset cfdd7d26a72e7ae523039e40c11001c2d7ef36ba by Miss Islington (bot) in branch '3.10': bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

[issue45673] argparse error with option with optional value

2021-11-02 Thread paul j3
paul j3 added the comment: Put the required positional first $ myapp myfile -s or one of the store_true arguments $ myapp -s -j myfile I think $ myapp -s -- myfile will work as well, but that needs to be tested. The '-s' has to be followed by something won't be confused for an

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread miss-islington
miss-islington added the comment: New changeset 5f527caf15c52acc3f6e865721cdf781209f11ca by Miss Islington (bot) in branch '3.9': bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

[issue45673] argparse error with option with optional value

2021-11-02 Thread Paolo Benvenuto
Paolo Benvenuto added the comment: > As a general rule, don't use `nargs` like this where there's ambiguity as to > how many values will be allocated to the argument. What could I use instead of nargs? -- ___ Python tracker

[issue45673] argparse error with option with optional value

2021-11-02 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue9338 argparse optionals with nargs='?', '*' or '+' can't be followed by positionals As you can see this is an old issue, but still too big for a quick fix. As a general rule, don't use `nargs` like this where there's ambiguity as to

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2021-11-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +27636 pull_request: https://github.com/python/cpython/pull/29378 ___ Python tracker ___

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27635 pull_request: https://github.com/python/cpython/pull/29377 ___ Python tracker

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a459a81530de700b3d3faeb827b22ed1c9985812 by Irit Katriel in branch 'main': bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Lincoln! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4ab6e524abd2d7f21c2d7a6eaee5be1f93baf140 by Miss Islington (bot) in branch '3.9': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29374)

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4ab6e524abd2d7f21c2d7a6eaee5be1f93baf140 by Miss Islington (bot) in branch '3.9': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29374)

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 71f602b54c9c5346d22a542e186746b06cccfc8e by Miss Islington (bot) in branch '3.10': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29373)

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 71f602b54c9c5346d22a542e186746b06cccfc8e by Miss Islington (bot) in branch '3.10': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29373)

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3551bf16ee5c25b6349209dd30e032f0f3b9ace3 by LincolnPuzey in branch 'main': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) https://github.com/python/cpython/commit/3551bf16ee5c25b6349209dd30e032f0f3b9ace3

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2021-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +27634 pull_request: https://github.com/python/cpython/pull/29374 ___ Python tracker ___

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +27633 pull_request: https://github.com/python/cpython/pull/29374 ___ Python tracker ___

[issue45457] Documentation for ssl.load_default_certs is outdated

2021-11-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27631 pull_request: https://github.com/python/cpython/pull/29373 ___ Python tracker

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2021-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3551bf16ee5c25b6349209dd30e032f0f3b9ace3 by LincolnPuzey in branch 'main': bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) https://github.com/python/cpython/commit/3551bf16ee5c25b6349209dd30e032f0f3b9ace3

[issue22449] SSLContext.load_verify_locations behavior on Windows and OSX

2021-11-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +27632 pull_request: https://github.com/python/cpython/pull/29373 ___ Python tracker

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: New changeset d53d9e7f4f1656a13b030b17baca743455e511fd by Ned Deily in branch '3.9': bpo-44828: Avoid leaving a zombie Save panel. (GH-29371) https://github.com/python/cpython/commit/d53d9e7f4f1656a13b030b17baca743455e511fd --

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Fahim Faisal
Change by Fahim Faisal : -- nosy: -i3p9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: New changeset 6681a77c52df41636feb213d63ba27a759c7e5f4 by Ned Deily in branch '3.10': bpo-44828: Avoid leaving a zombie Save panel. (GH-29369) https://github.com/python/cpython/commit/6681a77c52df41636feb213d63ba27a759c7e5f4 --

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Marc Culler
Marc Culler added the comment: A (hypothetical) explanation: I think that each NSWindow maintains a queue of attached sheets. Failing to call the [parent endSheet] method left the file dialogue NSPanel in the queue, although it had been ordered offscreen and so was not visible. Opening the

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: New changeset 4a8b4051734fd2ce46e15e6369811132ac3a5697 by Ned Deily in branch 'main': bpo-44828: macOS installer: avoid leaving a zombie Save panel in Tk 8.6.12rc1 (GH-29367) https://github.com/python/cpython/commit/4a8b4051734fd2ce46e15e6369811132ac3a5697

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: hyperparser.py, line 13, _ASCII_ID_CHARS line 15, _ASCII_ID_FIRST_CHARS, frozenset(string.ascii_letters + "_") Only used on line 18 and 21 to create 128 item lookup tables. The point is to be fast as hyperparser scans multiple chars when invoked. The

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27630 pull_request: https://github.com/python/cpython/pull/29367 ___ Python tracker ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27629 pull_request: https://github.com/python/cpython/pull/29372 ___ Python tracker ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27628 pull_request: https://github.com/python/cpython/pull/29371 ___ Python tracker ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27627 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29369 ___ Python tracker ___

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Jim Crist-Harif
Jim Crist-Harif added the comment: Hmmm, I'd find that situation a bit surprising, but I suppose it could happen. Looks like tornado just errors, and that seems to work fine for them in practice

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: editor.py, line 809, IDENTCHARS Used in the immediately following def colorize_syntax_error on line 814. if char and char in self.IDENTCHARS: text.tag_add("ERROR", pos + " wordstart", pos) I believe the intent is to color the part of an

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Eric V. Smith
Eric V. Smith added the comment: What do you do if a port is bound for IPv4, but is in use for IPv6? -- ___ Python tracker ___ ___

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Jim Crist-Harif
Jim Crist-Harif added the comment: > Is there an OS interface to ensure the same port on both stacks? I don't think this is needed? Right now the code processes as: - Expand host + port + family + flags into a list of one or more tuples of socket options

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: undo.py, line 254, alphanumeric Used in immediately following lines to classify chars as 'alphanumeric', 'newline', or 'punctuation' (the default). I believe I have only ever looked at this module to add the test code at the bottom. In any case, I don't

[issue45656] argparse bug: prefix_chars argument to add_argument_group doesn't really work

2021-11-02 Thread paul j3
paul j3 added the comment: prefix_chars is a parameter of the parent _ActionsContainer class _ActionsContainer(object): def __init__(self, description, prefix_chars, argument_default, conflict_handler):

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: autocomplete.py, line 33, ID_CHARS is only used on line 137 to find the prefix of an identifier when completions have been explicitly requested. while i and (curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127): i -= 1

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Eric V. Smith
Eric V. Smith added the comment: Is there an OS interface to ensure the same port on both stacks? I don't know of one (although of course one might exist), in which case I don't know how you'd ensure they're both the same. -- nosy: +eric.smith

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Guido F
Guido F added the comment: Understood, my mistake. I wonder if explorer.exe or any other general purpose open command is guaranteed to be available in all WSL distros. There’s also a consideration to be made on WSL1 vs WSL2 (only v2 ships an actual Linux kernel). For detection, there’re some

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: autoexpand.py, line 20, wordchars 'wordchars' is correct here since words beginning with digits can be expanded. >>> s = '0x4f334' >>> 0x4f334 # Hit alt-/ after 0 and enter 324404 Used in line 89 in method getprevword while i > 0 and line[i-1] in

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Steve Dower
Steve Dower added the comment: FWIW, I don't have wslview in the Debian distro I'm currently using. It does have wslpath though. Consistent detection and integration throughout CPython's standard library (unless we believe we need special build options too) is probably worth a python-dev

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: There have been occasional discussions about IDLE not being properly unicode aware in some of its functions. Discussions have foundered on these facts and no fix made. 1. The direct replacement string, your 'identcontchars', seems too big. We have

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Guido F
Guido F added the comment: My code patch uses ‘wslview’, which is a binary that is injected into every WSL distro and forwards file open commands to windows. I detect WSL inspecting the kernel version, which includes WSL tagging. On Tue, Nov 2, 2021 at 3:05 PM Steve Dower wrote: > > Steve

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Steve Dower
Steve Dower added the comment: We don't formally support it yet. We probably need somebody to develop expertise in the emulation layer so that they can work with the Linux distro experts to make sure their distros are doing things properly. It has no relation at all to our Windows support

[issue45694] Limit the number of chained exceptions included in formatted traceback

2021-11-02 Thread Irit Katriel
New submission from Irit Katriel : There is currently a limit on the number of frames in each traceback, but not on the number of chained exceptions displayed. This is why traceback.py avoids recursion (making the code more complex). A limit should probably be added. -- components:

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked for other possible ascii only problems and only found config_key.py: 14: ALPHANUM_KEYS = tuple(string.ascii_lowercase + string.digits) config_key.py: 39: if 'Shift' in modifiers and key in string.ascii_lowercase: config_key.py: 15:

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Jim Crist-Harif
Change by Jim Crist-Harif : -- versions: +Python 3.10, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-11-02 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue29553 Argparser does not display closing parentheses in nested mutex groups supposedly fixed the parentheses for nested groups. You can read its discussion and patches to see why it does not handle your case. I don't see any examples

[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Jim Crist-Harif
New submission from Jim Crist-Harif : To create a new server with `loop.create_server` that listens on all interfaces and a random port, I'd expect passing in `host=""`, `port=0` to work (per the documentation). However, as written this results in 2 different ports being used - one for ipv4

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Marc Culler
Marc Culler added the comment: OK. Shift-Command-S works. I will attach the fossil diff which should have enough context to indicate where to add the one new line. Then I will merge this change into the 8.6.12 release candidate -- Added file:

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: > When you press Command-S on a non-new edit window you do see the flash of the Save menu, so it would appear that a dialog was meant to appear, and there is no indication of why it did not. Yes, that is long-standing behavior of IDLE on macOS; I just verified

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-11-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Marc Culler
Marc Culler added the comment: Yes that is what I meant. So I guess everything may be OK now. I did verify that the Tk demo can repeatedly open file save dialogs. When you press Command-S on a non-new edit window you do see the flash of the Save menu, so it would appear that a dialog was

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This in an interesting problem. I am going to work on it at the next weekends. -- ___ Python tracker ___

[issue45656] argparse bug: prefix_chars argument to add_argument_group doesn't really work

2021-11-02 Thread paul j3
paul j3 added the comment: Use of 'prefix_chars' as a argument_group parameter is not documented, nor intended. If it does appear to work in the help formatting, it is probably the result of inheritance, since both ArgumentParser and Argument_group subclass a _Actions_Container class.

[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-11-02 Thread Hai Shi
Hai Shi added the comment: > I use the Linux operating system (openeuler), kernel version 4.19.90, GCC > version 7.3.0. I directly run the following statement in the virtual machine Hm. I haven't openeuler system, but I get docker container of the euler system. The tests have passed in my

[issue45673] argparse error with option with optional value

2021-11-02 Thread paul j3
paul j3 added the comment: This is too big of an example for this board; I think it should have been asked on StackOverFlow. Or maybe trimmed do to a more compact example. But in any case, this is normal behavior for argparse. Type checking, here 'int', is done after the string is

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Complete sets of characters which can be used in identifiers are too large: >>> allchars = ''.join(map(chr, range(0x11))) >>> identstartchars = ''.join(c for c in allchars if c.isidentifier()) >>> identcontchars = ''.join(c for c in allchars if ('a' +

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-11-02 Thread paul j3
paul j3 added the comment: There was a bug/issue that addressed problems with nested mutually_exclusive_groups. It should be easy to find. The problem is that the usage formatter is brittle, building a string and then striping out "unnecessary" characters. I assume the fix handled the

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Ned Deily
Ned Deily added the comment: > Subsequent Command-S presses do not cause the file dialog to reappear. Do you mean Command-S after modifying an IDLE edit window that has already been Save (or was Opened, not New)? In that case, the file dialog shouldn't appear: it saves to the existing file.

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This set is mostly outdated. In Python 2 it was a set of characters composing identifiers, but in Python 3 identifiers can contain non-ASCII characters. -- nosy: +serhiy.storchaka ___ Python tracker

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-11-02 Thread Marc Culler
Marc Culler added the comment: I found the cause of the zombie dialog window. I was supposed to call [parent endSheet] after calling [parent beginSheet]. Adding that stops the window from reappearing. But it does not solve the whole problem. Subsequent Command-S presses do not cause the

[issue45669] An 'ascii_alphanumerics' variable is missing in the 'strings' lib

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, thanks for the list. I can see it as either justifying or refuting the proposal. So +-1 for the moment. (I opened #45692 to eliminate the duplication in idlelib.) -- nosy: +terry.reedy ___ Python tracker

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
New submission from Terry J. Reedy : IDLE currently defines the same set of chars in 5 places with 5 names. (Listed by Serhiy Storchaka in #45669.) Lib/idlelib/autoexpand.py:20:wordchars = string.ascii_letters + string.digits + "_" Lib/idlelib/undo.py:254:alphanumeric =

[issue45647] "expression" is erroneous in the doc

2021-11-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2021-11-02 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27626 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29366 ___ Python tracker ___

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-11-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45638] Does ccbench still require 2.6 compatibility?

2021-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'it' I meant the comment and 2.6 compatibility you asked about. -- ___ Python tracker ___ ___

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2021-11-02 Thread Mark Shannon
New submission from Mark Shannon : We currently have an unstable state in the VM where some core objects are static and some are per-interpreter. For example, smalls ints are allocated per-interpreter, but many classes are allocated statically. This means that if any int is reachable from a

[issue45567] Support TLS Encrypted ClientHello (ECH)

2021-11-02 Thread Hans-Christoph Steiner
Hans-Christoph Steiner added the comment: I agree with all you say, but I think it is important to not rule out handling HTTPS/SVCB DNS here. It can happen at a later stage though. What you propose works great for the first step. If handling the DNS is punted to some external library,

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-11-02 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 401272e6e660445d6556d5cd4db88ed4267a50b3 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Adapt `sqlite3` to multi-phase init (PEP 489) (GH-29234) https://github.com/python/cpython/commit/401272e6e660445d6556d5cd4db88ed4267a50b3

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-11-02 Thread Ken Jin
Ken Jin added the comment: New changeset 454cdb99abcda37413b15167cda564091fec2572 by Dmitry Smirnov in branch 'main': bpo-45633: Fix newtypes doc typo (GH-29318) https://github.com/python/cpython/commit/454cdb99abcda37413b15167cda564091fec2572 -- nosy: +kj

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-11-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27624 pull_request: https://github.com/python/cpython/pull/29364 ___ Python tracker

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-11-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +27625 pull_request: https://github.com/python/cpython/pull/29365 ___ Python tracker ___

[issue45688] stdlib_module_names.h is missing _scproxy

2021-11-02 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-11-02 Thread andrew cooke
New submission from andrew cooke : The code below, when invoked with -h, prints: (.env) [andrew@localhost py]$ python -m tests_sa.argparse_bug -h usage: argparse_bug.py [-h] (-a A | [-b B | -c C)] options: -h, --help show this help message and exit -a A -b B -c C where the final two

[issue45638] Does ccbench still require 2.6 compatibility?

2021-11-02 Thread Skip Montanaro
Skip Montanaro added the comment: CCbench was mentioned recently in the discussion about Sam Gross's nogil branch: https://mail.python.org/archives/list/python-...@python.org/message/WRT7F2RHHCQ3N2TYEDC6JSIJ4T2ZM6F7/ I'm not convinced that deleting it is a no-brainer. Maybe if it landed

[issue43158] uuid won't build when libuuid is installed in a non-standard place

2021-11-02 Thread Christian Heimes
Christian Heimes added the comment: The problem should be fixed now. -- stage: patch review -> commit review status: open -> pending ___ Python tracker ___

  1   2   >