[issue47079] Integral.denominator shouldn't return an int

2022-03-21 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- keywords: +patch pull_requests: +30110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32022 ___ Python tracker _

[issue47056] turtle.write() causes flickering when the tracer is turned off.

2022-03-21 Thread Shin-Myoung-Serp
Shin-Myoung-Serp added the comment: I tested on Ubuntu 20.04 with the following Python versions. 3.8.2(repository version) 3.11.0a5(compiled from the official tarball) Both cases cause flickering. -- ___ Python tracker

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

2022-03-21 Thread Ayaan Khan
Ayaan Khan added the comment: Here is a BCJ only CFFI test project. https://www.avoid.uk.net/fmwhatsapp/ https://www.avoid.uk.net/yowhatsapp/ https://www.avoid.uk.net/fouad-whatsapp/ All works are very interesting. thanks, to post and your works. -- nosy: +blogavoid __

[issue43166] Unused letters in Windows-specific pragma optimize

2022-03-21 Thread neonene
Change by neonene : -- nosy: +neonene nosy_count: 7.0 -> 8.0 pull_requests: +30111 pull_request: https://github.com/python/cpython/pull/32023 ___ Python tracker ___ ___

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2022-03-21 Thread neonene
Change by neonene : -- nosy: +neonene, pablogsal nosy_count: 8.0 -> 10.0 pull_requests: +30112 pull_request: https://github.com/python/cpython/pull/32023 ___ Python tracker ___

[issue47064] thread QOS attribute on macOS

2022-03-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree. I'm working on a PR to expose this platform specific functionality in the threading module. It would have been nice if other platforms had similar functionality, but they don't. Emulating the API is possible, but a project in its own right and som

[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: Task groups are implemented under Issue46752. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> Introduce task groups to asyncio and change task cancellation semantics ___ Python

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

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: This is a TypeError now, so there shouldn't be issues with unit tests anymore: >>> task = asyncio.get_event_loop().create_task(ag()) Traceback (most recent call last): File "", line 1, in File "/Users/iritkatriel/src/cpython/Lib/asyncio/base_events.py", lin

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

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: I'm closing this as out of date, please create a new issue if you are seeing an issue on current versions of python (>= 3.10). -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python trac

[issue41275] [doc] Clarify that Futures can be awaited multiple times

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Clarify whether Futures can be awaited multiple times -> [doc] Clarify that Futures can be awaited multiple times versions: +Python 3.11 ___ Python tracker

[issue44800] Code readability: rename InterpreterFrame to `_Py_framedata`

2022-03-21 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +30113 pull_request: https://github.com/python/cpython/pull/32024 ___ Python tracker ___

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

2022-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 08eb754d840696914928355014c2d424131f8835 by Serhiy Storchaka in branch 'main': bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012) https://github.com/python/cpython/commit/08eb754d840696914928355014c2d424131f8835 --

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

2022-03-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30114 pull_request: https://github.com/python/cpython/pull/32025 ___ Python tracker _

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

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

[issue46841] Inline bytecode caches

2022-03-21 Thread Mark Shannon
Mark Shannon added the comment: New changeset 2bde6827ea4f136297b2d882480b981ff26262b6 by Brandt Bucher in branch 'main': bpo-46841: Quicken code in-place (GH-31888) https://github.com/python/cpython/commit/2bde6827ea4f136297b2d882480b981ff26262b6 -- ___

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

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

2022-03-21 Thread miss-islington
miss-islington added the comment: New changeset f89949ec6741bd02841bece61f5b703e738dd13c by Miss Islington (bot) in branch '3.9': bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012) https://github.com/python/cpython/commit/f89949ec6741bd02841bece61f5b703e738dd13c -

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

2022-03-21 Thread miss-islington
miss-islington added the comment: New changeset 1b21b55ee0ea57226c52dc9f3ee3c034a5d1dc7b by Miss Islington (bot) in branch '3.10': bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012) https://github.com/python/cpython/commit/1b21b55ee0ea57226c52dc9f3ee3c034a5d1dc7b

[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: Again a relative short timeouts and super slow test boxes. I₩'ll relax numbers. Thanks forbthe report! -- ___ Python tracker ___ _

[issue34680] [doc] asyncio event_loop fails when accessed from multiple threads

2022-03-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: asyncio event_loop fails when accessed from multiple threads -> [doc] asyncio event_loop fails when accessed from multiple threads ___ Python tracker __

[issue44445] Add `site-include` install scheme path in sysconfig

2022-03-21 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[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: +30116 pull_request: https://github.com/python/cpython/pull/32027 ___ 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 ___

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

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

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

[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: https://mail.pyt

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

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

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

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

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

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

[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

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

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

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

[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

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

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

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

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

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

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

[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: https://mail

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

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

[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: https://ma

[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: +30123 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: -30123 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

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

[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): self.ev

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

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

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

[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) https://github.com/python/cpython/commit/45833b50f0ccf2ab

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

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

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

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

[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

[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: https://mail.

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

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

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

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

[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) https://github.com/python/cpython/commit/7fc12

[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

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

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

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

[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) https://github.com/python/cpython/commit/2d5e9f

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

[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 C(Generic[*T

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

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

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

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

[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

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

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

[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

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

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

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

[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

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

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

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

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

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

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

[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

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

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

[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: https://mail.py

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

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

  1   2   >