[issue46421] unittest ValueError when invoking as module

2022-01-22 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303, serhiy.storchaka type: -> behavior versions: +Python 3.11, Python 3.9 ___ Python tracker ___

[issue29257] Possible error in discussion of Abstract Base Classes and abstract properties

2022-01-22 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

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

[issue46442] testExceptionCleanupNames doesn't test anything?

2022-01-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, @yellowdusk1590! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-22 Thread Irit Katriel
Irit Katriel added the comment: This is a feature. See https://docs.python.org/3/library/argparse.html#help -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46396] Typing: test invalid usages of `Concatenate`

2022-01-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: > So maybe that code could just be removed? I see this trend in typing.py :) I think it makes sense to make all new types (I still consider `ParamSpec` and `Concatenate` as new, desipte the fact they are already released in 3.10) as flexible as possible.

[issue43079] wrong IP address range given for ipv4_mapped

2022-01-22 Thread Kumar Aditya
Change by Kumar Aditya : -- versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-22 Thread Alex Waygood
Alex Waygood added the comment: Thanks for the PRs, Kumar — I appreciate you putting in the time. Sorry for the wasted effort. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46396] Typing: test invalid usages of `Concatenate`

2022-01-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: With this change `typing.py` and `typing_extensions.py` will have different logic: https://github.com/python/typing/blob/523cf0233edc7a29502fbd30dc6bf641a7408e16/typing_extensions/src/typing_extensions.py#L1805-L1811 Jelle, what should we do? --

[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45995] string formatting: normalize negative zero

2022-01-22 Thread Mark Dickinson
Mark Dickinson added the comment: [John] > Mark, would you give it a review this month? Apologies; my holiday-break free time was nobbled from unexpected quarters. I can't promise to find time this month, but I can promise to try. I did at least skim through the PR, and while there are

[issue46471] use global singletons for single byte bytes objects in deepfreeze

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

[issue46471] use global singletons for single byte bytes objects in deepfreeze

2022-01-22 Thread Kumar Aditya
New submission from Kumar Aditya : By using global singletons for single byte bytes objects in deepfreeze, there is no need to generate c code for it so it reduces the size of generated c file and reduces memory use of the objects when they are allocated on the heap as now they are

[issue46383] _zoneinfo module_free has invalid function signature

2022-01-22 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +28968 pull_request: https://github.com/python/cpython/pull/30783 ___ Python tracker ___

[issue46383] _zoneinfo module_free has invalid function signature

2022-01-22 Thread miss-islington
miss-islington added the comment: New changeset 3e7d06a1fa2102723314552b37410d11fefa928a by Kumar Aditya in branch '3.9': [3.9] bpo-46383: Fix signature of zoneinfo module_free function (GH-3… (GH-30611) https://github.com/python/cpython/commit/3e7d06a1fa2102723314552b37410d11fefa928a

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28967 pull_request: https://github.com/python/cpython/pull/30782 ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5a5340044ca98cbe6297668d91bccba04b102923 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `asyncio` tests (#30725) https://github.com/python/cpython/commit/5a5340044ca98cbe6297668d91bccba04b102923 -- nosy:

[issue46460] Doc/library/dis.rst lists `versionchange` twice for `WITH_EXCEPT_START`

2022-01-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset 5d735241168cefe00be177ef4152955c100177ae by Nikita Sobolev in branch 'main': bpo-46460: remove duplicated `versionchanged` from `dis.rst` (GH-30752) https://github.com/python/cpython/commit/5d735241168cefe00be177ef4152955c100177ae --

[issue46460] Doc/library/dis.rst lists `versionchange` twice for `WITH_EXCEPT_START`

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

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ea5b96842e066623a53015d8b2492ed61a5baf96 by Kumar Aditya in branch 'main': bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) https://github.com/python/cpython/commit/ea5b96842e066623a53015d8b2492ed61a5baf96 --

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28969 pull_request: https://github.com/python/cpython/pull/30784 ___ Python tracker

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +28970 pull_request: https://github.com/python/cpython/pull/30785 ___ Python tracker ___

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Kumar Aditya
Change by Kumar Aditya : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 90e2998db78cd15e45b3c82f6360ac8841e03945 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (#30784)

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6111d5dee2b24916ff95dba56efc569396a31851 by Miss Islington (bot) in branch '3.10': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782) https://github.com/python/cpython/commit/6111d5dee2b24916ff95dba56efc569396a31851

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c8a536624e8f5d6612e3c275c5b19592583a8cf8 by Jelle Zijlstra in branch 'main': bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) https://github.com/python/cpython/commit/c8a536624e8f5d6612e3c275c5b19592583a8cf8

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28971 pull_request: https://github.com/python/cpython/pull/30786 ___ Python tracker

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +28972 pull_request: https://github.com/python/cpython/pull/30787 ___ Python tracker ___

