[issue46864] Deprecate ob_shash in BytesObject

2022-03-21 Thread Inada Naoki
Inada Naoki added the comment: I'm sorry. Maybe, ccache hides the warning from me. -- ___ Python tracker ___ ___ Python-bugs-list

[issue46864] Deprecate ob_shash in BytesObject

2022-03-21 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +30132 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32042 ___ Python tracker ___

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-21 Thread Guido van Rossum
Guido van Rossum added the comment: Andrew, thanks for explaining this. The key thing I was missing was that the root cause of the problem is that Future.__del__ is trying to log an error about the un-awaited task by calling the exception handler directly. That actually feels a little

[issue40172] ZipInfo corrupts file names in some old zip archives

2022-03-21 Thread Daniel Hillier
Daniel Hillier added the comment: Related to issue https://bugs.python.org/issue28080 which has a patch that covers a bit of this issue -- ___ Python tracker ___

[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-03-21 Thread Matt Wozniski
Change by Matt Wozniski : -- keywords: +patch pull_requests: +30131 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32041 ___ Python tracker

[issue47030] singledispatch does not work with positional arguments with default values.

2022-03-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: This would be problematic for two reasons: - possible confusion between the default function that runs when an argument doesn't match any registered types, and another "default" which runs when argument is omitted. - to see which function will run when

[issue47087] Implement PEP 655 (Required/NotRequired)

2022-03-21 Thread David Foster
Change by David Foster : -- nosy: +David Foster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: It's a Linux kernel 5.17 regression on static-pie programs affecting AArch64: https://bugzilla.kernel.org/show_bug.cgi?id=215720 -- ___ Python tracker

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Guido, perhaps you had problems with the problem detection because the asyncio uses _asyncio C Extesions by default. It drops some calls from the python stack trace. -- ___ Python tracker

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: I can describe what happens with test_sys_exit_in_exception_handler.py 1. The 'boom' task raises an exception. 2. The task is not awaited, Future.__del__ calls the exception handler with 'Task exception was never retrieved' message. 3. The custom handler

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-21 Thread Steve Dower
Steve Dower added the comment: Leaving this open and assigned to myself for a couple of days to deal with any other fallout. In particular, I wasn't able to test the (minor) changes to the publishing steps (e.g. GPG signing), so will have to wait for the next release to see what

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-21 Thread Steve Dower
Steve Dower added the comment: New changeset 3751b6b030b4a3b88959b4f3c4ef2e58d325e497 by Steve Dower in branch 'main': bpo-47086: Remove .chm from Windows installer and add HTML docs (GH-32038) https://github.com/python/cpython/commit/3751b6b030b4a3b88959b4f3c4ef2e58d325e497 --

[issue47006] PEP 646: Decide on substitution behavior

2022-03-21 Thread Guido van Rossum
Guido van Rossum added the comment: I'd like to look at this as a case of simplifying something to its simplest canonical form, but no simpler. This is what the existing fixed-typevar expansion does: e.g. tuple[str, T, T][int] becomes tuple[str, int, int]. I propose that we try to agree on

[issue47061] Deprecate modules listed in PEP 594

2022-03-21 Thread Brett Cannon
Brett Cannon added the comment: One thing I forgot to mention is that I will be updating What's New as the code deprecations land. -- ___ Python tracker ___

[issue47061] Deprecate modules listed in PEP 594

2022-03-21 Thread miss-islington
miss-islington added the comment: New changeset c3538355f49f9394140428a848f2acf08175ff1a by Miss Islington (bot) in branch '3.10': [3.10] bpo-47061: document module deprecations due to PEP 594 (GH-31984) (GH-32039)

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Steve Dower
Steve Dower added the comment: Jeremy - backports need to be done manually. Can I leave that with you and just ping me on here when you're ready for a merge? -- stage: -> backport needed ___ Python tracker

[issue44336] Windows buildbots hang after fatal exit

2022-03-21 Thread Steve Dower
Steve Dower added the comment: New changeset 19058b9f6271338bcc46b7d30fe79a83990cc35c by Jeremy Kloth in branch 'main': bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) https://github.com/python/cpython/commit/19058b9f6271338bcc46b7d30fe79a83990cc35c

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: > The problem is more that a sleep is not a reliable synchronization primitive Yes, sure! I'm trying to avoid 'sleep for synchronization' when I'm writing new tests or fixing existing ones. The problem with this particular queue tests is: I rewrote

