[issue44402] Python 3.9 and 3.10 fails to install in WINE

2021-06-11 Thread Samuel Marks
New submission from Samuel Marks : What works: - python-3.7.9.exe python-3.8.9.exe What fails: - python-3.10.0b2.exe python-3.9.5.exe (I'm debugging some regressions on my test suite… macOS and Linux [incl. in Docker] work, Windows fails) How to reproduce (macOS): 0. Install WINE

[issue41611] IDLE: problems with completions on Mac

2021-06-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41611] IDLE: problems with completions on Mac

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: #40128, which inserted update_idletasks in a different place, fixed completions for me in installed 3.9.5. They already worked fine for me in installed 3.10.0b2. #41859 is another report by Raymond of a 'random' ValueError connected with completions.

[issue44400] Propose random.randbool()

2021-06-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: Not every one line expression needs to be a function in a library. `bool(getrandbits(1))` is self-explanatory enough, and it is doubtful that any implementation would be faster. Using getrandbits(1) to return 0 or 1 is fine; if you need a bool, call bool

[issue19094] urljoin should raise a TypeError if URL is not a string

2021-06-11 Thread Jacob Walls
Change by Jacob Walls : -- pull_requests: +25276 pull_request: https://github.com/python/cpython/pull/26687 ___ Python tracker ___

[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-11 Thread Richard
Change by Richard : -- keywords: +patch nosy: +immortalplants nosy_count: 1.0 -> 2.0 pull_requests: +25274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26686 ___ Python tracker

[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-11 Thread Richard Barnes
New submission from Richard Barnes : PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords currently accept `kwlist` as `char **`; however, is not modified by either function. Therefore, a `const char **` might be better since this allows calling code to take advantage of `const`

[issue44395] email.message as_string() not writing unixfrom

2021-06-11 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44395] email.message as_string() not writing unixfrom

2021-06-11 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +25273 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26685 ___ Python tracker ___

[issue44395] email.message as_string() not writing unixfrom

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

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

2021-06-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +belopolsky, p-ganssle, vstinner versions: -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___

[issue44323] install module fail on windows 10

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for patching Python doc and CPython implementation. As near as I can tell, you are not reporting a CPython bug. If so, this issue should be closed as 'not a bug'. Questions about using Python should go to more appropriate places, such as

[issue44316] Support preserving path meaning in os.path.normpath() and abspath()

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think you should propose this for discussion on python-ideas list to try for more support. If you can, say more about why reconsider. -- nosy: +terry.reedy versions: +Python 3.11 ___ Python tracker

[issue44400] Propose random.randbool()

2021-06-11 Thread Dong-hee Na
New submission from Dong-hee Na : I noticed that the random library does not provide `random.randbool()`. Generating bool value is quite common in the use-case when we generated faked data (unittest, machine learning training, etc) Somebody can say write your own library but it's too common

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a9e20cf7bbf3ba39260fca112938f95e4f317efc by Miss Islington (bot) in branch '3.9': bpo-40128: Fix IDLE autocomplete on macOS (GH-26672) https://github.com/python/cpython/commit/a9e20cf7bbf3ba39260fca112938f95e4f317efc --

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b441e99d89a3f05210cc36ade57699384986ca00 by Miss Islington (bot) in branch '3.10': bpo-40128: Fix IDLE autocomplete on macOS (GH-26672) https://github.com/python/cpython/commit/b441e99d89a3f05210cc36ade57699384986ca00 --

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +25272 pull_request: https://github.com/python/cpython/pull/26684 ___ Python tracker ___

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +25271 pull_request: https://github.com/python/cpython/pull/26683 ___ Python tracker

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f by Kaustubh J in branch 'main': bpo-40128: Fix IDLE autocomplete on macOS (GH-26672) https://github.com/python/cpython/commit/3ec3ee7d2e9b45b586e486e429b412d6d0ca530f --

[issue43298] Windows build cannot detect missing Windows SDK

2021-06-11 Thread Steve Dower
Steve Dower added the comment: Jason - I think your -add and -remove options need work. I'm pretty sure the AzureBuildTools component doesn't bring in the C++ compilers or the WinSDK. If you configure it manually and interactively, you should be able to export a JSON configuration and then

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-11 Thread miss-islington
miss-islington added the comment: New changeset 57b3ca7f0aef4d180038d475398f809d3fcdd8be by Miss Islington (bot) in branch '3.9': bpo-41299: Reduce lag in Windows threading timeouts by using a higher precision time source (GH-26568)

[issue44399] log rotator cookbook example might waste disk space

2021-06-11 Thread mori-b
mori-b added the comment: Additional precision : this issue can happen when the log file is shared between multiple threads. And naturally also between different processes, which is not recommended but can happen by mistake. -- ___ Python tracker

[issue44381] Allow enabling control flow guard in Windows build

2021-06-11 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44381] Allow enabling control flow guard in Windows build

