[issue43740] Long paths in imp.load_dynamic() lead to segfault

2021-04-06 Thread Xinmeng Xia
New submission from Xinmeng Xia : Long paths as arguments of imp.load_dynamic() lead to interpreter crashes. Crash example = Python 3.10.0a2 (default, Nov 24 2020, 14:18:46) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license"

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: __dcigettext() contains: domainname_len = strlen (domainname); xdomainname = (char *) alloca (strlen (categoryname) + domainname_len + 5); It tries to allocate a buffer on stack, and for domain name causes stack overflo

[issue43664] Long computations in pdb.run() lead to segfault

2021-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is an old known issue, it is not specific to pdb, but happens with compile(), and it is not fixed yet. >>> compile("+0"*100, '?', 'eval') Segmentation fault (core dumped) Stack overflow in recursive call of validate_expr() in at Python/ast.c:223. -

[issue17305] IDNA2008 encoding is missing

2021-04-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch nosy: +gregory.p.smith nosy_count: 15.0 -> 16.0 pull_requests: +23948 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25208 ___ Python tracker

[issue43664] Compiling long expression leads to segfault (again)

2021-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Long computations in pdb.run() lead to segfault -> Compiling long expression leads to segfault (again) versions: +Python 3.10, Python 3.8 ___ Python tracker ___

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lemburg, mark.dickinson, rhettinger, stutzbach ___ Python tracker ___ ___ Python-bugs-list ma

[issue43741] http.client leaks from self.fp.read()

2021-04-06 Thread Hynek Petrak
New submission from Hynek Petrak : Hi, I wrote an webcrawler, which is using ThreadPoolExecutor to span multiple thread workers, retrieve content of a web using via http.client and saves it to a file. After a couple of thousands requests have been processes, the crawler starts to consume memo

[issue17305] IDNA2008 encoding is missing

2021-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: My PR merely adds a note to the docs linking to idna on pypi. Don't get excited, it doesn't implement anything. :P re "Once Python has a working idna2008 encoder, we need to address integration into socket, ssl, http, and asyncio module." ... doing that

[issue43738] Clarify public name of curses.window

2021-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It could help also in help(). -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs

[issue43741] http.client leaks from self.fp.read()

2021-04-06 Thread Hynek Petrak
Hynek Petrak added the comment: Python 3.9.2 on Kali Linux. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43684] Add combined opcodes

2021-04-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue17305] IDNA2008 encoding is missing

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 1d023e374cf96d143b065242131ddc9b889f9a1e by Gregory P. Smith in branch 'master': bpo-17305: Link to the third-party idna package. (GH-25208) https://github.com/python/cpython/commit/1d023e374cf96d143b065242131ddc9b889f9a1e -- nosy: +mi

[issue17305] IDNA2008 encoding is missing

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

[issue17305] IDNA2008 encoding is missing

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

[issue43684] Add combined opcodes

2021-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interesting. What code did you use to collect statistics? I used patches in issue27255. Perhaps it is worth to add an optionally compiled code for collecting dynamic opcode statistics permanently. We have around 125 opcodes, so 0.5% looks too small. But wh

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset 489c36920e94bfb4988b6f965bd0aafdfaff0d4f by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204) https://github.com/python/cpython/commit/489c36920e94bfb4988b6f965bd0aafdfaff0d4f -- __

[issue43736] asyncio create_task() odd behavior

2021-04-06 Thread Yanghao Hua
Yanghao Hua added the comment: This unfortunately contradicts to all the other concurrency semantics I know, I have myself implemented various event-driven schedulers and none of them would behave like this. Consider an OS as the simplest example, you have a main thread that starts many child

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-04-06 Thread julian colomina
New submission from julian colomina : taking the example verbatim into an ubuntu 20.04 with Python 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0] on linux will hand indefinitely at data = await reader.read(100) changing for data = await asyncio.wait_for(reader.read(100),5) will always