[issue22013] Add at least minimal support for thread groups

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: And now we have TaskGroups in asyncio as well. I'm closing this as it seems to have been abandoned. Feel free to reopen if this is still needed. -- nosy: +iritkatriel stage: needs patch -> resolved status: open -> closed

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30130 pull_request: https://github.com/python/cpython/pull/32040 ___ Python tracker ___

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Eryk Sun
Eryk Sun added the comment: I was just wondering whether it's worth implementing it using the API. To be clear, I wasn't implying to hold off on applying Jeremy's PR. The existing code is causing him problems, and he has a working solution. -- nosy: +eryksun

[issue47010] Implement zero copy writes in SelectorSocketTransport in asyncio

2022-03-21 Thread jakirkham
Change by jakirkham : -- nosy: +jakirkham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Steve Dower
Steve Dower added the comment: "So close" being some months ago ;) I need to retrigger address sanitiser so that it passes before merging, but after that, I'll merge (and hopefully the backport is clean). Copying Eryk Sun's comment here for posterity: This would be less fragile and more

[issue1703592] [doc] mention that setlocale raises exception if given a nonexisting locale

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: have a way to ignore nonexisting locales in locale.setlocale -> [doc] mention that setlocale raises exception if given a nonexisting locale versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4

[issue43141] `asdict` fails with frozen dataclass keys, using raw dict form

2022-03-21 Thread GalaxySnail
Change by GalaxySnail : -- nosy: +GalaxySnail ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47061] Deprecate modules listed in PEP 594

2022-03-21 Thread miss-islington
miss-islington added the comment: New changeset 9ac2de922a0f783bd43b8e026e4fb70fd1888572 by Brett Cannon in branch 'main': bpo-47061: document module deprecations due to PEP 594 (GH-31984) https://github.com/python/cpython/commit/9ac2de922a0f783bd43b8e026e4fb70fd1888572 -- nosy:

[issue47061] Deprecate modules listed in PEP 594

2022-03-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +30129 pull_request: https://github.com/python/cpython/pull/32039 ___ Python tracker ___

[issue18241] Add unique option to heapq functions

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: I would dedup when extracting items from the queue, because it is trivial to find duplicates then. It can be done with a simple wrapper, without any changes to the queue. -- nosy: +iritkatriel ___ Python tracker

[issue47051] Windows v3.10.3 .chm file (in python310\doc) page headings are messed up and spread out over several lines. Also the font has changed from the former san serif font to a smaller and harde

2022-03-21 Thread Steve Dower
Steve Dower added the comment: Doesn't seem to be any relevant changes in the repo between v3.10.2 and v3.10.3, and the theme hasn't changed. Obviously the HTMLHelp tools haven't changed in a decade or so, and the only difference in the build logs looks like less errors in the later one

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2022-03-21 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg415670 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue47082] No protection: `import numpy` in two different threads can lead to race-condition

2022-03-21 Thread Sebastian Berg
Sebastian Berg added the comment: Thanks, so there should already be a lock in place (sorry, I missed that). But somehow we seem to get around it? Do you know what may cause the locking logic to fail in this case? Recursive imports in NumPy itself? Or Cython using low-level C-API? I.e.

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon
Brett Cannon added the comment: bpo-47025 is a bigger discussion about bytes paths that probably needs to be resolved first before worrying about zipimport. -- ___ Python tracker

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +bytes do not work on sys.path ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27198] Adding an assertClose() method to unittest.TestCase

2022-03-21 Thread Chris Barker
Chris Barker added the comment: Yes -- it was on me years ago to do this. Honestly, I haven't done it yet because I lost the momentum of PyCon, and I don't personally use unittest at all anyway. But I still think it's a good idea, and I'd like to keep it open with the understanding that if

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: With 3.8 so close to security only, I would doubt it is worth it anymore. I've just run the PR against HEAD and it still works as is, so should be good to go. -- versions: -Python 3.8 ___ Python tracker

[issue47082] No protection: `import numpy` in two different threads can lead to race-condition

2022-03-21 Thread Christian Heimes
Christian Heimes added the comment: Python used to have a global import lock. The global import lock prevented recursive imports from other threads while the current thread was importing. The import lock was source of issues and dead locks. Antoine replaced it with a fine grained import

[issue47048] Python 3.10.3 + Osx Lion : fatal error (make) signalmodule or more

2022-03-21 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This problem was reported previously in bpo-24844 and was determined to be due a partial implementation of atomics support in the early versions of LLVM compilers provided in the Apple Developer Tools for macOS 10.7. While the start of a

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-21 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +30128 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32038 ___ Python tracker