2021-06-11 Thread miss-islington
miss-islington added the comment: New changeset 42612db10792dd069149063f67a3b1db700bc7ee by Miss Islington (bot) in branch '3.10': bpo-44381: Windows build now allows enabling control flow guard (GH-26645) https://github.com/python/cpython/commit/42612db10792dd069149063f67a3b1db700bc7ee

[issue44381] Allow enabling control flow guard in Windows build

2021-06-11 Thread Steve Dower
Steve Dower added the comment: New changeset 9580d3894ad158ae909e7573a02dcd087de0b673 by Miss Islington (bot) in branch '3.9': bpo-44381: Windows build now allows enabling control flow guard (GH-26645) https://github.com/python/cpython/commit/9580d3894ad158ae909e7573a02dcd087de0b673

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-11 Thread Jack DeVries
Change by Jack DeVries : -- nosy: +jack__d nosy_count: 10.0 -> 11.0 pull_requests: +25270 pull_request: https://github.com/python/cpython/pull/26643 ___ Python tracker ___

[issue44381] Allow enabling control flow guard in Windows build

2021-06-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +25269 pull_request: https://github.com/python/cpython/pull/26682 ___ Python tracker ___

[issue44381] Allow enabling control flow guard in Windows build

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

[issue44381] Allow enabling control flow guard in Windows build

2021-06-11 Thread Steve Dower
Steve Dower added the comment: New changeset 5af56c6f2a0d11df37fed7ecaaf321cf6926ba13 by Steve Dower in branch 'main': bpo-44381: Windows build now allows enabling control flow guard (GH-26645) https://github.com/python/cpython/commit/5af56c6f2a0d11df37fed7ecaaf321cf6926ba13 --

[issue44398] IDLE: On macOS, cntl-space/backslash display as ^S/^B

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: ^B would work as an alternate binding for <> as it is not used otherwise, but I prefer not to have to do this. These are the only named keys other than the 'F#'s. -- ___ Python tracker

[issue44399] log rotator cookbook example might waste disk space

2021-06-11 Thread mori-b
mori-b added the comment: In https://docs.python.org/3/howto/logging-cookbook.html#using-a-rotator-and-namer-to-customize-log-rotation-processing, the log rotator example deletes the original log file after compressing it. However, running on Linux the command "lsof +L1" shows that the

[issue44399] log rotator cookbook example might waste disk space

2021-06-11 Thread mori-b
New submission from mori-b : In https://docs.python.org/3/howto/logging-cookbook.html#using-a-rotator-and-namer-to-customize-log-rotation-processing, the log rotator example deletes the original log file after compressing it. However, running on Linux the command "lsof +S1" shows that the

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Kaustubh J
Change by Kaustubh J : -- keywords: +patch nosy: +thsubaku9 nosy_count: 5.0 -> 6.0 pull_requests: +25267 pull_request: https://github.com/python/cpython/pull/26672 ___ Python tracker

[issue40128] IDLE Show completions pop-up not working on macOS

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.10.0b2 on my MacBook Air, completions work as far as I tested, with Edit => Show completions, Tab, and ^-Space. i i<^-Space> int.(configered pause) int.<^-Space, after dismissing box with Esc key> 3.9.5, without the patch, remains buggy. I attribute

[issue44398] IDLE: On macOS, cntl-space/backslash display as ^S/^B

2021-06-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : (Related to the more general macOS hotkey issue 18444.) 'Edit => Show completions' invokes pseudoevent <>. In all built-in keysets, the latter is bound to Control-space. This includes on macOS, as can be seen on the Settings Keys tab. On Windows, and I

[issue32275] SSL socket methods don't retry on EINTR?

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

