[issue31011] Users (except from the one who installed) not able to see python in add remove programs.

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue31991] Race condition in wait with timeout for multiprocessing.Event

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Python 3.6 is no longer maintained and I failed to reproduce this on a Mac on 3.11. Please create a new issue if you are seeing the problem on a current python version (>= 3.9) and specify which system you are running it on. -- nosy: +iritkatriel

[issue38195] A bug in the multiprocessing module

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Python 3.6 is no longer maintained and this doesn't freeze on my Mac on 3.11. Please create a new issue if you are seeing the freeze on a current python version (>= 3.9) and specify which system you are running it on. -- nosy: +iritkatriel

[issue46447] datetime.isoformat() documentation does not point to the risk of using it with naive datetime objects

2022-01-24 Thread Paul Ganssle
Paul Ganssle added the comment: Sorry I missed this! Thank you for taking the time to write this up and to make a PR. Unfortunately, I don't think I agree with the idea of warning about this. The warnings about `utcnow` and `utcfromtimestamp` are a problem because `utcnow` and

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-24 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45382] platform() is not able to detect windows 11

2022-01-24 Thread Eryk Sun
Eryk Sun added the comment: > It's *very* unlikely you'll ever get output that doesn't fit into MBCS, When writing to a pipe, wmic.exe hard codes using the process OEM code page (i.e. CP_OEMCP). If it matters, running wmic.exe with subprocess should use encoding='oem' instead of text=True.

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: New changeset 80e1def9ded2a1d017410394e50c88aa39135029 by Irit Katriel in branch 'main': bpo-45711: move whatsnew entries which are incorrectly listed under New Features (GH-30849)

[issue41352] FileIO.readall() should raise "UnsupportedOperation" when in "w" mode

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue23289] concurrent.futures.Executor.map is not equivalent to map.

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Clarify map API in concurrent.futures ___ Python tracker ___

[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-01-24 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +29036 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30855 ___ Python tracker ___

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: I tried to make the 'FROZEN' variable in freeze_modules.py empty, but it has a bunch of places where this is unexpected. Maybe someone can fix that? -- ___ Python tracker

[issue46431] Trouble subclassing ExceptionGroup

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29035 pull_request: https://github.com/python/cpython/pull/30854 ___ Python tracker ___

[issue46431] Trouble subclassing ExceptionGroup

2022-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: So, a PR with that fix would be nice? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46396] `Concatenate` should not raise any semantic errors

2022-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: "When in doubt, the status quo wins." Maybe we should just close this and the PR without merging. -- ___ Python tracker ___

[issue46494] Mention typing_extensions in the typing documentation

2022-01-24 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46431] Trouble subclassing ExceptionGroup

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: This is the fix: -if (!PyArg_ParseTuple(args, "UO", , )) { +if (!PyArg_ParseTuple(args, + "UO:BaseExceptionGroup.__new__", + , + )) { Then we get TypeError:

[issue44637] Quoting issue on header Reply-To and other address headers

2022-01-24 Thread Julien Castiaux
Julien Castiaux added the comment: Hello there, Friendly reminder that this issue is still open and that there is a pull request ready. We continue to face the issue in production and our customers are getting upset. Can you provide us a schedule when this issue will be addressed? So that

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-24 Thread Christian Heimes
Christian Heimes added the comment: I noticed that you have been looking into the __main__ block of test modules. Wouldn't it make more sense to just remove the __main__ and have all tests go through regrtest? Everybody should use ./python -m regrtest test_typing or the Windows

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-01-24 Thread Alex Waygood
Alex Waygood added the comment: > Sorry, I was too excited when PR 29335 merged and missed that. In the future, > please re-open if you feel I closed an issue wrongly. Thanks! No worries — will do! -- ___ Python tracker

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-01-24 Thread Ken Jin
Ken Jin added the comment: > Wait... there's still PR 29479 open! Sorry, I was too excited when PR 29335 merged and missed that. In the future, please re-open if you feel I closed an issue wrongly. Thanks! -- resolution: fixed -> status: closed -> open

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-24 Thread Ken Jin
Ken Jin added the comment: New changeset eaeb99468045b863d2dd3da3e3d1c3c9c78e1254 by Nikita Sobolev in branch '3.10': [3.10] bpo-46416: Allow direct invocation of `Lib/test/test_typing.py` (GH-30641) (GH-30697)

[issue46494] Mention typing_extensions in the typing documentation

2022-01-24 Thread Ken Jin
Ken Jin added the comment: Yes please, this is a great idea. -- keywords: +easy, newcomer friendly ___ Python tracker ___ ___

[issue46470] `_remove_dups_flatten` in `typing.py` contains dead branch

2022-01-24 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46396] `Concatenate` should not raise any semantic errors

2022-01-24 Thread Ken Jin
Ken Jin added the comment: I'm a little conflicted on this specific use case (but maybe I'm biased because I wrote the checks :). I'm a strong proponent of less runtime checks. However, in this case, the exceptions serve as easy hints to the user, and they're meant to catch the most basic