[issue17305] IDNA2008 encoding is missing

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset c7ccb0ff61e443633d0c54cb18b5633a8e95b30c by Miss Islington (bot) in branch '3.9': bpo-17305: Link to the third-party idna package. (GH-25208) https://github.com/python/cpython/commit/c7ccb0ff61e443633d0c54cb18b5633a8e95b30c -- ___

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-06 Thread Pablo Conesa
New submission from Pablo Conesa : Hi, one of our users is reporting this starting to happen in a GPFS. All has been working fine for NTFS so far for many years. I had a look at my shutil code, and I can see the try/except code trying to fall back to the "slower" copyfileobj(fsrc, fdst). But

[issue43736] asyncio create_task() odd behavior

2021-04-06 Thread Yanghao Hua
Yanghao Hua added the comment: Poking around a bit more revealed another interesting behavior and now I understand what went wrong with asyncio.create_task() :-) In the example I show, you don't have to "await t1", you only have to "await t0/t1", e.g. await on one of them, and both starts ex

[issue43736] asyncio create_task() odd behavior

2021-04-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Please consider `await` as a 'yield point': the point where the current task may be suspended to get other tasks a chance to be executed. It can be any `await`, not necessarily waiting for a task. Just a point where asyncio event loop gives a chance to r

[issue43736] asyncio create_task() odd behavior

2021-04-06 Thread Yanghao Hua
Yanghao Hua added the comment: by the way, another feedback, of course, curio works the way it should, no matter where do you await ;-) Now I start to understand why David Beazley has to create curio. Python asyncio team should really really think about it carefully, please. You don't have to

[issue43744] enum: Adding a var named _anything__ raises IndexError

2021-04-06 Thread Matthias Urlichs
New submission from Matthias Urlichs : While checking out the Enum implementation I noticed that this code snippet results in an IndexError. I have no idea which error or warning (if any) this should generate instead. Opinions? import enum class duh(enum.Enum): _duh__ = "moo"

[issue43744] enum: Adding a member named _anything__ raises IndexError

2021-04-06 Thread Matthias Urlichs
Change by Matthias Urlichs : -- title: enum: Adding a var named _anything__ raises IndexError -> enum: Adding a member named _anything__ raises IndexError ___ Python tracker _

[issue43744] enum: Adding a member named _classname__ raises IndexError

2021-04-06 Thread Matthias Urlichs
Change by Matthias Urlichs : -- title: enum: Adding a member named _anything__ raises IndexError -> enum: Adding a member named _classname__ raises IndexError ___ Python tracker _

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-06 Thread Anthony Flury
Anthony Flury added the comment: I take your point about warnings etc - but when you come from other languages the Python behavior can initially be very surprising. The reference section has always seemed to be a very technical document, certainly not targeted at the usual audience of people

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Bill Collins
New submission from Bill Collins : >>> import sys,ssl >>> sys.version '3.9.4 (tags/v3.9.4:1f2e308, Apr 4 2021, 13:27:16) [MSC v.1928 64 bit (AMD64)]' >>> ssl.OPENSSL_VERSION 'OpenSSL 1.1.1i 8 Dec 2020' I may well be holding it wrong, but something seems off. -- components: Windows me

[issue43746] Weird typing annotation closure behavior