[issue44395] email.message as_string() not writing unixfrom

2021-06-11 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-06-11 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44389] Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'

2021-06-11 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 1.0 -> 2.0 pull_requests: +25266 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26680 ___ Python tracker

[issue44372] Can't install Python3.8, 3.9, 3.10 various errors including 0x80070643

2021-06-11 Thread Steve Dower
Steve Dower added the comment: Sorry, you've reported a range of issues here and it's not clear what the problem is. Many many people (literally millions) have successfully installed Python on Windows with these installers, and even more (including most Microsoft products) use the

[issue42044] Running Python in unbuffered mode may not write all contents to the console

2021-06-11 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Seems fair. I just did a pull request to remove those limits. Please let me know if you think something else is needed there. -- ___ Python tracker

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-06-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25265 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26679 ___ Python tracker ___

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is an error in the Python implementation of Decimal.__hash__. It calls super().__hash__(), but the C implementation calls object.__hash__(). Also, the documentation for floating point hash has the same error. -- stage: resolved -> status:

[issue42044] Running Python in unbuffered mode may not write all contents to the console

2021-06-11 Thread Fabio Zadrozny
Change by Fabio Zadrozny : -- keywords: +patch pull_requests: +25264 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26678 ___ Python tracker ___

[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-06-11 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +25263 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26677 ___ Python tracker ___

[issue44397] Add Linked Linked module

2021-06-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Closing as a duplicate of issue42575. Adding a linked list data structure to Python is in any case probably better discussed on the python-ideas mailing list and then in a PEP. -- nosy: +Jelle Zijlstra resolution: -> duplicate stage: -> resolved

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, found the problem, we are not resetting the multi-line-start pointer when we are reallocating the tokenizer buffers. -- stage: patch review -> ___ Python tracker

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

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

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-06-11 Thread sping
Change by sping : -- title: [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Updated to vendoed copy to expat 2.4.1 -> [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1 ___

[issue44397] Add Linked Linked module

2021-06-11 Thread Dennis Sweeney
Dennis Sweeney added the comment: This issue is probably a duplicate of https://bugs.python.org/issue42575 . In almost all use cases, a linked list can be replaced by a collections.deque, which already uses a double linked list of blocks internally. Is there something you need a linked list

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Updated to vendoed copy to expat 2.4.1

2021-06-11 Thread sping
sping added the comment: FTR that^^ Sebastian is me :) -- nosy: +sping ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This affects 3.10 as well -- versions: +Python 3.10 ___ Python tracker ___ ___

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think this should fix the issue, but someone should validate this: diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 6002f3e05a..1c28737183 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1084,17 +1084,16 @@ syntaxerror(struct

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Here is a smaller reproducer: x = "ijosdfsd\ def blech(): pass This seems to be an error with: commit a698d52c3975c80b45b139b2f08402ec514dce75 Author: Batuhan Taskaya Date: Thu Jan 21 00:38:47 2021 +0300 bpo-40176: Improve error messages

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset 6df926f1c46eb6db7b5dcd0227c6b532c78525c9 by Miss Islington (bot) in branch '3.9': bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646) (GH-26675)

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset 9c0180ae7761b352116a2528aae61eea10e31045 by Miss Islington (bot) in branch '3.10': bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646) (GH-26674)

[issue42516] Add function to get caller's name

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

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-06-11 Thread realead
realead added the comment: This change makes life harder for people trying to get sane behavior with sets for float-, complex- and tuple-objects containing NaNs. With "sane" meaning, that set([nan, nan, nan]) => {nan} Until now, one has only to override the equal-comparison for these

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Updated to vendoed copy to expat 2.4.1

2021-06-11 Thread Guido van Rossum
Guido van Rossum added the comment: (From PSRT list, Sebastian:) Please note that the vulnerability fix also added two new functions to the API that would be great to have xml.parsers.expat expose to the users for full control. These are: -

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread Guido van Rossum
Guido van Rossum added the comment: Lysandros and Pablo, this *only* occurs when the lexer is reading directly from a file, not when it's reading the same source code from a (bytes) string. All examples are syntax errors (some raise ValueError in the parser). --

[issue44397] Add Linked Linked module

2021-06-11 Thread Ajith Ramachandran
New submission from Ajith Ramachandran : There is a module present for queue which can also be used for a stack like LIFO structure. But there is none for linked list. -- components: Library (Lib) messages: 395640 nosy: AjithRamachandran priority: normal severity: normal status: open

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +25261 pull_request: https://github.com/python/cpython/pull/26675 ___ Python tracker ___

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25260 pull_request: https://github.com/python/cpython/pull/26674 ___ Python tracker

[issue43318] pdb does not output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-06-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4cb6ba14325cff98589c2660d1d2c65f4aacfee4 by huzhaojie in branch 'main': bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints (GH-24646) https://github.com/python/cpython/commit/4cb6ba14325cff98589c2660d1d2c65f4aacfee4

[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()

2021-06-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +gvanrossum, lys.nikolaou, pablogsal title: Use-After-Free -> pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror() ___ Python tracker

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

2021-06-11 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset fc98266ff627ba0f56f8ae241245b66bc983baa3 by Lumír 'Frenzy' Balhar in branch 'main': bpo-44351: Restore back parse_makefile in distutils.sysconfig (GH-26637) https://github.com/python/cpython/commit/fc98266ff627ba0f56f8ae241245b66bc983baa3

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

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

[issue44396] Use-After-Free

2021-06-11 Thread alessandro mantovani
New submission from alessandro mantovani : Use After Free in python3.11 (commit 2ab27c4af4ddf752) Steps to reproduce: 1) ./configure --with-address-sanitizer 2) make 3) ./python I attach some of the input that lead to the undefined behavior For the complete description you can find the

