[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

I will change my PR.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
nosy: +Jelle Zijlstra

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 still likely some iterations needed 
I'm satisfied that this is technically feasible.

But I'm afraid that's the easy part. If this is to go in, the other problem we 
still have to solve is achieving some consensus among the core developers that 
this is worth doing. Right now, judging by comments on this issue, I think I'm 
the only core dev who thinks this is a good idea; others are lukewarm at best, 
and I'm not willing to unilaterally approve and merge these changes without 
something closer to a consensus. There are a couple of ways forward here:

- Post the proposal on python-ideas to get wider visibility and feedback. If 
everyone agrees this is a great idea (from experience, this seems an unlikely 
outcome), then we can go ahead and merge. Otherwise we'd likely need a PEP to 
move forward.

- Bypass the python-ideas step, write the PEP, discuss in the appropriate 
forums, and then submit to the SC for approval / rejection.

- Convince Eric Smith. :-) With apologies to Eric for singling him out: Eric 
could reasonably be described as the steward/maintainer of the formatting 
machinery, so if he's persuaded, that's good enough for me.

The fact that you've already created a working implementation so that people 
can experiment is a bonus when it comes to trying to sell this to others.

I don't have the bandwidth to write a PEP, but I would be happy to act as PEP 
sponsor.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Union[Union[...], ...].
params = []
for p in parameters:
if isinstance(p, (_UnionGenericAlias, types.UnionType)):
params.extend(p.__args__)
elif isinstance(p, tuple) and len(p) > 0 and p[0] is Union:
params.extend(p[1:])
else:
params.append(p)

return tuple(_deduplicate(params))
```

Source: 
https://github.com/python/cpython/blob/38afeb1a336f0451c0db86df567ef726f49f6438/Lib/typing.py#L274

It is only used in `def Union():`, source: 
https://github.com/python/cpython/blob/38afeb1a336f0451c0db86df567ef726f49f6438/Lib/typing.py#L522-L523

```
parameters = tuple(_type_check(p, msg) for p in parameters)
parameters = _remove_dups_flatten(parameters)
```

But, notice that `_remove_dups_flatten` contains this branch: `elif 
isinstance(p, tuple) and len(p) > 0 and p[0] is Union:`.

It is never executed, removing it does not change `test_typing` / `test_types` 
results. And it is reasonable: `_type_check` ensures that `parameters` can only 
contain types, not `tuple`s.

Proof:

```
>>> from typing import Union, get_type_hints

>>> Union[int, (Union, str, bool)]
# TypeError: Union[arg, ...]: each arg must be a type. Got (typing.Union, 
, ).