2021-04-06 Thread conchylicultor
New submission from conchylicultor : I observe some strange closure behavior for typing annotations when the name is defined ``` x: x = 1 # Works, __annotation__ == {'x': 1} ``` This creates issue, for example: ``` from ... import losses class A: # AttributeError: 'Losses' object has no

[issue43746] Weird typing annotation closure behavior

2021-04-06 Thread conchylicultor
Change by conchylicultor : -- components: +Interpreter Core type: -> behavior versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue43746] Weird typing annotation closure behavior

2021-04-06 Thread conchylicultor
Change by conchylicultor : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-06 Thread Mark Shannon
Mark Shannon added the comment: New changeset b37181e69209746adc2119c471599a1ea5faa6c8 by Mark Shannon in branch 'master': bpo-43683: Handle generator entry in bytecode (GH-25138) https://github.com/python/cpython/commit/b37181e69209746adc2119c471599a1ea5faa6c8 -- _

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-06 Thread Anthony Flury
Anthony Flury added the comment: Should the data structures page also link to the FAQ. The problem with the FAQ is that most beginners don't even know that == vs 'is' is actually a question they need to ask, and therefore they aren't likely to look at the FAQ in the first place. --

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: No, I think I was holding git wrong (and built 1.1.1i again instead of 1.1.1k). Guess we get to do more releases... -- nosy: +lukasz.langa priority: normal -> release blocker ___ Python tracker

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Christian Heimes
Christian Heimes added the comment: Uh :( No more holiday releases, please. The RMs and release team need their vacation. -- nosy: +christian.heimes ___ Python tracker ___ __

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: > No more holiday releases, please. The RMs and release team need their > vacation. I agree, can you ask OpenSSL to stop releasing fixes? (or alternatively, can you convince everyone to let us switch to the native TLS stack on Windows where the upstream fixes

[issue43744] enum: Adding a member named _classname__ raises IndexError

2021-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Anything is better than nothing, from my POV. Let's get it running, tweak it, and if it doesn't work for us then take it down. -- ___ Python tracker __

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, will create PRs for the release branches that are receiving fixes -- ___ Python tracker ___ __

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: > Also, we can use libabigail. RHEL uses that to provide ABI guarantees on the kernel and the glibc. -- nosy: +vstinner ___ Python tracker _

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Christian Heimes
Christian Heimes added the comment: Do we need separate jobs and ABI dumps for each platform and arch? I guess we need at least separate dumps for 32 and 64bit. -- nosy: +christian.heimes ___ Python tracker ___

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +23951 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25213 ___ Python tracker ___

[issue43746] Weird typing annotation closure behavior

2021-04-06 Thread conchylicultor
conchylicultor added the comment: Interestingly mypy, pylint correctly resolve the closure. ``` class A: dataclasses: dataclasses.Field = dataclasses.field() A.dataclasses.other # mypy error: "Field[Any]" has no attribute "other" ``` So the current workaround is to use quotes: ``` clas

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Do we need separate jobs and ABI dumps for each platform and arch? I guess we > need at least separate dumps for 32 and 64bit. Not really, check what happened in my 64 build system when I did the changes that broke the ABI in the latest 3.9 release:

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Petr Viktorin
Petr Viktorin added the comment: Not sure what platforms libabigail works on, but the set of stable ABI symbols is platform-specific. Currently it's affected by the MS_WINDOWS and HAVE_FORK defines. -- ___ Python tracker

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Given that the PR is against master is this issue present in Python 3.10 alphas too since last alpha was released today. -- nosy: +pablogsal, xtreak ___ Python tracker

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: It is, but I wouldn't hold up an alpha or beta release because of this. -- versions: +Python 3.10 ___ Python tracker ___ ___

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Steve Dower
Steve Dower added the comment: I assume it's only doing source analysis, so we can probably force those flags on for the check? Or run multiple checks with the options, but without having to switch platform. Even under MS_WINDOWS, I hope we're not using declarations from the Windows header

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 354b015c176b10ee7e2218ba4f3bbc9455cb893f by Steve Dower in branch 'master': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/354b015c176b10ee7e2218ba4f3bbc9455cb893f -- __

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-06 Thread Anthony Flury
Anthony Flury added the comment: I am working on a pull request for this. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue43747] Can't create new interpreter in multi thread

2021-04-06 Thread Kun He
New submission from Kun He : Hello, I'm working a C extension interface of Python. I want to create a new interpreter by using the function Py_NewInterpreter() in a new thread, which is created by pthread_create (my test files are in attachment), but there are always errors when calling Py_N

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Andre Roberge
New submission from Andre Roberge : Python version 3.10.0a7 added a more informative error message for: >>> f"{**k}" File "", line 1 (**k) ^ SyntaxError: f-string: can't use double starred expression here Previously, the message was simply "SyntaxError: invalid syntax". So, this c

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Łukasz Langa
Łukasz Langa added the comment: I elect to replace 3.9.4 Windows installers. 1. It's a Windows installer specific problem, no other users are affected. 2. You can always reinstall. You can tell by the dates reported by the REPL or in fact by checking ssl.OPENSSL_VERSION. 3. There will be 3.9

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If I understand correctly, this is analyzing the DWARF information on the binaries, so is quite coupled to the platform you compile to, but you can detect violations that affect other platforms if they share the same code. --

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5787ba4a45492e232f5470c7d2e93763198e4b22 by Hai Shi in branch 'master': bpo-4: Don't build xxlimited with Py_TRACE_REFS macro (GH-25180) https://github.com/python/cpython/commit/5787ba4a45492e232f5470c7d2e93763198e4b22 --