[issue46461] Kodi crashing

2022-01-24 Thread Patric Gustavsson
Patric Gustavsson added the comment: Hi, Its reproducible, but not very fast or easy : 1 Install Ubuntu 21.04 or 21.10 2 Install kodi 19 from ppa : https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa 3 install aeon nox silvo, and customized the skin and kodi settings 4 install plugins

[issue46502] Py_CompileString no longer allows to tell "incomplete input" from "invalid input"

2022-01-24 Thread Mateusz Loskot
New submission from Mateusz Loskot : Something has changed in Python 3.7 through 3.10 (I'm observing it in 3.10) in behaviour of the Python C API function Py_CompileString such that for an incomplete input it no longer raises SyntaxError: "unexpected EOF while parsing" but IndentationError:

[issue46470] `_remove_dups_flatten` in `typing.py` contains dead branch

2022-01-24 Thread Ken Jin
Ken Jin added the comment: New changeset c144d9363107b50bcb0ccd01e7202e26a40c21f0 by Nikita Sobolev in branch 'main': bpo-46470: remove unused branch from `typing._remove_dups_flatten` (GH-30780) https://github.com/python/cpython/commit/c144d9363107b50bcb0ccd01e7202e26a40c21f0 --

[issue46431] Trouble subclassing ExceptionGroup

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: The error message isn't always this bad: >>> class Base: ... def __new__(cls, a, b, c): ...cls.newargs = (a,b,c) ... ... >>> class Derived(Base): ... def __init__(self, x): ... super().__init__(x) ... self.initargs = (x,)

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-24 Thread Kumar Aditya
Kumar Aditya added the comment: Created PR https://github.com/python/cpython/pull/30853 -- ___ Python tracker ___ ___

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-24 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch pull_requests: +29034 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30853 ___ Python tracker ___

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Right, I see now. -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Armin Ronacher
Armin Ronacher added the comment: The bug is still there, just that it's now not just a warning but an error. The auto detection is incorrect here. It should allow the instantiation of the object with arguments. -- ___ Python tracker

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Can we close this now? >>> class A(object): ... def __new__(self): ... raise TypeError('i do not exist') ... >>> class B(A): ... __new__ = object.__new__ ... def __init__(self, x): ... self.x = x ... >>> B(1) Traceback (most

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-24 Thread STINNER Victor
STINNER Victor added the comment: I don't want to change the default. Keeping fast startup time is a nice goal! I'm asking to make it configurable for my own development workflow: build Python as fast as possible. It is easy to hack Makefile.am.in and Python/frozen.c to freeze less modules.

[issue46501] Windows 10, turtle left right not working

2022-01-24 Thread wizprokidz
New submission from wizprokidz : The image of rocket does NOT rotate (on windows 10, python 3.10.2) as it rotates here: https://trinket.io/embed/python/8eb5179d7f turtle.forward() and turtle.backward() are working to move the object sideways. -- components: Windows files:

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-24 Thread STINNER Victor
STINNER Victor added the comment: Releasing memory in pymain_free() is a good start! At least it fix the issue for the "python" command. So people running a memory debugger like Valgrind will no longer see any leak at "python" exit. Kumar: Do you want to work on a PR for that? --

[issue46431] Trouble subclassing ExceptionGroup

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +29033 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30852 ___ Python tracker ___

[issue45382] platform() is not able to detect windows 11

2022-01-24 Thread Steve Dower
Steve Dower added the comment: Yeah, I pushed the machines up to 2022 the other day while tidying the configs. Wouldn't have expected it to impact that issue though, it's fully within OpenSSL, isn't it? (We also updated that recently...) Also, as an FYI, if you use "wmic /output:" then it

[issue46463] escape4chm.py script causing AttributeError in docs build

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

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-24 Thread Kumar Aditya
Kumar Aditya added the comment: > Aha. Maybe for now, the memory of immortal code objects can be deallocated in > pymain_free(). It's the last function called before Python exit the process. It seems like a viable option for now to only clear them when python is not embedded and in

[issue46396] `Concatenate` should not raise any semantic errors

2022-01-24 Thread Nikita Sobolev
Nikita Sobolev added the comment: PR is updated, now `Concatenate` does not raise any semantic errors: https://github.com/python/cpython/pull/30619 -- components: +Library (Lib) -Tests title: Typing: test invalid usages of `Concatenate` -> `Concatenate` should not raise any semantic

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-24 Thread rdb
Change by rdb : -- nosy: +rdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46447] datetime.isoformat() documentation does not point to the risk of using it with naive datetime objects

2022-01-24 Thread Jean Carlo Machado
Change by Jean Carlo Machado : -- keywords: +patch pull_requests: +29032 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30850 ___ Python tracker

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2022-01-24 Thread Logan Jones
Logan Jones added the comment: Based on my reading I’m hopeful that this change can make it in quickly once I find the time. The previous implementation didn’t care how the processes were created. I will look as soon as I can -- ___ Python

[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-24 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.10 ___ Python tracker ___

[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-24 Thread miss-islington
miss-islington added the comment: New changeset d7c68639795a576ff58b6479c8bb34c113df3618 by Mario Corchero in branch 'main': bpo-41906: Accept built filters in dictConfig (GH-30756) https://github.com/python/cpython/commit/d7c68639795a576ff58b6479c8bb34c113df3618 -- nosy:

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2022-01-24 Thread Petr Viktorin
Petr Viktorin added the comment: > Is there a reason to not add these fields to PyTypeObject? Can't say I haven't thought of that, but AFAIK it would mean breaking the C API substantially. Even if not it'd be a PEP-sized change, IMO. -- nosy: +petr.viktorin

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-24 Thread Christian Heimes
Christian Heimes added the comment: Do you have an alternative suggestion how to build Python with minimal set of required deepfrozen modules or without any deepfrozen modules at all? A minimal set is not only helpful for Victor's use case. I would also like to use it in WebAssembly builds

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-24 Thread Kumar Aditya
Kumar Aditya added the comment: > @Kumar do you want to tackle this? I don't like this approach as it is opposite to what we did to reduce the size of deep-frozen modules to merge them in one file and this approach requires to split it again. --

[issue46422] Why do we need `dis.Positions`?

2022-01-24 Thread Nikita Sobolev
Change by Nikita Sobolev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46422] Why do we need `dis.Positions`?

2022-01-24 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 58f3d980989c7346ad792d464c1d749dcec6af63 by Nikita Sobolev in branch 'main': bpo-46422: use `dis.Positions` in `dis.Instruction` (GH-30716) https://github.com/python/cpython/commit/58f3d980989c7346ad792d464c1d749dcec6af63 --

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

2022-01-24 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69 by Mark Shannon in branch 'main': bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723) https://github.com/python/cpython/commit/0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69 --

[issue43333] utf8 in BytesGenerator

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Are you able to provide a runnable script that reproduces the error? -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker ___

[issue42585] Segmentation fault on Linux with multiprocess queue

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Python 3.8 is no longer maintained, and there have been changes in this area since then. Please create a new issue if you are having this problem with a more recent python version. To answer you last question, yes - there are platform dependent differences

[issue38665] Crash when running SQLAlchemy with pyodbc

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46404] 3.11a4: a small attrs regression