[issue18767] csv documentation does not note default quote constant

2021-06-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: The docs do say that now: .. attribute:: Dialect.quoting Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the :const:`QUOTE_\*` constants (see section :ref:`csv-contents`) and defaults to

[issue44395] email.message as_string() not writing unixfrom

2021-06-11 Thread Konstantin Ryabitsev
New submission from Konstantin Ryabitsev : When using as_string(unixfrom=True), the "From " line is not always printed. The behaviour is correct for as_bytes(). Test case: import email.message msg = email.message.EmailMessage() msg.set_payload('Hello World\n') msg.set_unixfrom('From

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Updated to vendoed copy to expat 2.4.1

2021-06-11 Thread STINNER Victor
New submission from STINNER Victor : Our vendored copy of Modules/expat/ should be updated to Expat 2.4.1 to retrieve the fix for the security vulnerabily CVE-2013-0340 "Billion Laughs": https://blog.hartwork.org/posts/cve-2013-0340-billion-laughs-fixed-in-expat-2-4-0/ The table of

[issue32219] SSLWantWriteError being raised by blocking SSL socket

2021-06-11 Thread Kyle Altendorf
Change by Kyle Altendorf : -- nosy: +altendky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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-11 Thread Mike Kaganski
Mike Kaganski added the comment: @Eryk Sun: yes, of course you are right - but please see the date of the commit; I didn't know what you kindly explained me in your reply yesterday :-) Thank you again. -- ___ Python tracker

[issue44393] segfault with sys.setrecursionlimit

2021-06-11 Thread Eric V. Smith
Eric V. Smith added the comment: That's the documented behavior: "A user may need to set the limit higher when they have a program that requires deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash."

[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-11 Thread Eryk Sun
Eryk Sun added the comment: Note that this explanation in your commit is wrong and unhelpful: "likely because datetime.datetime.now in the native Windows Python takes into account both system timezone data and the TZ environment variable". When TZ is set, localtime() is based only on the TZ

[issue19094] urljoin should raise a TypeError if URL is not a string

2021-06-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44359] test_ftplib fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-06-11 Thread Senthil Kumaran
Change by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44392] Py_GenericAlias is not documented

2021-06-11 Thread Ken Jin
Ken Jin added the comment: Ronald, may I take this please? Or are you working on something already? -- nosy: +gvanrossum, kj ___ Python tracker ___

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

2021-06-11 Thread Ethan Furman
Ethan Furman added the comment: New changeset 0a186b1ec1fd094d825f08a4eb39fa83ef57067a by Miss Islington (bot) in branch '3.10': bpo-44242: [Enum] improve error messages (GH-26669) https://github.com/python/cpython/commit/0a186b1ec1fd094d825f08a4eb39fa83ef57067a --

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