[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2021-04-06 Thread Athanasius
Athanasius added the comment: I excitedy thought that you closing this issue meant that Python 3.9.3 or 3.9.4 had the newer TCL and this fixed. Sadly not. I've just had GitHub build a fresh executable using Python 3.9.4 (as evidenced by `Running on Python v3.9.4 (tags/v3.9.4:1f2e308, Apr 4

[issue43747] Can't create new interpreter in multi thread

2021-04-06 Thread Samuel Thibault
Change by Samuel Thibault : -- nosy: +samuel-thibault ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Y we cnn I think we may regret it, but happy to go with it if you'd prefer. FWIW, the code change isn't necessary if you do a totally clean rebuild. However, most builders do not do totally clean rebuilds, so the code change ensures that th

[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23952 pull_request: https://github.com/python/cpython/pull/25214 ___ Python tracker ___ _

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
New submission from Ian Norton : On windows, the venv module does not copy the correct python exe if the current running exe (eg sys.executable) has been renamed (eg, named python3.exe) venv will only make copies of python.exe, pythonw.exe, python_d.exe or pythonw_d.exe. If for example the p

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
Ian Norton added the comment: This may also cause https://bugs.python.org/issue35644 -- ___ Python tracker ___ ___ Python-bugs-list

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: > Withdrawing the readiness - @ambv and I would prefer to see this behind a > flag (probably "strict" parsing), on by default for 3.10, and maybe on by > default for 3.9/earlier. Last time we added a new parameter in a stable branch, it didn't go well: https

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list maili

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 8a34a0793bcb830350dac675524310bb285e5e4f by Miss Islington (bot) in branch '3.9': bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205) https://github.com/python/cpython/commit/8a34a0793bcb830350dac675524310bb285e5e4f --

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +23953 pull_request: https://github.com/python/cpython/pull/25215 ___ Python tracker ___ ___

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: Skip Montanaro: "The latest commit seems to break the build if configured --with-trace-refs." Oops, I forgot about this special build mode. Thanks for the reminder Skip, and thanks for the fix Hai ;-) Skip: By the way, I'm curious, why do you use --with-tra

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-04-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
Change by Ian Norton : -- keywords: +patch pull_requests: +23954 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25216 ___ Python tracker ___ _

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: We can change the wording to `cannot` in order for all of the error messages to be consistent. Would you like to propose a PR, Andre? -- ___ Python tracker

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all "can't" in error messages were replaced by "cannot". $ find Parser Python Objects Modules -name '*.[ch]' | xargs egrep '".*[Cc]an'\''t.*"' | wc -l 181 $ find Parser Python Objects Modules -name '*.[ch]' | xargs egrep '".*[Cc]annot.*"' | wc -l 247

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

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

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

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

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 1744c96ebc98b240f2564f75191097704b37244f by Eric V. Smith in branch 'master': Fix blurb for bpo-43176. (GH-25215) https://github.com/python/cpython/commit/1744c96ebc98b240f2564f75191097704b37244f --

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: Raymond Hettinger: > I don't think there is any advantage in doing this. It will just break code > that has worked for a very long time. Do you mean code written for Python 2? Right, it's unfortunate that it became harder to write a single code base working

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Andre Roberge
Andre Roberge added the comment: Since all the messages I track so far (https://github.com/aroberge/friendly/blob/master/friendly/syntax_errors/message_analyzer.py) had been changed when going from 6.7 to 3.8, I had (incorrectly) assumed that all such error messages been changed to use canno

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 76c4a9fb8ae370901b387a4edb609295bcc159e7 by Miss Islington (bot) in branch '3.8': [3.8] Fix blurb for bpo-43176. (GH-25215) (GH-25218) https://github.com/python/cpython/commit/76c4a9fb8ae370901b387a4edb609295bcc159e7 -- __

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-06 Thread Anthony Flury
Change by Anthony Flury : -- keywords: +patch pull_requests: +23957 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25220 ___ Python tracker ___ __

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread Steve Dower
Steve Dower added the comment: The important quote from the linked issue seems to be: > Our new separator= parameter does not allow one to achieve the previous > behavior if mixing and matching & And ; was intended to be allowed, as it is > a single separator rather than a set of separators.

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Dong-hee Na added the comment: For the record, following built-in functions now support vectorcall calling convention from Python 3.10!! Thank you to everyone who works with this :) - map: bpo-43575 - filter: bpo-43287 - reversed: bpo-41922 - bool: bpo-41870 - float: bpo-41873 --

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23958 pull_request: https://github.com/python/cpython/pull/25219 ___ Python tracker ___ _