[issue46445] Multiple inheritance of TypedDict is not covered in `test_typing`

2022-01-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thanks for the review and merge! :sparkle: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-22 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 38afeb1a336f0451c0db86df567ef726f49f6438 by Erlend Egeberg Aasland in branch 'main': bpo-46249: Move set lastrowid out of the sqlite3 query loop (GH-30489) https://github.com/python/cpython/commit/38afeb1a336f0451c0db86df567ef726f49f6438

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

2022-01-22 Thread Nikita Sobolev
New submission from Nikita Sobolev : Here's how `_remove_dups_flatten` is defined right now: ``` def _remove_dups_flatten(parameters): """An internal helper for Union creation and substitution: flatten Unions among parameters, then remove duplicates. """ # Flatten out

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

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28965 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30780 ___ Python tracker ___

[issue46340] DeprecationWarning emitted when running asyncio tests

2022-01-22 Thread Kumar Aditya
Change by Kumar Aditya : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
miss-islington added the comment: New changeset 3c4a3745b900e748f99e80fc3728b534e857d1ff by Miss Islington (bot) in branch '3.9': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) https://github.com/python/cpython/commit/3c4a3745b900e748f99e80fc3728b534e857d1ff --

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread miss-islington
miss-islington added the comment: New changeset 6ed874f8c59cc6c01d9663bad2f4bed8dc1c6109 by Kumar Aditya in branch '3.9': [3.9] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (GH-30785)

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28973 pull_request: https://github.com/python/cpython/pull/30788 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28974 pull_request: https://github.com/python/cpython/pull/30789 ___ Python tracker

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset f1c6ae3270913e095d24ae13ecf96f5a32c8c503 by Victor Stinner in branch 'main': bpo-46417: Fix race condition on setting type __bases__ (GH-30788) https://github.com/python/cpython/commit/f1c6ae3270913e095d24ae13ecf96f5a32c8c503 --

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +28975 pull_request: https://github.com/python/cpython/pull/30790 ___ Python tracker ___

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28976 pull_request: https://github.com/python/cpython/pull/30791 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset acda9f3b90c33e4020237cb9e5c676efb38f7847 by Miss Islington (bot) in branch '3.10': bpo-46417: Fix race condition on setting type __bases__ (GH-30788) (GH-30789) https://github.com/python/cpython/commit/acda9f3b90c33e4020237cb9e5c676efb38f7847

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset f1796f29478f08f34e0c30a060622c0b2d843e2c by Miss Islington (bot) in branch '3.9': bpo-46417: Fix race condition on setting type __bases__ (GH-30788) (GH-30790) https://github.com/python/cpython/commit/f1796f29478f08f34e0c30a060622c0b2d843e2c

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28977 pull_request: https://github.com/python/cpython/pull/30792 ___ Python tracker ___

[issue46472] A option that choose between single quote and double quote in shlex.quote