2021-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +25258 pull_request: https://github.com/python/cpython/pull/26671 ___ Python tracker

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2021-06-11 Thread Ethan Furman
Ethan Furman added the comment: New changeset c956734d7af83ad31f847d31d0d26df087add9a4 by Ethan Furman in branch 'main': bpo-44242: [Enum] improve error messages (GH-26669) https://github.com/python/cpython/commit/c956734d7af83ad31f847d31d0d26df087add9a4 --

[issue44359] test_ftplib fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-06-11 Thread STINNER Victor
STINNER Victor added the comment: Another example on PPC64LE Fedora Stable LTO 3.10: https://buildbot.python.org/all/#/builders/644/builds/98 0:00:38 load avg: 7.51 [ 78/427/1] test_ftplib failed (env changed) -- running: test_signal (39.0 sec), test_nntplib (35.2 sec) Warning -- Uncaught

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +25257 pull_request: https://github.com/python/cpython/pull/26670 ___ Python tracker ___

[issue44393] segfault with sys.setrecursionlimit

2021-06-11 Thread Alex Hall
New submission from Alex Hall : Found on: Python 3.9.5 GCC 11.1 on Linux (x86_64) Reproduced on: Python 3.9.5 Clang 9.0.8 Linux (arm) When setting the recursion limit to a high enough amount, trying to reach that recursion limit ends in a segmentation fault (stack overflow?) code: ```py

[issue44392] Py_GenericAlias is not documented

2021-06-11 Thread Ronald Oussoren
New submission from Ronald Oussoren : Py_GenericAlias seems to be a public API given its name and is mention in the stable ABI list for 3.10 (https://docs.python.org/3.10/c-api/stable.html?highlight=py_genericalias), but the API is not documented. Likewise for Py_GenericAliasType.

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

2021-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe add two key functions for making NaN either the smallest or the largest number? min(1, NAN, key=nan_is_smallest) -> NAN max(1, NAN, key=nan_is_smallest) -> 1 sorted([1, NAN, 2], key=nan_is_smallest) -> [NAN, 1, 2] min(1, NAN, key=nan_is_largest) -> 1

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

2021-06-11 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +25256 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26669 ___ Python tracker ___

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

2021-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: > That is, do we want NaNs to sort to the beginning of the list, or the end? FWIW, NumPy chooses to sort NaNs to the end of the list: https://numpy.org/doc/stable/reference/generated/numpy.sort.html -- ___ Python

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread miss-islington
miss-islington added the comment: New changeset e6d28a1a6ad22125fc3a6df2d611d79aa8d6f67e by Miss Islington (bot) in branch '3.10': bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644) https://github.com/python/cpython/commit/e6d28a1a6ad22125fc3a6df2d611d79aa8d6f67e --

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

2021-06-11 Thread Mark Dickinson
Mark Dickinson added the comment: > We should consider biting the bullet and revising the default NaN sort order. If we went that route, I think we wouldn't need to consider payload or identity. We could just do: NaN < NaN -> False NaN < non-NaN -> True non-NaN <

[issue44391] PC/launcher.c,one more argument than required

2021-06-11 Thread Brother Beer
New submission from Brother Beer : cpython-3.10.0b2/PC/launcher.c, line 347 One more argument than required? 345 else if (attrs & FILE_ATTRIBUTE_DIRECTORY) { 346 debug(L"locate_pythons_for_key: '%ls' is a directory\n", 347 ip->executable, attrs); 348

[issue44390] PC/frozen_dllmain.c, some expressions have no side effects

2021-06-11 Thread Brother Beer
New submission from Brother Beer : cpython-3.10.0b2/PC/frozen_dllmain.c, line 66 63 void PyWinFreeze_ExeInit(void) 64 { 65 char **modName; 66 for (modName = possibleModules;*modName;*modName++) { 67 /* printf("Initialising '%s'\n", *modName); */ 68

[issue40213] contextlib.aclosing()

2021-06-11 Thread John Belmonte
John Belmonte added the comment: merged for Python 3.10 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +25255 pull_request: https://github.com/python/cpython/pull/26668 ___ Python tracker

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa by Victor Stinner in branch 'main': bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644) https://github.com/python/cpython/commit/304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa --

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

2021-06-11 Thread Ethan Furman
Ethan Furman added the comment: Also changing error reporting to be less susceptible to DOS attacks. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

  1   2   >