[issue41873] Add vectorcall for float()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23959 pull_request: https://github.com/python/cpython/pull/25219 ___ Python tracker ___ _

[issue41873] Add vectorcall for float()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -23959 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 611aa39142f156508945ac312724474c493a6691 by Steve Dower in branch '3.9': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/611aa39142f156508945ac312724474c493a6691 -- _

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +23960 pull_request: https://github.com/python/cpython/pull/25223 ___ Python tracker ___

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: A new 3.9.4 and 3.8.9 release is available for download from python.org. The Nuget and Windows Store packages will have to remain as the original versions, since those do not allow us to overwrite with the same version number. -- resolution: -> fixed s

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 2df971afd5f29574be3bb44f2d8569cc240b800d by Miss Islington (bot) in branch '3.9': Fix blurb for bpo-43176. (GH-25215) (GH-25217) https://github.com/python/cpython/commit/2df971afd5f29574be3bb44f2d8569cc240b800d -- _

[issue43750] Undefined constant PACKET_MULTIHOST referred to in package socket

2021-04-06 Thread Tom Cook
New submission from Tom Cook : The documentation for the `AF_PACKET` address family refers to `PACKET_MULTIHOST`. I believe this should read `PACKET_MULTICAST`, which is defined on Linux systems (`PACKET_MULTIHOST` is not). -- assignee: docs@python components: Documentation messages:

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 9a988b8cd8344808a03c9a2ba0c9ba2188240eae by Miss Islington (bot) in branch '3.8': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/9a988b8cd8344808a03c9a2ba0c9ba2188240eae -

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset efccff9ac84009ef48e8cb22548ce80940f76533 by Dong-hee Na in branch 'master': bpo-41870: Update What's News 3.10 about vectorcall (#25219) https://github.com/python/cpython/commit/efccff9ac84009ef48e8cb22548ce80940f76533 -- ___

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 57c6cb5100d19a0e0218c77d887c3c239c9ce435 by Brett Cannon in branch 'master': bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169) https://github.com/python/cpython/commit/57c6cb5100d19a0e0218c77d887c3c239c9ce435 --

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-06 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43751] await anext() returns None when default is given

2021-04-06 Thread PEW's Corner
New submission from PEW's Corner : The new anext() builtin in Python 3.10.0a7 doesn't seem to work properly when a default value is provided as the second argument. Here's an example: import asyncio async def f(): yield 'A' yield 'B' async def main(): g = f() print(await anex

[issue43684] Add combined opcodes

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: > Interesting. What code did you use to collect statistics? For static statistics I wrote my own script: https://github.com/python/cpython/pull/25090/files#diff-994d3592c951c78cbe71084d562590d1507ddfed767e2ec040f5e2610845a11c. I can add that to Tools perma

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Bill Collins
Bill Collins added the comment: Thanks for the quick action on this! I've downloaded the new 3.8.9/3.9.4 installers, but they are unable to run over my existing 3.8.9/3.9.4 installs; "Unable to install python 3.9.4 (64-bit) due to an existing install." This is probably fine as I can just un

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I do not think anyone cares. :-) -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: > In this case, having it off by default goes further to prevent breakage PyYAML was unsafe by default: it allowed to execute arbitary Python code by default. It took years to change the default to "safe". I don't think that adding a parameter for opt-in for

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-06 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23961 pull_request: https://github.com/python/cpython/pull/25224 ___ Python tracker ___

  1   2   >