2022-01-22 Thread I_love_study
New submission from I_love_study <1450069...@qq.com>: shlex.quote always use single quote but in some shell (like Cmd on Windows), single quote cannot be recognized as a shell-escaped string, only double quote can. So I think a option that can choose between single quote and double quote is

[issue46475] typing.Never and typing.assert_never

2022-01-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Based on feedback here and on typing-sig I'm now leaning towards adding typing.Never along with typing.assert_never. I'll submit a single patch for these as the documentation will be closely linked. -- title: Document use of NoReturn as a bottom

[issue45606] pathlib.Path.glob() does not list dangling symlink when pattern is the exact filename

2022-01-22 Thread Andrei Kulakov
Change by Andrei Kulakov : -- title: pathlib.Path.glob() does not list dangling symlink when pattern is the exact filenane -> pathlib.Path.glob() does not list dangling symlink when pattern is the exact filename versions: +Python 3.11 -Python 3.8

[issue29882] Add an efficient popcount method for integers

2022-01-22 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +28979 pull_request: https://github.com/python/cpython/pull/30794 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo` (GH-30792) https://github.com/python/cpython/commit/1f8014c5b4ea7acee069ca453f6fbcad5990ebf0

[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-22 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 83aef4d34022f293336f606dba8598cc7ac8f9f2 by Miss Islington (bot) in branch '3.10': bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' (GH-30285) (#30765)

[issue46473] importlib.metadata does not honor .egg-link files

2022-01-22 Thread Ben
Ben added the comment: yes, the latest version of pip creates an .egg-info metadata dir at the level of the package src dir and .egg-link and easy-install.pth stubs in the site-packages dir (the contents of which are paths to the package src dir). The intent is that these links would be

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: In bpo-46417, I pushed a change to call _PyDebug_PrintTotalRefs() after destroying the interpreter. I backported locally this change to other Python versions to compare the progress on old Python versions: ./python -I -X showrefcount -c pass command: *

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28986 pull_request: https://github.com/python/cpython/pull/30801 ___ Python tracker ___

[issue39854] f-strings with format specifiers have wrong col_offset

2022-01-22 Thread Irit Katriel
Irit Katriel added the comment: Closing as 3.8 is only getting security fixes now. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45995] string formatting: normalize negative zero

2022-01-22 Thread Eric V. Smith
Eric V. Smith added the comment: Wow, thanks, Mark! I'm generally in favor. The selling points to me are that it needs to happen post-rounding, and the C++ discussion. It would be better if this were already accepted in C++. I'll note that the paper is proposing a 'z' modifier to the sign,

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +28999 pull_request: https://github.com/python/cpython/pull/30811 ___ Python tracker

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +29000 pull_request: https://github.com/python/cpython/pull/30812 ___ Python tracker ___

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1ded8ed8e817b8f9dae1a0ef92d97983afbc844e by Nikita Sobolev in branch 'main': bpo-41682: Skip unstable test_asyncio sendfile test on Windows (GH-30801) https://github.com/python/cpython/commit/1ded8ed8e817b8f9dae1a0ef92d97983afbc844e

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset a1444f43584af0f7a0af72aa06ba0a86ae5a87a2 by Victor Stinner in branch 'main': bpo-46417: Fix _PyStaticType_Dealloc() (GH-30810) https://github.com/python/cpython/commit/a1444f43584af0f7a0af72aa06ba0a86ae5a87a2 --

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

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: Is there a way to disable deepfreeze when building Python? It makes the Python build way slower. For example, a full build (after "make clean") of Python 3.10 takes 14.9 seconds on my laptop, whereas Python 3.11 takes 24.6 seconds (1.6x slower). It makes my

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2022-01-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: I was wrong that the method is undocumented, it is documented but it doesn't explain the type of *headers* param. The headers can also be more easily created using `email.message.Message()`. I've added the PR documenting this param. --

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

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46476: "Not all memory allocated by _Py_Quicken() is released at Python exit". -- ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46476: Not all memory allocated by _Py_Quicken() is released at Python exit. -- ___ Python tracker ___