[issue47027] subprocess.run(), subprocess.Popen() should accept file descriptor as cwd parameter

2022-03-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Basically you want it to call fchdir() instead of chdir() when passed a fd (integer) instead of a string/Path-like. That makes sense and should be a reasonably straight forward set of changes to _posixsubprocess.c. (A way to convert a fd into a Path-like

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Sophist
Sophist added the comment: > https://docs.google.com/document/d/18CXhDb1ygxg-YXNBJNzfzZsDFosB5e6BfnXLlejd9l0/edit 1. The steering committee hasn't given the go ahead for this yet, and we have no idea when such a decision will be made nor whether the decision with be yes or no. 2. Even

[issue26052] pydoc for __init__ with not docstring

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: Is the "See help(type(self)) for accurate signature." part of object.__init__ docstring useful? May we can just remove it? -- nosy: +iritkatriel ___ Python tracker

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Steve Dower
Steve Dower added the comment: You're closer to this stuff than I am, so if you say it works for your scenarios and it doesn't break the existing ones, I'll merge it. Do we need to backport to 3.8 at this point? -- ___ Python tracker

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +30127 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32037 ___ Python tracker ___

[issue47006] PEP 646: Decide on substitution behavior

2022-03-21 Thread Matthew Rahtz
Matthew Rahtz added the comment: P.s. To be clear, (I think?) these are all substitutions that are computable. We *could* implement the logic to make all these evaluate correctly if we wanted to. It's just a matter of how much complexity we want to allow in typing.py (or in the runtime in

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-03-21 Thread Jeremy Kloth
New submission from Jeremy Kloth : Testing on Windows occasionally has issues in test_compileall when running with multiple processes. This is due to other test files importing stdlib modules at the same time that compileall is doing its own testing. While not fatal (test_compileall

[issue19961] MacOSX: Tkinter build failure when building without command-line tools

2022-03-21 Thread Ned Deily
Ned Deily added the comment: I think we can close this without further action as we no longer support using the Apple-supplied system Tcl and Tk and we know it is possible to build and link current version of Python 3.x with Tcl/Tk 8.6.8, at least, on macOS 10.9. -- resolution: ->

[issue47006] PEP 646: Decide on substitution behavior

2022-03-21 Thread Matthew Rahtz
Matthew Rahtz added the comment: [Guido] > What would be an example of a substitution that's too complex to do? We also need to remember the dreaded arbitrary-length tuple. For example, I think it should be the case that: ```python T = TypeVar('T') Ts = TypeVarTuple('Ts') class

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Guido van Rossum
Guido van Rossum added the comment: Start here: https://docs.google.com/document/d/18CXhDb1ygxg-YXNBJNzfzZsDFosB5e6BfnXLlejd9l0/edit AFAICT the SC hasn't made up their minds about this. -- ___ Python tracker

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2d5e9f8d6296cc52da9823bb57e7f03d60b34d27 by Irit Katriel in branch '3.9': bpo-12029: [doc] clarify that except does not match virtual subclasses of the specified exception type (GH-32027) (GH-32035)

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47087] Implement PEP 655 (Required/NotRequired)

2022-03-21 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- components: +Library (Lib) stage: -> needs patch type: -> enhancement versions: +Python 3.11 ___ Python tracker ___

[issue47088] Implement PEP 675 (LiteralString)

2022-03-21 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47088] Implement PEP 675 (LiteralString)

2022-03-21 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : This one should be quite simple at runtime. I'll send a PR this week. -- assignee: JelleZijlstra messages: 415706 nosy: AlexWaygood, JelleZijlstra, gvanrossum, kj priority: normal severity: normal stage: needs patch status: open title: Implement PEP

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset 7fc12540e3e873d8ff49711e70fd691185f977b9 by Irit Katriel in branch '3.10': bpo-12029: [doc] clarify that except does not match virtual subclasses of the specified exception type (GH-32027) (GH-32034)

[issue47087] Implement PEP 655 (Required/NotRequired)

2022-03-21 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : PEP 655 was just accepted, so we should implement it in typing.py! We should be able to largely reuse the typing-extensions implementation. (I can't find David Foster on BPO but I'll point him to this issue.) -- messages: 415704 nosy: AlexWaygood,

[issue47067] Add vectorcall for generic alias object

