[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread hydroflask
hydroflask added the comment: Was reviewing the code and noticed that a double-free was introduced in the recent changes: https://github.com/python/cpython/blob/dd76b3f7d332dd6eced5cbc2ad2adfc397700b3d/Modules/_ctypes/callbacks.c#L192 That line should have been removed in https://github.com

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread hydroflask
hydroflask added the comment: Another bug, the array returned by alloca() should be zero-initialized. If an early return happens because of an intermediate error, Py_DECREF() will be called on uninitialized memory. Also it should be Py_XDECREF() I think. -- _

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread hydroflask
hydroflask added the comment: Ignore the previous comment :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29434 pull_request: https://github.com/python/cpython/pull/31272 ___ Python tracker ___ _

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-11 Thread Christoph Reiter
Christoph Reiter added the comment: Sorry if off topic, but I noticed that CPython doesn't deprecate macros in code, while with gcc/clang it's possible to show compiler warnings for them using some pragma magic: $ gcc a.c a.c: In function 'main': a.c:29:13: warning: Deprecated pre-processor

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread Dong-hee Na
Dong-hee Na added the comment: > Was reviewing the code and noticed that a double-free was introduced in the > recent changes: Thanks, that looks like my mistake -- ___ Python tracker _

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread hydroflask
hydroflask added the comment: Easy one to make, might be worth adding a test that would have exercised that code path. -- ___ Python tracker ___ _

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-11 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 0ac5372bf6b937ed44a8f9c4e402d024fcd80870 by Dong-hee Na in branch 'main': bpo-46323: Fix double-free issue for borrowed refs (GH-31272) https://github.com/python/cpython/commit/0ac5372bf6b937ed44a8f9c4e402d024fcd80870 --

[issue46717] Raising exception multiple times leaks memory

2022-02-11 Thread Irit Katriel
Irit Katriel added the comment: "raise exc" adds the current frame to the traceback of exc. If you want to clear the previous traceback before raising you can do that with raise exc.with_traceback(None) -- resolution: -> not a bug ___ Python trac

[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31273 ___ Python tracker ___ _

[issue42698] Deadlock in pysqlite_connection_dealloc()

2022-02-11 Thread hydroflask
hydroflask added the comment: Any update on this? I know you wanted to repro but even in the absence of the repro, I think calling sqlite3_close() without releasing the GIL is error-prone. If there is no immediate plan to make this change you may close the issue :) -- _

[issue42698] Deadlock in pysqlite_connection_dealloc()

2022-02-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Any update on this? I was unable to reproduce this last time we visited this issue, but I'll give it another try. > If there is no immediate plan to make this change you may close the issue :) I do not want to close it until I can a) either prove that

[issue46677] TypedDict docs are incomplete

2022-02-11 Thread Charlie Zhao
Charlie Zhao added the comment: Indeed, if you use Python keywords or other invalid Python names as keys of TypedDict, we must use the equivalent forms as follows: ``` Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'in': str}) # OK Point2D = TypedDict('Point2D', x=int, y=int, in=str)

[issue46711] test_logging: test_post_fork_child_no_deadlock() failed with timeout on AMD64 Arch Linux Asan Debug 3.10

2022-02-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 1.0 -> 2.0 pull_requests: +29436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31274 ___ Python tracker __

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2022-02-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > There will be huge changes for this issue as this keyword has been used in a > lot of places. It should be sufficient to change only the exposed headers; that is Include/*.h and Include/cpython/*.h. We should also change the AC tool, since that may be

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2022-02-11 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg413055 ___ Python tracker ___ ___ Python-bugs-list mail

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2022-02-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > There will be huge changes for this issue as this keyword has been used in a > lot of places. For external extension modules, it should be sufficient to change only the exposed headers; that is Include/*.h and Include/cpython/*.h. We should also change

[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-11 Thread Kumar Aditya
Kumar Aditya added the comment: Same issue as https://bugs.python.org/issue46465, PR https://github.com/python/cpython/pull/30826 fixes this. -- nosy: +kumaraditya303 ___ Python tracker

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-11 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 8b8673fe940c4ebc4512bff5af180b66def3d1ae by Petr Viktorin in branch '3.10': [3.10] bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696) (GH-31262) https://github.com/python/cpython/commit/8b8673fe940c4ebc4512bff5af180b66def3d

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-11 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2022-02-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +sobolevn nosy_count: 4.0 -> 5.0 pull_requests: +29437 pull_request: https://github.com/python/cpython/pull/31273 ___ Python tracker ___ ___

[issue43216] Removal of @asyncio.coroutine in Python 3.11

2022-02-11 Thread Kumar Aditya
Kumar Aditya added the comment: Can this be closed now? -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43216] Removal of @asyncio.coroutine in Python 3.11

2022-02-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closed. Thanks for the reminder! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue46718] Feature: iptertools: add batches

2022-02-11 Thread Марк Коренберг
New submission from Марк Коренберг : I want a new function introduced in intertools. Something like this, but more optimal, and in C: === from itertools import chain, islice from typing import Iterable, TypeVar T = TypeVar('T') # pylint: disable=invalid-name def batches(

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya
Kumar Aditya added the comment: Since it was reverted as it was beta period, Can this be committed again as 3.11 is in alpha currently? @asvetlov -- nosy: +kumaraditya303 ___ Python tracker ___

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: > It also adds a precondition that's not feasible public API, which this was > meant to become Do you plan to make the function public? It would be nice! -- ___ Python tracker

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +29438 pull_request: https://github.com/python/cpython/pull/31275 ___ Python tracker ___

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Do you plan to make the function public? It would be nice! See https://github.com/python/cpython/pull/31081 -- ___ Python tracker ___ _

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya
Kumar Aditya added the comment: I created a draft PR by rebasing the old implementation of 3.10 for 3.11 so we can investigate the build-bots failure and fix them so this can be committed for 3.11. See https://github.com/python/cpython/pull/31275 --

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-02-11 Thread Éric Araujo
Éric Araujo added the comment: I remember a discussion about this years ago. urllib is a module that pre-dates the idea of universal parsing for URIs, where the delimiters (like ://) are enough to determine the parts of a URI and give them meaning (host, port, user, path, etc). Backward compat

[issue46718] Feature: itertools: add batches

2022-02-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, tim.peters title: Feature: iptertools: add batches -> Feature: itertools: add batches ___ Python tracker ___

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-11 Thread Kumar Aditya
Change by Kumar Aditya : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue46718] Feature: itertools: add batches

2022-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: For large n, I don't think a C implementation would do much better than your Python version where most of the work is done by chain() and islice() which are already in C. The best that could be done is to eliminate the overhead of chain() which is likely

[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot about my own bpo-46465. I failed to find it when I searched for "test_urllib". -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Regression caused by CALL_FUNCTION specialization for C

[issue46465] Regression caused by CALL_FUNCTION specialization for C function calls (test_urllib fails when run multiple times)

2022-02-11 Thread STINNER Victor
Change by STINNER Victor : -- title: Regression caused by CALL_FUNCTION specialization for C function calls -> Regression caused by CALL_FUNCTION specialization for C function calls (test_urllib fails when run multiple times) ___ Python tracker

[issue46719] Call not visited in ast.NodeTransformer

2022-02-11 Thread David Castells-Rufas
New submission from David Castells-Rufas : If I create a class derived from ast.NodeTransformer and implement the visit_Call. When run on the below code, the visit_Call function is only called once (for the print function, and not for ord). It looks like calls in function arguments are ignore

[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2022-02-11 Thread Kumar Aditya
Change by Kumar Aditya : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46719] Call not visited in ast.NodeTransformer

2022-02-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > It looks like calls in function arguments are ignored. Please share a small, self-contained reproducer. >From what I can assume by this message, the problem is that you are not >calling self.generic_visit(node) on the first call you are handling. If you

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2022-02-11 Thread Éric Araujo
Éric Araujo added the comment: Both active PRs have comments pointing out issues, that’s why this is still open. A clean fix with unit tests and no regression is needed. -- nosy: +eric.araujo versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___

[issue33436] Add an interactive shell for Sqlite3

2022-02-11 Thread Diego Ramirez
Diego Ramirez added the comment: Do we still want to do this? See https://discuss.python.org/t/titling-sqlite3-table-columns-with-number/13656/3. -- nosy: +DiddiLeija versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
New submission from Géry : Any [path-like object](https://docs.python.org/3/glossary.html) can be passed to `multiprocessing.set_executable`, i.e. objects with `str`, `bytes`, or `os.PathLike` type. For instance these work (tested on MacOS with all start methods: ‘spawn’, ‘fork’, and ‘forkser

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +29439 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31279 ___ Python tracker ___

[issue46705] Memory optimization for set.issubset

2022-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue18032. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46721] Optimize set.issuperset() for non-set argument

2022-02-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : If the argument of set.issuperset() is not a set, it is first converted to a set. It is equivalent to the following code: if not isinstance(other, (set, frozenset)): other = set(other) # The following is equivalent to: # return set.iss

[issue46721] Optimize set.issuperset() for non-set argument

2022-02-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +29440 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31280 ___ Python tracker ___

[issue46721] Optimize set.issuperset() for non-set argument

2022-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The new code is similar to the code of set.isdisjoint(), so we can share the code if generalize it. -- ___ Python tracker ___

[issue46722] Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()

2022-02-11 Thread Iliya Zinoviev
New submission from Iliya Zinoviev : 1) isfunction() returns `True` for partial object only when one passes `func` attribute of it. 2) For instance, `isgeneratorfunction()` and `iscoroutinefunction()` for partial obj work with passing partial obj as well as with passing `func` attr of this obj

[issue46677] TypedDict docs are incomplete

2022-02-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Please do submit a PR! Agree that more examples of inheritance and attributes would be useful. Note that we're about to deprecate the keyword argument syntax (issue46066). -- ___ Python tracker

[issue46721] Optimize set.issuperset() for non-set argument

2022-02-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Use-after-free by mutating set during set operations ___ Python tracker ___ ___ Pytho

[issue45490] [C API] PEP 670: Convert macros to functions in the Python C API

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b by Victor Stinner in branch 'main': bpo-45490: Rename static inline functions (GH-31217) https://github.com/python/cpython/commit/e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b -- ___

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-11 Thread Eddie Elizondo
Eddie Elizondo added the comment: @eric.snow great to hear about this update! I'll start looking at some of the techniques that we talked about to improve performance, I'm optimistic that we'll be able to close down the gap to 2%. -- ___ Python tr

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2022-02-11 Thread Michał Górny
Michał Górny added the comment: After updating PyPy3 to use Python 3.9's stdlib, we hit very bad hangs because of this — literally compiling a single file with "parallel" compileall could hang. In the end, we had to revert the change in how Python 3.9 starts workers because otherwise multipr

[issue44953] Add vectorcall on operator.itemgetter and attrgetter objects

2022-02-11 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46613] Add PyType_GetModuleByDef to the public & limited API

2022-02-11 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 204946986feee7bc80b233350377d24d20fcb1b8 by Petr Viktorin in branch 'main': bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) https://github.com/python/cpython/commit/204946986feee7bc80b233350377d24d20fcb1b8 --

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue46613] Add PyType_GetModuleByDef to the public & limited API

2022-02-11 Thread Petr Viktorin
Petr Viktorin added the comment: It's in public API, adding it to limited is still pending. -- ___ Python tracker ___ ___ Python-bu

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-02-11 Thread Lincoln Auster
Lincoln Auster added the comment: > Maybe a new parse function, or new parameter to the existing one, > could be easier to add. If I'm understanding you right, that's what this (and the PR) is - an extra optional parameter to urllib.parse to supplement the existing (legacy?) hard-coded list.

[issue46722] Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()

2022-02-11 Thread Iliya Zinoviev
Change by Iliya Zinoviev : Added file: https://bugs.python.org/file50622/isfuncs_behavior.py ___ Python tracker ___ ___ Python-bugs-list mai

[issue46722] Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()

2022-02-11 Thread Iliya Zinoviev
Change by Iliya Zinoviev : Removed file: https://bugs.python.org/file50622/isfuncs_behavior.py ___ Python tracker ___ ___ Python-bugs-list m

[issue46615] Use-after-free by mutating set during set operations

2022-02-11 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset 4a66615ba736f84eadf9456bfd5d32a94cccf117 by Dennis Sweeney in branch 'main': bpo-46615: Don't crash when set operations mutate the sets (GH-31120) https://github.com/python/cpython/commit/4a66615ba736f84eadf9456bfd5d32a94cccf117 -- __

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-11 Thread Eric Snow
Eric Snow added the comment: On Fri, Feb 11, 2022 at 1:36 AM Christoph Reiter wrote: > Sorry if off topic, but I noticed that CPython doesn't deprecate macros in > code, while with gcc/clang it's possible to show compiler warnings for them > using some pragma magic: > [snip] > Maybe that mak

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

2022-02-11 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +29441 pull_request: https://github.com/python/cpython/pull/31281 ___ Python tracker ___

[issue46723] SimpleQueue.put_nowait() documentation error

2022-02-11 Thread Antony Cardazzi
New submission from Antony Cardazzi : SimpleQueue.put_nowait(item) documentation says it is equivalent to SimpleQueue.put(item) when it's actually equivalent to Simple que.put(item, block=False) -- assignee: docs@python components: Documentation messages: 413087 nosy: antonycardazzi,

[issue46724] Odd Bytecode Generation in 3.10

2022-02-11 Thread Saul Shanabrook
New submission from Saul Shanabrook : I noticed that in Python 3.10, and also in main, a certain control flow construct produces some very odd bytecode (showing on main but same on python 3.10 tags): ``` ./python.exe -c 'import dis; dis.dis("while not (a < b < c): pass")' 0 RESU

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2022-02-11 Thread Hasan
Change by Hasan : -- pull_requests: +29442 pull_request: https://github.com/python/cpython/pull/31282 ___ Python tracker ___ ___ Pyt

[issue46724] Odd Bytecode Generation in 3.10

2022-02-11 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Seems that this is allowed since the PEG parser rewrite: for x in *a, *b: print(x) but I cannot find anywhere were we discussed this. I am not sure if we should keep it or treat it as a bug and fix it. -- components: Parser messages: 41

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Since this was already allowed in 3.9 and 3.10 stable relases, and since it is consistent with the RHS of an assignment (something = *a, *b); I'd lean towards keeping it (and maybe fixing the old parser's grammar to reflect that) and documenting this.

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'd lean towards keeping this syntax: - It's already been out for two releases, so there's user code out there relying on it. (In fact we found out about this because somebody complained that Black's parser couldn't handle this code.) - The syntax isn't obvio