[issue32007] deprecate the nis module

2022-01-22 Thread Irit Katriel
Change by Irit Katriel : -- title: nis module fails to build against glibc-2.26 -> deprecate the nis module type: compile error -> enhancement versions: +Python 3.11 ___ Python tracker

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

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: Patch to disable _Py_Quicken(), to help me debugging other memory leaks at Python exit: diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index dfc75300315..f9cdefed2a2 100644 --- a/Include/internal/pycore_code.h +++

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29002 pull_request: https://github.com/python/cpython/pull/30815 ___ Python tracker ___

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-22 Thread Guido van Rossum
Guido van Rossum added the comment: > Is there a way to disable deepfreeze when building Python? It looks like this isn't easy, sorry. :-( Adding Christian Heimes in case he has a suggestion. -- nosy: +christian.heimes ___ Python tracker

[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-22 Thread Dong-hee Na
New submission from Dong-hee Na : Triggered by Victor's suggestion: - Well-used. - Easy to enhance performance. - Performance enhancement is notable. Mean +- std dev: [weakref_base] 49.3 ns +- 2.2 ns -> [weakref_vectorcall] 27.7 ns +- 0.9 ns: 1.78x faster -- assignee: corona10

[issue46482] `typing.Annotation.__new__` is not covered

2022-01-22 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now no unit test covers this line: https://github.com/python/cpython/blob/51c3e28c8a163e58dc753765e3cc51d5a717e70d/Lib/typing.py#L1669-L1670 I will send a simple test for it. -- components: Tests messages: 411352 nosy: gvanrossum, kj,

[issue46482] `typing.Annotation.__new__` is not covered

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29008 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30821 ___ Python tracker ___

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

2022-01-22 Thread Kumar Aditya
Kumar Aditya added the comment: > Would it be possible to enhance deepfreeze be produce a list of all > (immortal) code objects? It is tricky because the deepfreeze modules are generated by the bootstrap interpreter in Linux/MacOS and the downloaded python from nuget interpreter on Windows

[issue46240] Incorrect hint about forgetting a comma

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: Ah, thanks for the backport :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2022-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46478] DirEntry.stat() of os.scandir() has no dir_fd parameter

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't test os.scandir() properly. If you pass a file descriptor to os.scandir(), it yields DirEntry entries with contains the directory FD. Ignore my request, Python works as expected :-D -- resolution: -> not a bug stage: -> resolved

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

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: It seems like the following target miss CHECK_EVAL_BREAKER(): TARGET(CALL_NO_KW_METHOD_DESCRIPTOR_FAST) TARGET(CALL_NO_KW_METHOD_DESCRIPTOR_O) TARGET(CALL_NO_KW_BUILTIN_FAST) TARGET(CALL_NO_KW_BUILTIN_O) TARGET(CALL_NO_KW_BUILTIN_CLASS_1)

[issue46474] Inefficient regular expression complexity in EntryPoint.pattern

2022-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 51c3e28c8a163e58dc753765e3cc51d5a717e70d by Jason R. Coombs in branch 'main': bpo-46474: Avoid REDoS in EntryPoint.pattern (sync with importlib_metadata 4.10.1) (GH-30803)

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

2022-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46479] Implement typing.reveal_locals

2022-01-22 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Implement typing.reveal_locals() as proposed in https://mail.python.org/archives/list/typing-...@python.org/thread/5MGN6HZWTJELNLIUOXTHLIXVLKZCEWY2/. This is a marker for type checkers that causes them to emit the types of all local variables. --

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

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: The problem is that the optimization no longer checks for pending signals in TARGET(CALL_NO_KW_BUILTIN_FAST). The patch below fix my issue. I guess that other opcode needs an additional CHECK_EVAL_BREAKER(). diff --git a/Python/ceval.c b/Python/ceval.c