2022-01-24 Thread Petr Viktorin
Petr Viktorin added the comment: I guess at least there should be a warning about this in dataclasses docs? The reproducer with dataclasses (which exhibits the same error on 3.10 and 3.11): import dataclasses @dataclasses.dataclass(slots=True) class A: pass

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29031 pull_request: https://github.com/python/cpython/pull/30849 ___ Python tracker ___

[issue46426] Improve tests for the dir_fd argument

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

[issue46465] Regression caused by CALL_FUNCTION specialization for C function calls

2022-01-24 Thread Mark Shannon
Mark Shannon added the comment: > So it's also a threads scheduling issue, no? No, it isn't. The interpreter checks the eval breaker frequently enough. It checks on all back edges and on all calls to Python functions. The test probably needs to be fixed, or extended. It is signals sent from

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: IIRC it was added to reflect the presence of __class_getitem__ method in typeshed. Please feel free to drop it the method is not really needed. -- ___ Python tracker

[issue46426] Improve tests for the dir_fd argument

2022-01-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3f1ea163ea54513e00e0e9d5442fee1b639825cc by Serhiy Storchaka in branch '3.9': [3.9] bpo-46426: Improve tests for the dir_fd argument (GH-30668) (GH-30757) https://github.com/python/cpython/commit/3f1ea163ea54513e00e0e9d5442fee1b639825cc

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-24 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +29030 pull_request: https://github.com/python/cpython/pull/30848 ___ Python tracker ___