[issue46721] Optimize set.issuperset() for non-set argument

2022-02-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: +1 (what Jelle said) -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list maili

[issue46724] Odd Bytecode Generation in 3.10

2022-02-11 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue46713] Provide a C implementation of collections.abc.KeysView and friends

2022-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Some thoughts: * Other than set operations, most of the pure python code in the dict view ABCs are fast pass throughs. There is no point in rewriting these in C: def __contains__(self, key): return key in self._mapping def __iter__(self)

[issue46511] dataclasses: Allow typing.Annotated to wrap dataclasses-specific annotations

2022-02-11 Thread Gregory Beauregard
Gregory Beauregard added the comment: It occurred to be that we do need to add the __call__ to KW_ONLY, but for a different reason than this bpo: If you call get_type_hints on a dataclass with a KW_ONLY parameter when PEP 563 is enabled, the entire call will fail if KW_ONLY isn't callable().

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-02-11 Thread Andreas H.
Change by Andreas H. : -- pull_requests: +29443 pull_request: https://github.com/python/cpython/pull/31283 ___ Python tracker ___ __

[issue46615] Use-after-free by mutating set during set operations

2022-02-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29444 pull_request: https://github.com/python/cpython/pull/31284 ___ Python tracker _

[issue46713] Provide a C implementation of collections.abc.KeysView and friends

