[issue47005] Improve performance of bytes_repeat

2022-03-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset ac8308d3eaf2526318c1bbf13d4a214fd24605d2 by Pieter Eendebak in branch 'main': bpo-47005: Improve performance of bytearray_repeat and bytearray_irepeat (GH-31856) https://github.com/python/cpython/commit/ac8308d3eaf2526318c1bbf13d4a214fd24605d2

[issue47005] Improve performance of bytes_repeat

2022-03-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: Thanks for the contribution -- that's a really nice speedup. -- ___ Python tracker ___ ___ Python

[issue47005] Improve performance of bytes_repeat

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

[issue47023] re.sub shows key error on regex escape chars provided in repl param

2022-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: I agree the error message could be better. Also, "s.error('bad escape %s' % this, len(this))" should probably be "from None", since as @mrabarnett notes the KeyError is an implementation detail. -- ___ Python track

[issue46223] asyncio cause infinite loop during debug

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #47039 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Normalize asyncio future and task repr() ___ Python tracker _

[issue46421] unittest ValueError when invoking as module

2022-03-17 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset a0db11b10fca0fee6bb2b8d6277e266bad8c0fdb by Bader Zaidan in branch 'main': bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) https://github.com/python/cpython/commit/a0db11b10fca0fee6bb2b8d6277e266bad8c0fdb ---

[issue46421] unittest ValueError when invoking as module

2022-03-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +30059 pull_request: https://github.com/python/cpython/pull/31969 ___ Python tracker _

[issue46421] unittest ValueError when invoking as module

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

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2022-03-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46421] unittest ValueError when invoking as module

2022-03-17 Thread miss-islington
miss-islington added the comment: New changeset 0b5f99ad1af0892a2d6043abd8aeb10d685d3844 by Miss Islington (bot) in branch '3.10': bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) https://github.com/python/cpython/commit/0b5f99ad1af0892a2d6043abd8aeb10d685d3844

[issue40296] help(list[int]) fails

2022-03-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +JelleZijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue47054] "SyntaxError: non-default argument follows default argument" should be "parameter"

2022-03-17 Thread Bluenix
New submission from Bluenix : Running the code below will produce a SyntaxError with the message: "non-default argument follows default argument". def test(a=None, b): return b if a is None else a The issue is that `a` and `b` aren't *arguments*, rather, they are *parameters*. Th

[issue42782] shutil.move creates a new directory even on failure

2022-03-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +JelleZijlstra nosy_count: 3.0 -> 4.0 pull_requests: +30061 pull_request: https://github.com/python/cpython/pull/31971 ___ Python tracker __

[issue36744] functools.singledispatch: Shouldn't require a positional argument if there is only one keyword argument

2022-03-17 Thread Tim Mitchell
Tim Mitchell added the comment: I would really prefer the dispatch logic remains simple and fast, rather than handle single keyword arguments. -- nosy: +Tim Mitchell2 ___ Python tracker

[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2022-03-17 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Yes. -- nosy: +JelleZijlstra resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> doctest.DocTestCase fails when run repeatedly ___ Python tracker

[issue42782] shutil.move creates a new directory even on failure

2022-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset e808c9d5c78e5a7a9d804eced013a02c0c7df1a5 by Jelle Zijlstra in branch '3.9': [3.9] bpo-42782: fix broken shutil test (GH-31971) https://github.com/python/cpython/commit/e808c9d5c78e5a7a9d804eced013a02c0c7df1a5 -- _

[issue47055] `issubclass` on two different subclasses of abstract base class like `os.PathLike` returns unexpected value on early versions of Py3.7 and Py3.8

2022-03-17 Thread mobiusklein
New submission from mobiusklein : The following code looks correct: ```python import os class A(os.PathLike): pass class B(os.PathLike): pass assert issubclass(A, os.PathLike) # direct inheritance relationship assert issubclass(B, os.PathLike) # direct inheritance relationship assert

[issue46421] unittest ValueError when invoking as module

2022-03-17 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 1cab44d8650ae3eece90b04fca373908205e7ee0 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) (GH-31970) https://github.com/python/cpython/commit/1cab44d8650ae3eece90b04fc

[issue46421] unittest ValueError when invoking as module

2022-03-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue47054] "SyntaxError: non-default argument follows default argument" should be "parameter"

2022-03-17 Thread Vedran Čačić
Vedran Čačić added the comment: The problem is more subtle. The thing is, "default parameter" doesn't make sense in this context. Yes, a and b are parameter, but a is not "default parameter" in any sensible way. It is _None_ which is the default argument for parameter a, while parameter b has

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2022-03-17 Thread Tim Mitchell
Tim Mitchell added the comment: I've come up with a version that does not require a base class. Seems a bit hacky as the descriptor __get__ method now modifies the class to put the dispatch table in place the first time the method is accessed. -- Added file: https://bugs.python.org/f

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2022-03-17 Thread Tim Mitchell
Change by Tim Mitchell : Added file: https://bugs.python.org/file50689/test_sdm.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-17 Thread Arie Bovenberg
Arie Bovenberg added the comment: @eric.smith awesome! What would you like to do about the __weakref__ slot? 1. take no action 2. create a separate ticket to discuss further 3. implement as done in attrs, now that we're changing __slots__ dataclass behavior anyway I wouldn't recommend (1),

<    1   2