[issue44360] test_compile killed by SIGKILL on AMD64 Ubuntu 3.x

2021-06-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Oh, right, there is of course a connection between the exit code and the signal number. Thanks for the reminder :) -- ___ Python tracker

[issue44360] test_compile killed by SIGKILL on AMD64 Ubuntu 3.x

2021-06-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, this was related to the Linux OOM Killer. The agent went down shortly after this. Either multiple parallel jobs might have led to OOM or something else. I will see if logs provide more information. -- ___ Pyth

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Probably, otherwise is going to hurt because the syntax errors that you describe trigger when two names are place together, which in general is a missing comma. The error message also doesn't say: "you are missing a comma" it says that the most typic

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +25214 pull_request: https://github.com/python/cpython/pull/26628 ___ Python tracker ___ __

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 275d5f7957dbb56a6d5e1248addff210ee2e7270 by Terry Jan Reedy in branch 'main': bpo-40468: Split IDLE settings General tab (GH-26621) https://github.com/python/cpython/commit/275d5f7957dbb56a6d5e1248addff210ee2e7270 -- _

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +25215 pull_request: https://github.com/python/cpython/pull/26629 ___ Python tracker ___ __

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The backtracking with the soft keyword may make this very annoying, by the way. -- ___ Python tracker ___

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, wait, I think I misunderstood the problem. The problem is that the parser is backtracking and identifying match as a name. Indeed, the soft keyword is a pain :( -- ___ Python tracker

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think it actually will be very useful to explain that these cases are invalid in the Syntax error, which will also solve this problem. This on the other hand shows a bigger problem: any generic syntax error that happens inside "match" will probably

[issue44221] ImportError: sys.meta_path is None, Python is likely shutting down

2021-06-09 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hello, Can you please provide a piece of code to reproduce the issue? -- nosy: +eamanu ___ Python tracker ___ _

[issue42088] types.SimpleNamespace.__repr__ documentation inconsistency

2021-06-09 Thread Eric Snow
Eric Snow added the comment: I'm not sure what to think about this. The type is explicitly exposed to Python code "SimpleNamespace" via the types module. However, that's the same as how other builtin types are exposed in that module. For example, the builtin `PyCode_Type` (for `PyCodeObjec

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread miss-islington
miss-islington added the comment: New changeset 664ae29e6f61988e74cb8753dd4ee71e9ea57227 by Miss Islington (bot) in branch '3.10': bpo-40468: Split IDLE settings General tab (GH-26621) https://github.com/python/cpython/commit/664ae29e6f61988e74cb8753dd4ee71e9ea57227 --

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread miss-islington
miss-islington added the comment: New changeset d9f38d77c870cdb04273914c92fa4fe92b830d88 by Miss Islington (bot) in branch '3.9': bpo-40468: Split IDLE settings General tab (GH-26621) https://github.com/python/cpython/commit/d9f38d77c870cdb04273914c92fa4fe92b830d88 -- _

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, turns out I already added machinery to solved this but I was missing a piece! -- ___ Python tracker ___ _

[issue42088] types.SimpleNamespace.__repr__ documentation inconsistency

2021-06-09 Thread Eric Snow
Eric Snow added the comment: > According to the documentation for types.SimpleNamespace, > `repr(SimpleNamespace())` > should return `"SimpleNamespace()"`, but in actuality returns `"namespace()"`. Note that I purposefully wrote "roughly" in the docs ("The type is roughly equivalent to the f

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26630 ___ Python tracker __

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
Brandt Bucher added the comment: Wow, that was quite a roller-coaster ride. Thanks Pablo. :) -- ___ Python tracker ___ ___ Python-b

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
Brandt Bucher added the comment: I found a similar one, by the way (not related to mapping patterns): match ...: case 42 as _: pass File "", line 2 case 42 as _: ^ SyntaxError: expected ':' Is this covered by your fix? -- ___

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-06-09 Thread Ethan Smith
Ethan Smith added the comment: While I don't think it is nonsense, I do think it would be quite useful to add these. I just submitted PRs to typeshed and numpy adding complex to unions that already had SupportsComplex, because of the lack of __complex__. I'd be happy to work on a PR for this

[issue21760] inspect documentation describes module type inaccurately

2021-06-09 Thread miss-islington
miss-islington added the comment: New changeset 878d7e4ee464913438fd59582bbb795e7e0fa387 by Furkan Onder in branch 'main': bpo-21760: fix __file__ description (GH-19097) https://github.com/python/cpython/commit/878d7e4ee464913438fd59582bbb795e7e0fa387 -- nosy: +miss-islington

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Is this covered by your fix? No, that is not a backtracking error (is not going all the way to the "match" expression). -- ___ Python tracker

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the more I think about it, the more it looks like we should add the special methods -- even if they won't necessarily be called *if the type is exactly 'complex' or 'bytes'*. Now, until we've written and released the code we won't know for sure wheth

[issue21760] inspect documentation describes module type inaccurately

2021-06-09 Thread Eric Snow
Eric Snow added the comment: I've merged the changes for __file__. Thanks, furkanonder! The fixes in the types module remain to be done, though now I see 4 of the relevant attributes instead of 2. (missing: __path__, __file__, __cached__) -- ___

[issue44369] Improve syntax error for wrongly closed strings

2021-06-09 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Let's asume this string: " x = "Cannot recover from "MemoryErrors" while something happnes while " The line is incorrect because the quotes arround MemoryErrors are the same as the string is used, resulting in STRING + expression + STRING. Currenly

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will fix that one in another PR -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25217 pull_request: https://github.com/python/cpython/pull/26631 ___ Python tracker _

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 457ce60fc70f1c9290023f46fb82b6a490dff32e by Pablo Galindo in branch 'main': bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630) https://github.com/python/cpython/commit/457ce60fc70f1c9290023f46fb

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, this one is actually correct: match ...: case 42 as _: pass File "", line 2 case 42 as _: ^ SyntaxError: expected ':' That is literally expecting a ":" and that's the error. It has identified "case 42" correctly a

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-09 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/buildmaster-config/commit/9e0c812694d6fa599b4c8890045ed006fe7c1f6b aarch64 Fedora Rawhide Refleaks 3.8: https://buildbot.python.org/all/#/builders/401/builds/47 This change worked as expected: buildbot now uses a timeout of 4 hours

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
Brandt Bucher added the comment: Could we just try parsing "as _" and raise if so? That wouldn't conflict with any existing rules, and that way we could actually have a helpful error message. -- ___ Python tracker

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
Brandt Bucher added the comment: Like "SyntaxError: can't capture into a wildcard (consider removing)". -- ___ Python tracker ___ _

[issue44360] test_compile killed by SIGKILL on AMD64 Ubuntu 3.x (Linux OOM Killer)

2021-06-09 Thread STINNER Victor
STINNER Victor added the comment: > Yes, this was related to the Linux OOM Killer. Oh ok. Maybe you should give more memory to your worker, or you should spawn less jobs in parallel (-j1 instead of -j2). Or you should disable other services which eat memory. How much memory does it have? -

[issue14322] More test coverage for hmac

2021-06-09 Thread Arjun
Arjun added the comment: The only things I think we should add to the current hmac tests are test_update_error_handling and test_with_invalid_msg. For test_withnoncallable_digestmod(), hmac itself seems it can no longer be used: >>> hmac.HMAC(b"", None, "hmac") using new Traceback (mo

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread miss-islington
miss-islington added the comment: New changeset f807a4fad4da8f629ea7fe1f00719e817c77b63c by Miss Islington (bot) in branch '3.10': bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630) https://github.com/python/cpython/commit/f807a4fad4da8f629ea7fe1f00

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Could we just try parsing "as _" and raise if so? That wouldn't conflict with > any existing rules, and that way we could actually have a helpful error > message. No, the same happens with other targets such as: File "/home/pablogsal/github/python

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25218 pull_request: https://github.com/python/cpython/pull/26632 ___ Python tracker ___ ___

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Checkout PR 26632, and see if this works for you -- ___ Python tracker ___ ___ Python-bugs

[issue44369] Improve syntax error for wrongly closed strings

2021-06-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25219 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26633 ___ Python tracker __

[issue44360] test_compile killed by SIGKILL on AMD64 Ubuntu 3.x (Linux OOM Killer)

2021-06-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: > Maybe you should give more memory to your worker, or you should spawn less > jobs in parallel It was related to high number of jobs in that particular agent and result in OOM Kill from the Linux kernel - https://pastebin.com/559H4ksa The machine has 1GB

[issue44347] Unclear documentation for shutil.copytree()

2021-06-09 Thread Jack DeVries
Jack DeVries added the comment: I would like to submit a patch for this. This would be my first contribution :) I am starting on a patch now. -- nosy: +jack__d ___ Python tracker ___

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-09 Thread Eryk Sun
Eryk Sun added the comment: You resolved bpo-41299 using QueryPerformanceCounter(), so we're already a step toward making it the default monotonic clock. Personally, I've only relied on QPC for short intervals, but, as you've highlighted above, other language runtimes use it for their monoto

[issue44369] Improve syntax error for wrongly closed strings

2021-06-09 Thread Andre Roberge
Andre Roberge added the comment: I like this. While it would be a bit longer, I'm wondering if the message should not read instead as follows: ... Did you use the same quotes here as those enclosing the string? === I suspect that errors coming from the use of a single quote, as in: 'Don't

[issue35800] remove smtpd.MailmanProxy

2021-06-09 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 309ab616020f8504ced8ca64f7d7abc2df25a37f by Dong-hee Na in branch 'main': bpo-35800: Remove smtpd.MailmanProxy since 3.11 (GH-26617) https://github.com/python/cpython/commit/309ab616020f8504ced8ca64f7d7abc2df25a37f -- ___

[issue35800] remove smtpd.MailmanProxy

2021-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-09 Thread Ryan Hileman
Ryan Hileman added the comment: Great information, thanks! > Windows 10 also provides QueryInterruptTimePrecise(), which is a hybrid > solution. It uses the performance counter to interpolate a timestamp between > interrupts. I'd prefer to use this for time.monotonic() instead of QPC, if >

[issue44347] Unclear documentation for shutil.copytree()

2021-06-09 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch pull_requests: +25220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26634 ___ Python tracker ___ ___

[issue42801] Exception catching function crashes on recursive list

2021-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.10, Python 3.8 -Python 3.7 ___ Python tracker ___ __

[issue44347] Unclear documentation for shutil.copytree()

2021-06-09 Thread Jack DeVries
Jack DeVries added the comment: I've created a PR: https://github.com/python/cpython/pull/26634 I forgot to put a news entry, but hopefully that's ok since this is a very small change. -- ___ Python tracker __

[issue44340] Add support for building cpython with clang thin lto

2021-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue35800] remove smtpd.MailmanProxy

2021-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-06-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: In [this Dockerfile](https://github.com/jaraco/jaraco.windows/blob/feature/vs-2/Dockerfile), I've attempted to install Visual Studio, but without success. Docker fails to build on [line 6](https://github.com/jaraco/jaraco.windows/blob/4de80c897cb92362bd108

[issue44336] Windows buildbots hang after fatal exit

2021-06-09 Thread Jeremy Kloth
Jeremy Kloth added the comment: While now not as immediately beneficial, I believe that the linked PR would be good for the long run. The ramifications of bpo-11105 meant that the Windows buildbots were basically unusable for 5 days. Realistically, any commit that triggers aborts in the Win

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Joël Larose
New submission from Joël Larose : If `math.nan` is the first argument for either max() or min(), the result is always `nan`, regardless of the other values in the results. However, if `nan` is in any other position in the arguments list, the result is always what you would expect if `nan` was

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Joël Larose
Joël Larose added the comment: Forgot to mention the environment: Python version: 3.9.0 OS: Windows 10 I have not tested this on any other version of python. -- ___ Python tracker ___

[issue44362] improve documentation of SSL deprecations

2021-06-09 Thread Jack DeVries
Jack DeVries added the comment: These changes are part of PEP 644; support for OpenSSL v1.1.1. The benefits are detailed in `the PEP `_. Later, the deprecation process began in `bpo-43880 `_. It seems lik

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-09 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-06-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: I managed to put together a Dockerfile that seemingly has the build tools installed (https://github.com/jaraco/jaraco.windows/blob/d2edad2e2af9d469189d7ac6a14a4ba6f6270348/Dockerfile). When I attempt to build CPython, however, it fails with this error: ```

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Joël Larose
Joël Larose added the comment: The same problem occurs if the argument is a `list`. The same inconsistency happens depending on the position in the list that `nan` happens to be. >>> max([5, nan, 3, 0, 8, -10]) 8 >>> min([5, nan, 3, 0, 8, -10]) -10 >>> min([nan, 5, 3, 0, 8, -10]) nan >>> m

[issue42088] types.SimpleNamespace.__repr__ documentation inconsistency

2021-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Given how long this object has been its current state, the OP's request seems reasonable to me and it is an easy change to make. I don't think there is any downside. Also, if this ever becomes a builtin, I think we would leave the current implementation

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-09 Thread Eryk Sun
Eryk Sun added the comment: > 2. Execute 'set TZ=Europe/Moscow' The Windows C runtime supports a simple format for the TZ environment variable, which is detailed in the documentation of _tzset() [1]. For example, it's "MSK-3" for Moscow Standard Time. It's -3 because the offset is from local

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-06-09 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +25221 pull_request: https://github.com/python/cpython/pull/26635 ___ Python tracker ___

[issue33051] IDLE: Create new tab for editor options in configdialog

2021-06-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> IDLE: configdialog tab rearrange ___ Python tracker _

[issue14322] More test coverage for hmac

2021-06-09 Thread Arjun
Change by Arjun : -- pull_requests: +25222 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26636 ___ Python tracker ___

[issue40468] IDLE: configdialog tab rearrange

2021-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Along with the spinbox PR for #33962, I believe everything discussed here is done. There are still issues to improve specific pages. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44371] asyncio.wait_for does not cancel running tasks in the correct fashion

2021-06-09 Thread Ofek Kirzner
New submission from Ofek Kirzner : Following https://bugs.python.org/issue32751 I think wait_for should also wait for running coroutine in case it has been cancelled. Example code: import asyncio async def inner(): try: print(1) await asyncio.sleep(3600) print(2)

[issue44351] distutils.sysconfig.parse_makefile() regression in Python 3.10

2021-06-09 Thread Lumír Balhar
Change by Lumír Balhar : -- keywords: +patch pull_requests: +25223 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26637 ___ Python tracker ___

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is essentially the same issue, but with sorted(): https://bugs.python.org/issue36095 The trouble is that the implementation of min() is roughly equivalent to: iterable = iter(iterable) current_min = next(iterable) for x in iterable: if x < current_m

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Dennis Sweeney
Dennis Sweeney added the comment: implantation --> implementation -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue44362] improve documentation of SSL deprecations

2021-06-09 Thread Christian Heimes
Christian Heimes added the comment: You either use TLS_PROTOCOL_CLIENT for a client-side socket or TLS_PROTOCOL_SERVER for a server-side socket. TLS_PROTOCOL_CLIENT gives you a secure context for client connections with cert and hostname verification. --

[issue44370] Inconsistent results for min() and max() with math.nan as argument

2021-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: See also #11986, which this report is essentially a duplicate of. I think it may be time to implement `math.ieee754_total_order` (after suitable bikeshedding about the name), so that one can do sorted(my_list_of_floats, key=math.ieee754_total_order) and

<    1   2