2022-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: - arbitrary mappings supports by the view ABCs + arbitrary mappings supported by the view ABCs - A first look, + At first glance, -- ___ Python tracker _

[issue46724] Odd Bytecode Generation in 3.10

2022-02-11 Thread Saul Shanabrook
Change by Saul Shanabrook : -- keywords: +patch pull_requests: +29445 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31285 ___ Python tracker ___

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

2022-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e0bc8ee945af96f9395659bbe3cc30b082e7a361 by Alex Waygood in branch 'main': bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) https://github.com/python/cpython/commit/e0bc8ee945af96f9395659bbe3cc30b082e7a361

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

2022-02-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +29446 pull_request: https://github.com/python/cpython/pull/31286 ___ Python tracker _

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

2022-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +29447 pull_request: https://github.com/python/cpython/pull/31287 ___ Python tracker ___ __

[issue46615] Use-after-free by mutating set during set operations

2022-02-11 Thread miss-islington
miss-islington added the comment: New changeset 1f5fe9962f768c8bfd4ed06a22532d31d3424dc9 by Miss Islington (bot) in branch '3.10': bpo-46615: Don't crash when set operations mutate the sets (GH-31120) https://github.com/python/cpython/commit/1f5fe9962f768c8bfd4ed06a22532d31d3424dc9

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Guido van Rossum
Guido van Rossum added the comment: Let's just document it for 3.11. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2022-02-11 Thread miss-islington
miss-islington added the comment: New changeset a7c1cc41696740bb528f4d24816c59e38b8be345 by Miss Islington (bot) in branch '3.9': bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) https://github.com/python/cpython/commit/a7c1cc41696740bb528f4d24816c59e38b8b

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