2022-03-21 Thread Guido van Rossum
Change by Guido van Rossum : -- title: Add vectorcall for generica alias object -> Add vectorcall for generic alias object ___ Python tracker ___

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Sophist
Sophist added the comment: > I think that we should focus our efforts on removing the GIL, now that we > have a feasible solution for doing so without breaking anything Is this really a thing? Something that is definitely happening in a reasonable timescale? Or are there some big

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30126 pull_request: https://github.com/python/cpython/pull/32035 ___ Python tracker ___

[issue47027] subprocess.run(), subprocess.Popen() should accept file descriptor as cwd parameter

2022-03-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34071] asyncio: repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2022-03-21 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: As the original reporter, I have no objection to closing this old report. It remains in the historical record. That was its purpose all along. Thank you to all the bug data maintainers! -- ___ Python tracker

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30125 pull_request: https://github.com/python/cpython/pull/32034 ___ Python tracker ___

[issue32592] Drop support of Windows Vista and Windows 7

2022-03-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-21 Thread Steve Dower
New submission from Steve Dower : CHM is getting too hard to handle (see e.g. issue47051 for the latest issue), so let's just bite the bullet and ship the HTML docs instead. -- components: Windows messages: 415701 nosy: paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue12029] [doc] clarify that except does not match virtual subclasses of the specified exception type

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset 45833b50f0ccf2abb01304c900afee05b6d01b9e by Irit Katriel in branch 'main': bpo-12029: [doc] clarify that except does not match virtual subclasses of the specified exception type (GH-32027)

[issue47067] Add vectorcall for generica alias object

2022-03-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset 1ea055bd53ccf976e88018983a3c13447c4502be by penguin_wwy in branch 'main': bpo-47067: Optimize calling GenericAlias objects (GH-31996) https://github.com/python/cpython/commit/1ea055bd53ccf976e88018983a3c13447c4502be --

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Omer Katz
Omer Katz added the comment: I think that we should focus our efforts on removing the GIL, now that we have a feasible solution for doing so without breaking anything (hopefully) however the removal of the GIL is still far from being complete and will need to be rebased upon the latest Python

[issue47085] missing frame.f_lineno on JUMP_ABSOLUTE

2022-03-21 Thread Ned Batchelder
Change by Ned Batchelder : -- nosy: +Mark.Shannon, nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47085] missing frame.f_lineno on JUMP_ABSOLUTE

2022-03-21 Thread Thomas Grainger
New submission from Thomas Grainger : the following code prints: import sys import dis import pprint def demo(): for i in range(1): if i >= 0: pass class Tracer: def __init__(self): self.events = [] def trace(self, frame, event, arg):

[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-03-21 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30124 pull_request: https://github.com/python/cpython/pull/32033 ___ Python tracker ___

[issue46788] regrtest fails to start on missing performance counter names

2022-03-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: OK, I know it has been a busy month for Python, but this issue is really hampering my bug fixing efforts. It makes the complete regrtest useless for me. I am required to run each affected test directly so it is possible to miss side-effects of changes made.

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: -30123 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30123 pull_request: https://github.com/python/cpython/pull/32032 ___ Python tracker ___

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +30122 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32032 ___ Python tracker ___

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: -30121 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2022-03-21 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch nosy: +jkloth nosy_count: 7.0 -> 8.0 pull_requests: +30121 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32032 ___ Python tracker

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-21 Thread Jeremy Kloth
New submission from Jeremy Kloth : The newly implemented statically allocated Unicode objects do not clear their cached representations (wstr and utf-8) at exit causing leaked blocks at exit (see also issue46857). At issue are the Unicode objects created by deepfreeze and the 1-character

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47006] PEP 646: Decide on substitution behavior

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first case will be practically fixed by GH 32030 after chenging the grammar to allow unpacking in index tuple: A[*B]. Two other cases will be fixed by GH 32031. It does not require any C code. In the last case no error is raised because some error

[issue7946] Convoy effect with I/O bound threads and New GIL

2022-03-21 Thread Sophist
Sophist added the comment: Please see also https://github.com/faster-cpython/ideas/discussions/328 for a proposal for a simple (much simpler than BFS) GIL scheduler only allocating the GIL between runable O/S threads waiting to have ownership of the GIL, and using the O/S scheduler for

[issue43224] Add support for PEP 646

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30120 pull_request: https://github.com/python/cpython/pull/32031 ___ Python tracker ___

[issue47080] Use atomic groups to simplify fnmatch