>>> class Some:
...x: 'Union[int, (Union, str, bool)]'
... 
>>> get_type_hints(Some)
# TypeError: Union[arg, ...]: each arg must be a type. Got (typing.Union, 
, ).
```

Since it is pretty old, I guess the internal API has changed significantly and 
it is not needed anymore.

I am going to send a PR to remove it.

--
components: Library (Lib)
messages: 411244
nosy: sobolevn
priority: normal
severity: normal
status: open
title: `_remove_dups_flatten` in `typing.py` contains dead branch
type: behavior
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 statically allocated and they are already immortal.

--
components: Build
messages: 411245
nosy: gvanrossum, kumaraditya303
priority: normal
severity: normal
status: open
title: use global singletons for single byte bytes objects in deepfreeze
type: enhancement
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +iritkatriel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +asvetlov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
components: Library (Lib)
messages: 411258
nosy: I-love-study
priority: normal
severity: normal
status: open
title: A option that choose between single quote and double quote in shlex.quote
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28978
pull_request: https://github.com/python/cpython/pull/30793

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Let's change typing_extensions.py too in the same way.

Speaking of typing-extensions, it'd be great if someone could review 
https://github.com/python/typing/pull/963 :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset b4088801db4b4f56b177b1c01dd873c7922e6a9f by Miss Islington (bot) 
in branch '3.9':
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) 
(#30786)
https://github.com/python/cpython/commit/b4088801db4b4f56b177b1c01dd873c7922e6a9f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 923c994400b3f1c67f95d25c703e131890a16912 by Miss Islington (bot) 
in branch '3.10':
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) 
(#30787)
https://github.com/python/cpython/commit/923c994400b3f1c67f95d25c703e131890a16912


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Ben


New submission from Ben :

When installing a package using --editable, pip creates a .egg-link file in 
your site-packages dir that points to the .egg-info metadata that by default 
exists along side the source that it was installed from. This worked just fine 
with the older pkg_resources package. However, the newer importlib.metadata 
does not seem to be aware of .egg-link files at all. The only solution is to 
include the source dir that contains the .egg-info metadata into your 
PYTHONPATH, which sort of defeats the purpose of having the .egg-link pointer 
in the first place.

--
components: Distutils, Library (Lib)
messages: 411262
nosy: dstufft, eric.araujo, onlinespending
priority: normal
severity: normal
status: open
title: importlib.metadata does not honor .egg-link files
type: behavior
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2d03b73cc9c0dada3243eab1373a46dbd98d24a0 by Victor Stinner in 
branch 'main':
bpo-46417: remove_subclass() clears tp_subclasses (GH-30793)
https://github.com/python/cpython/commit/2d03b73cc9c0dada3243eab1373a46dbd98d24a0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 101a184d49756043a0c39dde6eca08b1891137a2 by Nikita Sobolev in 
branch 'main':
bpo-46425: fix direct invocation of `test_traceback` (GH-30746)
https://github.com/python/cpython/commit/101a184d49756043a0c39dde6eca08b1891137a2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 55f4ec460ee6dcffc26180fd982ad89083c9acb1 by Nikita Sobolev in 
branch 'main':
bpo-46425: use absolute imports in `test_sqlite3` (GH-30676)
https://github.com/python/cpython/commit/55f4ec460ee6dcffc26180fd982ad89083c9acb1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 57316c52bae5d6420f5067f3891ec328deb97305 by Nikita Sobolev in 
branch 'main':
bpo-46425: fix direct invocation of `test_importlib` (GH-30682)
https://github.com/python/cpython/commit/57316c52bae5d6420f5067f3891ec328deb97305


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28980
pull_request: https://github.com/python/cpython/pull/30795

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28981
pull_request: https://github.com/python/cpython/pull/30796

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46461] Kodi crashing

2022-01-22 Thread Eric V. Smith


Change by Eric V. Smith :


--
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Ben


Ben  added the comment:

I should also add that the easy-install.pth file, which similarly contains a 
link to the source dir containing the .egg-info metadata, is also not processed 
to locate the necessary metadata.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Éric Araujo

Éric Araujo  added the comment:

It would make sense if importlib only supported official specs.
For editable/develop installs, it is https://www.python.org/dev/peps/pep-0660/ 
which does not mention egg (not egg-link nor egg-info, long since replaced by 
dist-info).

Are you using latest pip, and pyproject.toml?  I would expect pip to follow the 
PEP too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 500c146387b01ea797b52e6a54caf228384e184c by Victor Stinner in 
branch 'main':
bpo-46417: Clear more static types (GH-30796)
https://github.com/python/cpython/commit/500c146387b01ea797b52e6a54caf228384e184c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3a4c15bb9815b6f4652621fe6043ae18e0d202b3 by Victor Stinner in 
branch 'main':
bpo-46417: Cleanup typeobject.c code (GH-30795)
https://github.com/python/cpython/commit/3a4c15bb9815b6f4652621fe6043ae18e0d202b3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28982
pull_request: https://github.com/python/cpython/pull/30797

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

I reopen the issue: test_concurrent_futures seems to be also affected by this 
bug :-(

Example of recent hang:
https://github.com/python/cpython/runs/4908075699?check_suite_focus=true

---
0:18:04 load avg: 1.34 [417/418] test_peg_generator passed (9 min 46 sec) -- 
running: test_concurrent_futures (11 min 20 sec)
0:18:34 load avg: 0.81 running: test_concurrent_futures (11 min 50 sec)
0:19:04 load avg: 0.49 running: test_concurrent_futures (12 min 20 sec)
(...)
0:31:34 load avg: 0.00 running: test_concurrent_futures (24 min 50 sec)
Kill  process group
0:31:43 load avg: 0.00 [418/418/1] test_concurrent_futures timed out (25 min) 
(25 min)
(...)
0:31:43 load avg: 0.00 Re-running test_concurrent_futures in verbose mode
(...)

OK (skipped=6)

== Tests result: FAILURE then SUCCESS ==

409 tests OK.

10 slowest tests:
- test_concurrent_futures: 25 min
- test_peg_generator: 9 min 46 sec
- test_tools: 4 min 45 sec
- test_asyncio: 2 min 18 sec
- test_weakref: 1 min 26 sec
- test_venv: 1 min 24 sec
- test_subprocess: 1 min 6 sec
- test_lib2to3: 1 min 1 sec
- test_pickle: 59.4 sec
- test_gdb: 58.5 sec

9 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_startfile
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_concurrent_futures
---

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28983
pull_request: https://github.com/python/cpython/pull/30798

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ce7d66771ec64488134a1dd114015aa056eef696 by Victor Stinner in 
branch 'main':
bpo-45200: GHA Address Sanitizer skips 3 slowest tests (GH-30797)
https://github.com/python/cpython/commit/ce7d66771ec64488134a1dd114015aa056eef696


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45200] Address Sanitizer: libasan dead lock in pthread_create() (test_multiprocessing_fork.test_get() hangs)

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6cacdb42454264ae75cab5e32bb62876da43bf6f by Victor Stinner in 
branch 'main':
bpo-46417: _PyTypes_FiniTypes() clears object and type (GH-30798)
https://github.com/python/cpython/commit/6cacdb42454264ae75cab5e32bb62876da43bf6f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

It's similar to your change, but more complete :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 followed to find the necessary metadata for 
the package. However, importlib.metadata does not follow either one of these 
links. These links are what makes editable installs possible, so I'm not sure 
how they can be ignored all together, unless there's some different facility 
that provides this functionality.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
nosy: +jaraco

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

* Python 3.7: [22636 refs, 7453 blocks]
* Python 3.8: [18082 refs, 5867 blocks]
* Python 3.9: [17786 refs, 5766 blocks]
* Python 3.10: [10725 refs, 3978 blocks]
* current main branch: [2957 refs, 1240 blocks]

Yeah, main is way better than Python 3.10! I pushed many changes in 
bpo-46417 to clear most static types, it helps a lot!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46126] Unittest output drives developers to avoid docstrings

2022-01-22 Thread miss-islington


miss-islington  added the comment:


New changeset a941e5927f7f2540946813606c61c6aea38db426 by Jason R. Coombs in 
branch 'main':
bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)
https://github.com/python/cpython/commit/a941e5927f7f2540946813606c61c6aea38db426


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46126] Unittest output drives developers to avoid docstrings

2022-01-22 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I've merged the fix for regrtest and I'll explore Terry's concerns and see what 
I can devise for those concerns as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46126] Unittest output drives developers to avoid docstrings

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
assignee:  -> jaraco

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


STINNER Victor  added the comment:

Attached cannot_deallocate.patch explains why some static types cannot be 
deallocated. It lists (static) types which are not cleard properly at Python 
exit.

Simplest example:
---
$ ./python -c pass
Cannot clear type 'object': it still has subclasses
* EncodingMap
* fieldnameiterator
* formatteriterator
* BaseException
* _io._IOBase
* _io._BytesIOBuffer
* _io.IncrementalNewlineDecoder
---

More complete example:
---
$ ./python setup.py build
running build
(...)
Cannot clear type 'types.GenericAlias': it still has subclasses
* _CallableGenericAlias
Cannot clear type 'tuple': it still has subclasses
* datetime.IsoCalendarDate
* DecimalTuple
Cannot clear type 'staticmethod': it still has subclasses
* abstractstaticmethod
Cannot clear type 'property': it still has subclasses
* abstractproperty
Cannot clear type 'list': it still has subclasses
* MyList
Cannot clear type 'dict': it still has subclasses
* collections.defaultdict
* StgDict
Cannot clear type 'classmethod': it still has subclasses
* abstractclassmethod
Cannot clear type 'type': it still has subclasses
* ABCMeta
* _ctypes.PyCStructType
* _ctypes.UnionType
* _ctypes.PyCPointerType
* _ctypes.PyCArrayType
* _ctypes.PyCSimpleType
* _ctypes.PyCFuncPtrType
Cannot clear type 'object': it still has subclasses
* type
* classmethod
* dict
* list
* property
* staticmethod
* tuple
* types.GenericAlias
* EncodingMap
* fieldnameiterator
* formatteriterator
* BaseException
* ModuleSpec
* FrozenImporter
* _io._IOBase
* _io._BytesIOBuffer
* _io.IncrementalNewlineDecoder
* _LoaderBasics
* FileLoader
* _abc._abc_data
* ABC
* Hashable
* Awaitable
* AsyncIterable
* Iterable
* Sized
* Container
* Callable
* itertools.accumulate
* itertools.combinations
* itertools.combinations_with_replacement
* itertools.cycle
* itertools.dropwhile
* itertools.takewhile
* itertools.islice
* itertools.starmap
* itertools.chain
* itertools.compress
* itertools.filterfalse
* itertools.count
* itertools.zip_longest
* itertools.pairwise
* itertools.permutations
* itertools.product
* itertools.repeat
* itertools.groupby
* itertools._grouper
* itertools._tee
* itertools._tee_dataobject
* collections.deque
* _collections._deque_iterator
* _collections._deque_reverse_iterator
* _collections._tuplegetter
* _IterationGuard
* WeakSet
* _struct.Struct
* _struct.unpack_iterator
* datetime.date
* datetime.time
* datetime.timedelta
* datetime.tzinfo
* _pickle.Pdata
* _pickle.PicklerMemoProxy
* _pickle.UnpicklerMemoProxy
* _pickle.Pickler
* _pickle.Unpickler
* _socket.socket
* _asyncio.FutureIter
* TaskStepMethWrapper
* _RunningLoopHolder
* _asyncio.Future
* _xxsubinterpreters.ChannelID
* matmulType
* ipowType
* awaitType
* MethodDescriptorBase
* GenericAlias
* Generic
* MethInstance
* MethClass
* MethStatic
* _testcapi.HeapCType
* _testcapi.ContainerNoGC
* _curses.window
* ossaudiodev.oss_audio_device
* ossaudiodev.oss_mixer_device
* _elementtree._element_iterator
* xml.etree.ElementTree.TreeBuilder
* xml.etree.ElementTree.Element
* xml.etree.ElementTree.XMLParser
* decimal.Decimal
* decimal.Context
* decimal.SignalDictMixin
* decimal.ContextManager
* Number
* _multiprocessing.SemLock
* xxlimited.Xxo
* CArgObject
* _ctypes.CThunkObject
* _ctypes._CData
* _ctypes.CField
* _ctypes.DictRemover
* _ctypes.StructParam_Type
---

--
Added file: https://bugs.python.org/file50576/cannot_deallocate.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +28984
pull_request: https://github.com/python/cpython/pull/30799

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46474] Inefficient regular expression complexity in EntryPoint.pattern

2022-01-22 Thread Jason R. Coombs


New submission from Jason R. Coombs :

Originally reported to the Python Security Response Team, the 
EntryPoint.pattern demonstrates a potential 
[ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_).

The issue has been patched and fix released with importlib_metadata 4.10.1. 
Let's get that fix incorporated into Python as well.

--
assignee: jaraco
components: Library (Lib)
messages: 411282
nosy: jaraco
priority: normal
severity: normal
status: open
title: Inefficient regular expression complexity in EntryPoint.pattern
type: security
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Stéphane Blondon

Stéphane Blondon  added the comment:

I can reproduce it on python 3.8.
I can't reproduce it on python 3.9 or 3.10.

--
nosy: +sblondon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2022-01-22 Thread Stéphane Blondon

Stéphane Blondon  added the comment:

I can reproduce the error on Debian/testing with:
- Python 3.9.9
- Python 3.10.0

--
nosy: +sblondon
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2022-01-22 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46474] Inefficient regular expression complexity in EntryPoint.pattern

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
keywords: +patch
pull_requests: +28987
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30802

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +28988
pull_request: https://github.com/python/cpython/pull/30802

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +28990
pull_request: https://github.com/python/cpython/pull/30803

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46474] Inefficient regular expression complexity in EntryPoint.pattern

2022-01-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +28989
pull_request: https://github.com/python/cpython/pull/30803

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread Eryk Sun


Eryk Sun  added the comment:

> If some one closes fd 0, then he reopens it. it will not be inherited.

In Windows, when a console process spawns a child console process without 
enabling handle inheritance -- e.g. subprocess.Popen(['python.exe']) -- the OS 
will manually duplicate (not inherit) the standard handles to the child. It 
doesn't matter in this case that a standard handle isn't inheritable. 

The latter also doesn't matter when any of the standard handles is overridden 
by a Popen() call in Windows -- e.g. subprocess.Popen(['python.exe'], 
stderr=DEVNULL). All of the standard handle values have to be overridden 
together. Popen() uses this as an opportunity to duplicate an inheritable 
handle for each that's not overridden, instead of just copying the handle value.

On the other hand, if subprocess.Popen() is called in Windows with handle 
inheritance enabled and without overriding the standard handles -- e.g. 
subprocess.Popen(['python.exe'], close_fds=False) -- then the standard handles 
should be inheritable. If any of the standard handles isn't inheritable, then 
at best the standard handle value in the child will be invalid or used by a 
handle for a kernel object type other than a file (e.g. process, event). By 
coincidence, however, a file open in the child could reuse the standard handle 
value, which can lead to buggy behavior.

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46409] Add a new bytecode instruction to create generators

2022-01-22 Thread Nikita Sobolev


Change by Nikita Sobolev :


--
nosy: +sobolevn
nosy_count: 1.0 -> 2.0
pull_requests: +28991
pull_request: https://github.com/python/cpython/pull/30780

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2022-01-22 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28992
pull_request: https://github.com/python/cpython/pull/30804

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46465] test_unittest: TestBreakSignalDefault.testInstallHandler() fails if run after TestBreak

2022-01-22 Thread Guido van Rossum


Guido van Rossum  added the comment:

@kj, are you looking into this?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46431] Trouble subclassing ExceptionGroup

2022-01-22 Thread Guido van Rossum


Guido van Rossum  added the comment:

Is this a matter of adding some documentation showing how it should be done? 
Even if we don't want to encourage such subclassing, we do have APIs to support 
it, and I think we ought to show how to do it, given that you have to 
coordinate a bunch of things.

How feasible is it to improve the error? (If that error is what you always get 
when __init__ and __new__ don't agree, maybe that could be a separate, more 
general issue?)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >