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

[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

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

[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

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

[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

[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

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

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

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

[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

[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

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

[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

[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

[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

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

[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

[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
Change by Jack DeVries : -- keywords: +patch pull_requests: +25220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26634 ___ Python tracker ___

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

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

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

[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

[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

[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

[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

[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

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

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

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

[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

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

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

[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

[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

[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

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

[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: I will fix that one in another PR -- ___ Python tracker ___ ___ Python-bugs-list mailing

[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

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

[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

[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

[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

[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

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

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

[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

[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

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

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

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

[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

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

[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

[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: The backtracking with the soft keyword may make this very annoying, by the way. -- ___ Python tracker ___

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

[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: +25214 pull_request: https://github.com/python/cpython/pull/26628 ___ Python tracker ___

[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

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

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

2021-06-09 Thread STINNER Victor
STINNER Victor added the comment: Oh right, exit code -9 means killed by SIGKILL, it doesn't not mean killed SIGSEGV. Sorry about the confusion. How can a signal be killed by SIGKILL? Can it be related to Linux OOM Killer? Senthil: Would you mind to have a look at the server logs to see if

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
Brandt Bucher added the comment: Perhaps we need something like invalid_mapping_pattern or invalid_mapping_pattern_double_star rules? -- ___ Python tracker ___

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-09 Thread Brandt Bucher
New submission from Brandt Bucher : Here are a few that I found. Not sure when they were introduced: match ...: case {**rest, "key": value}: pass match ...: case {"first": first, **rest, "last": last}: pass match ...: case {**_}: pass These all give the

[issue44347] Unclear documentation for shutil.copytree()

2021-06-09 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___

[issue44347] Unclear documentation for shutil.copytree()

2021-06-09 Thread Irit Katriel
Irit Katriel added the comment: >From the code, this arg is simply passed to os.mkdirs() here: https://github.com/python/cpython/blob/e6e34e45222b9c7a63ba92386612acf768082ba0/Lib/shutil.py#L450 os.mkdir is documented here: https://docs.python.org/3/library/os.html#os.makedirs and says just

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Eric Snow
Eric Snow added the comment: This was my bad. I only partially fixed original problem when un-reverting 3fa63e in gh-26609. I've merged the rest of the fix in gh-26626. Sorry about that. -- nosy: +eric.snow ___ Python tracker

[issue44348] test_exceptions.ExceptionTests.test_recursion_in_except_handler stack overflow on Windows debug builds

2021-06-09 Thread Ken Jin
Ken Jin added the comment: @Steve thanks for the info, > This is already what we do, so if someone has increased stack usage, they > should also decrease the value here. I see the recursion limit set in _PyEval_InitState but I don't see any special settings for windows. Is it somewhere

[issue44348] test_exceptions.ExceptionTests.test_recursion_in_except_handler stack overflow on Windows debug builds

2021-06-09 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25213 pull_request: https://github.com/python/cpython/pull/26627 ___ Python tracker ___ ___

[issue44365] Bad dataclass post-init example

2021-06-09 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed that that's not a good (or even workable) example. Thanks for pointing it out. I'll come up with something better. -- assignee: docs@python -> eric.smith versions: +Python 3.10, Python 3.11, Python 3.9 ___

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-09 Thread Eric Snow
Eric Snow added the comment: New changeset e6e34e45222b9c7a63ba92386612acf768082ba0 by Eric Snow in branch 'main': bpo-43693: Do not check co_cell2arg if a non-cell offset. (gh-26626) https://github.com/python/cpython/commit/e6e34e45222b9c7a63ba92386612acf768082ba0 --

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >From the gdb session looks to me that you are reading freed or invalid memory >from the dictionary keys. Well, I'm quite sure you are doing that, but I don't >know why they is happening. -- ___ Python

[issue44356] Abstract enum mixins not allowed

2021-06-09 Thread Jordan Ephron
Jordan Ephron added the comment: Oh, on further investigation I see that the example wouldn't have worked on 3.8 anyway, due to issue34536 adding some checks to the type returned by _missing_, so maybe I'm pushing Enum too far in that case. --

[issue44367] Python Code for WebView2 Exe Testing

2021-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, this tracker is not for getting help, only for submitting changes to Python itself. Try https://discuss.python.org/c/users/7 instead. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-09 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +25212 pull_request: https://github.com/python/cpython/pull/26626 ___ Python tracker ___

[issue44187] Implement infrastructure for quickening and specializing

2021-06-09 Thread Mark Shannon
Mark Shannon added the comment: No, this is done -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44187] Implement infrastructure for quickening and specializing

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is anything left in this issue? -- nosy: +pablogsal ___ Python tracker ___ ___

[issue44360] test_compile segfault on AMD64 Ubuntu 3.x

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We'll wait for more builds, but for now the buildbot is green so I think this should be closed and reopened if we see it again. -- ___ Python tracker

[issue44360] test_compile segfault on AMD64 Ubuntu 3.x

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am quite sure this is not a segmentation fault, Victor. -- ___ Python tracker ___ ___

[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as this would obviously need a PEP, please open a discusion first on python-ideas -- nosy: +pablogsal resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Mark Shannon
Mark Shannon added the comment: This line seems to be responsible for most of the failures: https://github.com/python/cpython/blob/main/Objects/frameobject.c#L985 Which does appear to be a true positive. -- ___ Python tracker

[issue44283] Add jump table for certain safe match-case statements

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

[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Irit Katriel
Irit Katriel added the comment: The python-ideas mailing list is a better place for such questions than the bug tracker. -- nosy: +iritkatriel ___ Python tracker ___

[issue44358] AMD64 RHEL8 LTO + PGO 3.x build failed with: /usr/bin/ld: Dwarf Error: Offset (2487097600) greater than or equal to .debug_str size (571933).

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

[issue44367] Python Code for WebView2 Exe Testing

2021-06-09 Thread Bhavna Sewani
New submission from Bhavna Sewani : I have an application developed using webview2. It is a web application that would be driven by Microsoft Edge(Chromium). It would give a feel of Native/Desktop app instead of web app to the end user. I want to automate testing for this app using

[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Boštjan Mejak
New submission from Boštjan Mejak : The syntax to define a class looks like this: class MyClass: pass Nice and neat. *** And the syntax to define a function looks like this: def my_function(): pass Hmmm... *** What if we could define functions (that don't have any parameters) like

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: commit e858ea15718709bc8ec3c13bd8451ff7d62cbe80 (HEAD -> specialize-load-attr) Author: Mark Shannon Date: Wed Jun 9 09:33:13 2021 +0100 Assert that address is in bounds (ASAN thinks it might not be). diff --git a/Python/ceval.c b/Python/ceval.c

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Mark Shannon
Mark Shannon added the comment: What commit are you running that on? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44356] Abstract enum mixins not allowed

2021-06-09 Thread Jordan Ephron
Jordan Ephron added the comment: > But what is an `UnexpectedString()` Sorry, that’s maybe less relevant to the example. It’s just a subclass of string with some marker to make it detectable later on, similar to schemes that taint user input to prevent sql injection or whatever > On Jun 8,

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is not a false positive. I break into gdb at the moment the sanitizer makes the report and inspecting the values that apparently are wrong. I did that by breaking into __sanitizer::ColorizeReports which is called for making the report. THis is

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

2021-06-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset eea8148b7dff5ffc7b84433859ac819b1d92a74d by Ethan Furman in branch 'main': bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586) https://github.com/python/cpython/commit/eea8148b7dff5ffc7b84433859ac819b1d92a74d --

[issue44364] Add non integral tests for `sqrt()`

2021-06-09 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44357] Add math.cbrt() function: Cube Root

2021-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: If we *really* wanted to bikeshed on the name, back in 1991 Kahan wrote: > Perhaps the last problem is the hardest: choosing the program's name. Ideally > it should need no explanation, but a limitation upon its length may preclude > that. Although "CBRT"

[issue44365] Bad dataclass post-init example

2021-06-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > It seems like ceval.c:1600 upsets the sanitizer, at least for gcc. Even if you don't trust the sanitizer, you can also use valgrind, it shows the same error: ❯ valgrind ./python -m test test_lib2to3 ==27010== Memcheck, a memory error detector

[issue44363] Address sanitizer (gcc version) is generating false positives

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Do you think it would be it feasible to run the address sanitizer on all PRs, > so that we can keep it passing? That's a good idea,let me see how easy doing that would be -- ___ Python tracker

[issue44365] Bad dataclass post-init example

2021-06-09 Thread Micael Jarniac
New submission from Micael Jarniac : https://docs.python.org/3/library/dataclasses.html#post-init-processing https://github.com/python/cpython/blob/3.9/Doc/library/dataclasses.rst#post-init-processing In the example, a base class "Rectangle" is defined, and then a "Square" class inherits

  1   2   >