2022-03-21 Thread Tim Peters
Change by Tim Peters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47080] Use atomic groups to simplify fnmatch

2022-03-21 Thread Tim Peters
Tim Peters added the comment: New changeset 5c3201e146b251017cd77202015f47912ddcb980 by Tim Peters in branch 'main': bpo-47080: Use atomic groups to simplify fnmatch (GH-32029) https://github.com/python/cpython/commit/5c3201e146b251017cd77202015f47912ddcb980 --

[issue43224] Add support for PEP 646

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30119 pull_request: https://github.com/python/cpython/pull/32030 ___ Python tracker ___

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-21 Thread Matthew Barnett
Matthew Barnett added the comment: I don't think it's a typo, and you could argue the case for "qualifiers", but I still agree with the proposal as it's a more meaningful term in the context. -- ___ Python tracker

[issue47082] No protection: `import numpy` in two different threads can lead to race-condition

2022-03-21 Thread Sebastian Berg
Sebastian Berg added the comment: To add to this: it would seem to me that the side-effects of importing should be guaranteed to only be called once? However, IO or other operations could be part of the import side-effects and release the GIL. So even a simple, pure-Python, package could

[issue47080] Use atomic groups to simplify fnmatch

2022-03-21 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +30118 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32029 ___ Python tracker

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-21 Thread Géry
New submission from Géry : ## Expected outcome ``` >>> hasattr(complex(), '__complex__') True >>> hasattr(float(), '__complex__') True >>> hasattr(int(), '__complex__') True ``` ## Actual outcome ``` >>> hasattr(complex(), '__complex__') False >>> hasattr(float(), '__complex__') False >>>

[issue47051] Windows v3.10.3 .chm file (in python310\doc) page headings are messed up and spread out over several lines. Also the font has changed from the former san serif font to a smaller and harde

2022-03-21 Thread Steve Dower
New submission from Steve Dower : I guess for 3.11 we should just switch to loose HTML files and using the default browser, rather than fighting with dead CHM tools. No idea what may have caused this. Has anyone tried analysing the file for unsupported JavaScript or something? I think that's

[issue47082] No protection: `import numpy` in two different threads can lead to race-condition

2022-03-21 Thread Jens Henrik Goebbert
New submission from Jens Henrik Goebbert : While using [Xpra](https://github.com/Xpra-org/xpra) we came across a bug which might be a Python or a NumPy issue. Perhaps some of you can help us understanding some internals. Calling `import numpy` at the same time in two different threads of the

[issue47037] Build problems on Windows

2022-03-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32028 ___ Python tracker

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In the Web you can find that two terms are used for repetition operators (+, *, ?, and variants): "quantifiers" and "qualifiers". "Quantifiers" is much more common, it is used in Wikipedia and main on-line documentation resources. But "qualifiers" is

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 345b390ed69f36681dbc41187bc8f49cd9135b54 by Serhiy Storchaka in branch 'main': bpo-433030: Add support of atomic grouping in regular expressions (GH-31982) https://github.com/python/cpython/commit/345b390ed69f36681dbc41187bc8f49cd9135b54

[issue46864] Deprecate ob_shash in BytesObject

2022-03-21 Thread Christian Heimes
Christian Heimes added the comment: I'm getting tons of deprecation warnings from deepfreeze script. Please add _Py_COMP_DIAG_IGNORE_DEPR_DECL to Tools/scripts/deepfreeze.py. -- nosy: +christian.heimes resolution: fixed -> stage: resolved -> needs patch status: closed -> open type:

[issue47062] Implement asyncio.Runner context manager

2022-03-21 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47063] SimpleHTTPRequestHandler has hard coded index page list.

2022-03-21 Thread Ethan Furman
Ethan Furman added the comment: `index.htm[l]` is pretty standard for the name of the index page. What's your use-case for wanting different names? Keep in mind that the word `Simple` is in the name for a reason. -- nosy: +ethan.furman versions: +Python 3.11 -Python 3.8

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: > Again a relative short timeouts and super slow test boxes. The problem is more that a sleep is not a reliable synchronization primitive: https://pythondev.readthedocs.io/unstable_tests.html#don-t-use-sleep-as-synchronization --

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed

2022-03-21 Thread STINNER Victor
STINNER Victor added the comment: I still reproduce the issue after an upgrade to the Linux kernel: 5.17.0-0.rc8.20220318git551acdc3c3d2.125.fc37.aarch64 -- ___ Python tracker

  1   2   >