[issue46481] Implement vectorcall protocol for weakref_call()

2022-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +29007 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30820 ___ Python tracker ___

[issue32007] deprecate the nis module

2022-01-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: PEP 549 lists nis among modules to be removed: https://www.python.org/dev/peps/pep-0594/#nis For what it's worth, when I built 3.11 from source on Ubuntu 16.04 I managed to build the nis extension, without installing any special libraries first. --

[issue44642] Union of a type and the typing module function

2022-01-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: Looks like it was fixed indeed, `NewType` is now a class. And I cannot reproduce it even on `3.10`: ``` Python 3.10.0 (default, Nov 1 2021, 10:24:06) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue37295] Possible optimizations for math.comb()

2022-01-22 Thread Tim Peters
Tim Peters added the comment: Ya, I don't expect anyone will check in a change without doing comparative timings in C first. Not worried about that. I'd be happy to declare victory and move on at this point ;-) But that's me. Near the start of this, I noted that we just won't compete with

[issue46480] Implement typing.assert_type

2022-01-22 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Implement typing.assert_type as proposed in https://mail.python.org/archives/list/typing-...@python.org/thread/MITFQ6Z45RRMXY3HNM66IC3XXS3TA3JN/. This is a special primitive that asserts to the type checker what the type of an expression is. Tentatively

[issue31698] Add REQ_NAME to the node.h API

2022-01-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The PR was closed for lack of interest. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27219] turtle.fillcolor doesn't accept a tuple of floats

2022-01-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- assignee: Jelle Zijlstra -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-22 Thread STINNER Victor
STINNER Victor added the comment: Kumar Aditya: "The following patch further reduces the reference but not sure if it is correct (...)" Right! PyContext and PyHamt types were on my TODO list ;-) They are now cleared since this change: bpo-46417: Clear more static types (GH-30796)

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28985 pull_request: https://github.com/python/cpython/pull/30800 ___ Python tracker ___

[issue46474] Inefficient regular expression complexity in EntryPoint.pattern

2022-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Because I want this security issue to be back-portable to older Pythons, I'll first apply importlib_metadata 4.10.0 and then apply the change from 4.10.1 separately. -- ___ Python tracker

[issue46475] Document use of NoReturn as a bottom type

2022-01-22 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : At the moment, https://docs.python.org/3.10/library/typing.html#typing.NoReturn simply says: Special type indicating that a function never returns. In practice, type checkers accept NoReturn as a bottom type in other positions too. We should document

[issue46475] Document use of NoReturn as a bottom type

2022-01-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- components: +Library (Lib) versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___

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

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- title: test_unittest: TestBreakSignalDefault.testInstallHandler() fails if run after TestBreak -> Regression caused by CALL_FUNCTION specialization for C function calls ___ Python tracker

[issue46454] '0 -> /dev/null' is lost

2022-01-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46421] unittest ValueError when invoking as module

2022-01-22 Thread Bader Zaidan
Change by Bader Zaidan : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46475] Document use of NoReturn as a bottom type

2022-01-22 Thread Alex Waygood
Alex Waygood added the comment: I also agree that documenting this is a great idea. It's already been adopted by large swathes of the typing community for use in this context. The value of having NoReturn act as a "bottom type" is evident. Time to make it official, in my opinion.

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46477] Enum: ensure bitwise operators on subclasses are correct

2022-01-22 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +29003 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30816 ___ Python tracker ___

[issue46478] DirEntry.stat() of os.scandir() has no dir_fd parameter

2022-01-22 Thread STINNER Victor
New submission from STINNER Victor : I read the Rust CVE-2022-21658 vulnerability of std::fs::remove_dir_all: https://blog.rust-lang.org/2022/01/20/cve-2022-21658.html It's a race condition if an attacker replaces a directory with a symlink while Rust is removing the parent directory, Rust

  1   2   >