2022-02-11 Thread miss-islington
miss-islington added the comment: New changeset f2fbfbe0ec57ec39b3099dae62571a48d5fe8729 by Miss Islington (bot) in branch '3.10': bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) https://github.com/python/cpython/commit/f2fbfbe0ec57ec39b3099dae62571a48d5f

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-02-11 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 4.0 -> 5.0 pull_requests: +29448 pull_request: https://github.com/python/cpython/pull/31288 ___ Python tracker ___

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Will prepare a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46072] Unify handling of stats in the CPython VM

2022-02-11 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 2.0 -> 3.0 pull_requests: +29449 pull_request: https://github.com/python/cpython/pull/31289 ___ Python tracker ___

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

2022-02-11 Thread Matt Wozniski
Matt Wozniski added the comment: > I feel like "If the offset is 00:00, use Z" is the wrong rule to use > conceptually This is a really good point that I hadn't considered: `+00:00` and `Z` are semantically different, and just because a datetime has a UTC offset of 0 doesn't mean it should

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-11 Thread Guido van Rossum
Guido van Rossum added the comment: Heh, I just ran into this for test_taskgroups as well. (Alas, I had debugged and fixed it independently before I found this. :-) -- nosy: +gvanrossum ___ Python tracker _

[issue46720] Add support for path-like objects to multiprocessing.set_executable for Windows to be on a par with Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- title: Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems -> Add support for path-like objects to multiprocessing.set_executable for Windows to be on a par with Unix-like systems ___

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-11 Thread Eryk Sun
Eryk Sun added the comment: > test_call_timeout() or test_timeout() in test_subprocess.py. These tests don't override the standard files, and they only spawn a single child with no descendants. I don't see why this would hang. It shouldn't be a problem with leaked pipe handles (see bpo-43346