[issue46254] Better fitting type for iterating in the trace_init C function

2022-01-24 Thread Irit Katriel
New submission from Irit Katriel : See discussion on the PR. -- nosy: +iritkatriel resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46494] Mention typing_extensions in the typing documentation

2022-01-24 Thread Sebastian Rittau
Sebastian Rittau added the comment: Sounds like a good idea. I would put it into the introduction. I hear it will easily be missed in other sections. Wouldn't a link to PyPI make more sense than a GitHub link? -- ___ Python tracker

[issue46391] Library multiprocess leaks named resources.

2022-01-24 Thread XD Trol
XD Trol added the comment: update, Confirmed to affect all versions above 3.8+. It's really annoying. Command line tools like Repo get a warning after every (success) command. And mess up with shell. --- $ repo status .

[issue46464] concurrent.futures.ProcessPoolExecutor can deadlock when tcmalloc is used

2022-01-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +29029 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30847 ___ Python tracker

[issue46499] circular impoty

2022-01-24 Thread Eric V. Smith
Change by Eric V. Smith : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46500] make timeit module accept files

2022-01-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This module provides a simple way to time small bits of Python code. What problem are you trying to solve. -- nosy: +serhiy.storchaka ___ Python tracker

[issue46157] Typo in JSON documentation

2022-01-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10, Python 3.9 ___ Python tracker ___

[issue46499] circular impoty

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: The python bug tracker is for reporting bugs in python, not for asking questions about how to use it. You cans ask user questions on python-list (though in this case I would try by searching for ‘python circular import’). -- nosy: +iritkatriel

[issue46157] Typo in JSON documentation

2022-01-24 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 5.0 -> 6.0 pull_requests: +29028 pull_request: https://github.com/python/cpython/pull/30846 ___ Python tracker ___

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-24 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 nosy_count: 13.0 -> 14.0 pull_requests: +29027 pull_request: https://github.com/python/cpython/pull/30845 ___ Python tracker

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2022-01-24 Thread Keelung Yang
Keelung Yang added the comment: @pitrou Firstly, I can't agree with `it is quite uncommon to open a file in append mode`. It should be depended to users and their application scenes. @pablogsal Secondly, I think `Path.write_*(, append=False)` is better then adding new APIs, as discussed in

<    1   2