[issue46661] Duplicate deprecation warnings in docs for asyncio

2022-02-11 Thread Guido van Rossum
Change by Guido van Rossum : -- title: Duplicat deprecation warnings in docs for asyncio -> Duplicate deprecation warnings in docs for asyncio ___ Python tracker ___ _

[issue46666] IDLE Add indent guide

2022-02-11 Thread primexx
primexx added the comment: very informative discussion. i'll just say that if it's not possible to do purely visually, and it can only be done by modifying the textual content, then it probably should not be done at all. preserving the code (and copy+paste integrity) is more important. maybe

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Kevin Shweh
New submission from Kevin Shweh : This code in Thread._wait_for_tstate_lock: try: if lock.acquire(block, timeout): lock.release() self._stop() except: if lock.locked(): # bpo-45274: lock.acquire() acquired the lock, but the function

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-02-11 Thread Ben
Change by Ben : -- nosy: +bjs nosy_count: 6.0 -> 7.0 pull_requests: +29450 pull_request: https://github.com/python/cpython/pull/31290 ___ Python tracker ___ ___

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Ben added the comment: This is a duplicate of https://bugs.python.org/issue45274 but the patch there did not fix it I've just added a PR there (or should it go here?) that (i think) fixes this. The issue is that the lock.locked() call just checks that *someone* has the lock, not that the pre

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread Ben
Change by Ben : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue46726] Thread spuriously marked dead after interrupting a join call

2022-02-11 Thread James Gerity
Change by James Gerity : -- nosy: +SnoopJeDi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

  1   2   >