[issue44863] Allow TypedDict to inherit from Generics

2021-08-17 Thread Tobias Burger


Change by Tobias Burger :


--
nosy: +toburger

___
Python tracker 

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



[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Toshio Kuratomi


Toshio Kuratomi  added the comment:

PR Opened.

A fix for this should be backported as well.  However, if you decide you don't 
want the refactor backported, you can merely continue to change the condition 
inside of BooleanOptionalAction to repeat all of the same checks as are 
contained in the older versions' ArgumentDefaultsHelpFormatter.

--

___
Python tracker 

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



[issue27498] Regression in repr() of class object

2021-08-17 Thread Ned Deily


Change by Ned Deily :


--
pull_requests:  -26016

___
Python tracker 

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



[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-08-17 Thread Toshio Kuratomi


Change by Toshio Kuratomi :


--
pull_requests: +26275
pull_request: https://github.com/python/cpython/pull/27808

___
Python tracker 

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



[issue44933] python3.9-intel64 hardened runtime not enabled

2021-08-17 Thread Ned Deily

Ned Deily  added the comment:

The "python3.x-intel64" executable was added for macOS "universal2" builds by 
Issue44009 in the 3.9.5 and 3.8.10 releases. As described in the issue and the 
changelog entries, the rationale is:

"Provide “python3.x-intel64” executable to allow reliably forcing macOS 
universal2 framework builds to run under Rosetta 2 Intel-64 emulation on Apple 
Silicon Macs. This can be useful for testing or when universal2 wheels are not 
yet available."

We provided an analogous "python3.x-32" executable for macOS "intel" (x64_64 
and i386 archs) builds for a similar reason.

Although it is mentioned in the changelog (and the python.org macOS installer 
ReadMe), I didn't anticipate that there would be anyone attempting to build and 
submit a universal binary for Apple notarization and who would be affected by 
this change: sorry about that! You can just either add the new executable to 
your codesigning script or you could delete the file before codesigning if you 
don't have a need to provide it to your users: it isn't needed unless you want 
to reliably force running under Rosetta 2 Intel emulation on an Apple Silcon 
Mac.

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



[issue44944] Addition of _heappush_max method to complete the max heap implementation in Python's heapq module

2021-08-17 Thread Yatharth Mathur


Change by Yatharth Mathur :


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

___
Python tracker 

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



[issue44944] Addition of _heappush_max method to complete the max heap implementation in Python's heapq module

2021-08-17 Thread Yatharth Mathur


Change by Yatharth Mathur :


--
nosy: yatharthmathur
priority: normal
pull_requests: 26273
severity: normal
status: open
title: Addition of _heappush_max method to complete the max heap implementation 
in Python's heapq module
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



[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

As the original author of _PyErr_ChainExceptions() (issue21715) I am not sure 
that its name and signature are optimal. It did not matter while it was 
internal function because we could change them at any moment, but for public 
API the design should be more thoughtful.

Is passing three arguments convenient enough? Would not be better to pass them 
as a single argument like in _PyErr_ChainStackItem()? Is the function name 
good? Should we provide several similar functions for setting __context__, 
__cause__ and both?

There are other, more specialized, helpers: _PyErr_FormatFromCause() and 
_PyErr_TrySetFromCause().

There are also some flaws in setting __context__ and __cause__ (see 
issue39725). Perhaps we will design better concept of chaining exceptions in 
future.

--
components: +C API
nosy: +serhiy.storchaka
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



[issue44943] Integrate PyHyphen into the textwrap module?

2021-08-17 Thread Elsie Hupp


New submission from Elsie Hupp :

PyHyphen is a mature library that wraps the existing CPython `textwrap` module 
and provides the ability to break and hyphenate words in wrapped text.

PyHyphen is on PyPI here:

https://pypi.org/project/PyHyphen/

And on GitHub here:

https://github.com/dr-leo/PyHyphen

While the PyPI page and the README file say that PyHyphen uses an Apache 2.0 
License, the GitHub repository says that it uses a GPL 2.0/LGPL 2.1/MPL 1.1 
tri-license:

https://github.com/dr-leo/PyHyphen/blob/master/LICENSE.txt

To what extent would it be feasible to integrate PyHyphen's enhancements into 
the core `textwrap` module? It is my understanding that the `textwrap` itself 
began life as a third-party module, which would suggest that such integrations 
are somewhat precedented.

I'm not experienced enough to know how to do a pull request myself, and I don't 
understand the legal details well enough to know if PyHyphen is 
license-compatible with CPython.

--
messages: 399819
nosy: elsiehupp
priority: normal
severity: normal
status: open
title: Integrate PyHyphen into the textwrap module?
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue44925] [docs] Confusing deprecation notice for typing.IO

2021-08-17 Thread Jesse Rittner


Jesse Rittner  added the comment:

@kj I'm not sure if I'll have the time, but for reference, is this what the PR 
would be raised against? 
https://raw.githubusercontent.com/python/cpython/main/Doc/library/typing.rst

--

___
Python tracker 

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



[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

I'm new to this system, if I'm understanding 
https://devguide.python.org/triaging/#nosy-list then it looks like the people 
listed for `tkinter` should be added to the Nosy List?

--
nosy: +gpolo, serhiy.storchaka

___
Python tracker 

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



[issue44942] Add number pad enter bind to TK's simpleDialog

2021-08-17 Thread Ryan Mast (nightlark)


New submission from Ryan Mast (nightlark) :

Tk the number pad enter and main enter keys separately. The number pad enter 
button should be bound to `self.ok` in simpleDialog's `Dialog` class so that 
both enter buttons have the same behavior.

A PR for this change has been submitted on GitHub by Electro707.

--
components: Tkinter
messages: 399816
nosy: rmast
priority: normal
pull_requests: 26272
severity: normal
status: open
title: Add number pad enter bind to TK's simpleDialog
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



[issue33140] shutil.chown should not be defined in Windows

2021-08-17 Thread Eryk Sun


Eryk Sun  added the comment:

> creating a Windows `os.set_owner` function that uses the 
> appropriate Windows API calls to change owner/group settings,
> and then using that for Windows in the `shutil.chown` function?

I'd gladly help with implementing os.set_owner(), as a separate issue. But I've 
changed my mind about supporting more POSIX functions in Windows. I'd prefer to 
see more Windows-only functionality added, as well as simplified cross-platform 
support that's not based on and biased by POSIX.

--

___
Python tracker 

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



[issue44941] Add check_methods function to standard library

2021-08-17 Thread Finn Mason


New submission from Finn Mason :

In _collections_abc.py is a private function titled `_check_methods`. It takes 
a class and a number of method names (as strings), checks if the class has all 
of the methods, and returns NotImplemented if any are missing. The code is 
below:

```
def _check_methods(C, *methods):
mro = C.__mro__
for method in methods:
for B in mro:
if method in B.__dict__:
if B.__dict__[method] is None:
return NotImplemented
break
else:
return NotImplemented
return True
```

This is an incredibly convenient function (referred to as check_methods here on 
out) for creating abstract base classes, and is much simpler than using 
`hasattr` for each method you want to check. For example:

```
>>> from abc import ABCMeta
>>> # Without check_methods
>>> class A(metaclass=ABCMeta):
... @classmethod
... def __subclasshook__(cls, subclass):
... return (hasattr(subclass, 'foo') and
... callable(subclass.foo) and
... hasattr(subclass, 'bar') and
... callable(subclass.bar) or
... NotImplemented)
...
>>> # With check_methods
>>> class B(metaclass=ABCMeta):
... @classmethod
... def __subclasshook(cls, subclass):
... return check_methods(subclass, 'foo', 'bar')
...
>>>
```

This would be a great function to add to the standard lib, perhaps in the `abc` 
module.

One problem with `check_methods` as defined in _collections_abc.py is that it 
doesn't check if the name is callable. Also, type hints and more readable 
variables may be desirable. The final code, if implemented, may look something 
like this:

```
# In imports section: from typing import Literal
def check_methods(Class: type, *methods: str) -> Literal[True, NotImplemented]:
"""Check if class `Class` has methods `methods`."""
mro = Class.__mro__
for method in methods:
for Base in mro:
if (attr := getattr(Base, method, None)) is not None:
if not callable(attr):
return NotImplemented
break
else:
return NotImplemented
return True
```

Again, this would be a great function to add to the `abc` module or a similar 
one.

--
components: Library (Lib)
messages: 399814
nosy: finnjavier08
priority: normal
severity: normal
status: open
title: Add check_methods function to standard library
type: enhancement

___
Python tracker 

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



[issue24905] Allow incremental I/O to blobs in sqlite3

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

It looks like this has a PR that just needs rebasing, then it will be ready for 
another review.

--
nosy: +rmast

___
Python tracker 

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



[issue28646] Using a read-only buffer.

2021-08-17 Thread jakirkham


Change by jakirkham :


--
nosy: +jakirkham

___
Python tracker 

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



[issue33140] shutil.chown should not be defined in Windows

2021-08-17 Thread Ryan Mast (nightlark)


Ryan Mast (nightlark)  added the comment:

If this function were to be implemented on Windows would the preferred  
approach be the one described in the initial message for this issue of creating 
a Windows `os.set_owner` function that uses the appropriate Windows API calls 
to change owner/group settings, and then using that for Windows in the 
`shutil.chown` function?

--
nosy: +rmast

___
Python tracker 

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



[issue39039] zlib.error with tarfile.open

2021-08-17 Thread Jack DeVries


Jack DeVries  added the comment:

@jvoisin I am able to reproduce the problem when I download your script, but I 
am having a hard time reproducing it by passing corrupt archives to 
`tarfile.open`. How exactly was this file corrupted? I am trying to figure out 
if there are any similar implementation leaks / poor error messages in similar 
scenarios so I can do my best to patch them all.

You can see the reproduction scripts I am using here to get a better idea of 
what I have been trying. Be forewarned, they are pretty gnarly!

https://gist.github.com/jdevries3133/acbb5ba2a19093d3bcc214733ef85e5a

--

___
Python tracker 

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



[issue30924] RPM build doc_files needs files separated into separate lines

2021-08-17 Thread Ryan Mast


Ryan Mast  added the comment:

Should this be closed? It looks like the PR is only changing a file in 
distutils, and according to https://bugs.python.org/issue30925#msg386350 
distutils is deprecated and only release blocking issues will be considered.

--
nosy: +rmast

___
Python tracker 

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



[issue44899] tarfile: add support for creating an archive of potentially changing files

2021-08-17 Thread Ethan Furman


Change by Ethan Furman :


--
nosy: +ethan.furman
versions: +Python 3.11 -Python 3.7

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 03dd89d62413c4a92831ed1b36e2ae8983bcb2d4 by achraf-mer in branch 
'3.8':
[3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated 
(GH-25099) (GH-27801)
https://github.com/python/cpython/commit/03dd89d62413c4a92831ed1b36e2ae8983bcb2d4


--

___
Python tracker 

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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution:  -> fixed
stage: patch review -> commit review
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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks for reporting, Mark, and for the patch, meowmeowcat! ✨  ✨

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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e2320c6a34d44a0efa7ecc693c3a6215014b7b6e by Miss Islington (bot) 
in branch '3.9':
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688) 
(GH-27805)
https://github.com/python/cpython/commit/e2320c6a34d44a0efa7ecc693c3a6215014b7b6e


--

___
Python tracker 

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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington


miss-islington  added the comment:


New changeset bbb10761b64095425f7f8dcb3bc1f0d8bdee528a by Miss Islington (bot) 
in branch '3.10':
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
https://github.com/python/cpython/commit/bbb10761b64095425f7f8dcb3bc1f0d8bdee528a


--

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Christian Heimes


Christian Heimes  added the comment:

The CVE was rated 
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H=3.1,
 which is equivalent to a RCE with authentication bypass.

I would rate the issue 
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N=3.1,
 maybe A:L.

--

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Christian Heimes


Christian Heimes  added the comment:

"CRITICAL" is a ridiculous high assessment for this bug. Somebody ticked all 
the scary boxes in the CVSS form like "total loss of control".

--

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:

I was unaware of the "CRITICAL" base score assigned by NIST to this. Alright, 
let's port this back then. There are a few things the PR will need.

--

___
Python tracker 

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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +26270
pull_request: https://github.com/python/cpython/pull/27804

___
Python tracker 

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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 3240bc62f4e0afa09964f3afc845697f0a0806b9 by meowmeowmeowcat in 
branch 'main':
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
https://github.com/python/cpython/commit/3240bc62f4e0afa09964f3afc845697f0a0806b9


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44508] asyncio: document failure mode for loop.call_soon_threadsafe

2021-08-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26271
pull_request: https://github.com/python/cpython/pull/27805

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Achraf Merzouki


Achraf Merzouki  added the comment:

>> it prevents using 3.8 because of this open vulnerability

>What do you mean by this?

>Our understanding is that this is a low-severity CVE because in order for this 
>to be a vulnerability, you'd have to have both:

>1. user access to IP address input; and
>2. control over two addresses sharing numerical representation with leading 
>zeroes: the first resolving when leading zeroes are treated as octal numbers; 
>the second resolving when leading zeroes are treated as decimal numbers.

>Access to both then allows you at best to circumvent IP address-based access 
>control or denial of service. However, access to just 1. allows you to input 
>any IP address to achieve the same goals.

>Hence low-severity.

Even though I agree with you assessment on the root cause of the issue itself, 
it is listed as critical in https://nvd.nist.gov/vuln/detail/CVE-2021-29921, 
which means most commercial scan tools will also flag python 3.8 as critical, 
and this could prevent users from going with python 3.8 on production. (our 
case too)

>> it does not seem to be a breaking change

>It is a bona fide breaking change. Any IP address configuration saved in files 
>or databases which might have used leading zeroes would be rejected by 3.8.12. 
>The same was true for 3.9.5 but since this release series has much higher 
>exposure (still receiving binary installers and regular-cadence bugfixes), it 
>was less controversial to include it.


>If you still feel this ought to be fixed in 3.8, please elaborate.

IMHO I still think this should be solved in 3.8, otherwise there is really no 
other alternative but to upgrade to python 3.9 which is a hassle, since all 
3.8.x are "critically vulnerable", had the CVE in 
https://nvd.nist.gov/vuln/detail/CVE-2021-29921 not been marked as critical, 
then we could have used python 3.8 knowing the two conditions you mentioned 
earlier.

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

There is some timing-related race condition at hand because I tried in a Linux 
machine and a MacBook Pro (intel) laptop and I wasn't able to reproduce after 
20 min of the script running :(

--

___
Python tracker 

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



[issue44940] Hint the use of non-capturing group in re.findall() documentation

2021-08-17 Thread Rondevous


New submission from Rondevous :

Can it please be hinted in the docs of re.findall to use (?:...) for 
non-capturing groups?

>>> re.findall('(foo)?bar|cool', 'cool')
['']
>>>
### I expected the result: ['cool']

After hours of frustration, I learnt that I should use a non-capturing group 
(?:foo) in the pattern. This was not obvious.


P.S. Making the groups non-capturing in such a pattern is not needed in 
javascript (as tested on regexr.com); could this be an issue with the | 
operator in re.findall?

--
assignee: docs@python
components: Documentation
messages: 399799
nosy: docs@python, rondevous
priority: normal
severity: normal
status: open
title: Hint the use of non-capturing group in re.findall() documentation
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Łukasz Langa

Łukasz Langa  added the comment:

> it prevents using 3.8 because of this open vulnerability

What do you mean by this?

Our understanding is that this is a low-severity CVE because in order for this 
to be a vulnerability, you'd have to have both:

1. user access to IP address input; and
2. control over two addresses sharing numerical representation with leading 
zeroes: the first resolving when leading zeroes are treated as octal numbers; 
the second resolving when leading zeroes are treated as decimal numbers.

Access to both then allows you at best to circumvent IP address-based access 
control or denial of service. However, access to just 1. allows you to input 
any IP address to achieve the same goals.

Hence low-severity.


> it does not seem to be a breaking change

It is a bona fide breaking change. Any IP address configuration saved in files 
or databases which might have used leading zeroes would be rejected by 3.8.12. 
The same was true for 3.9.5 but since this release series has much higher 
exposure (still receiving binary installers and regular-cadence bugfixes), it 
was less controversial to include it.


If you still feel this ought to be fixed in 3.8, please elaborate.

--

___
Python tracker 

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



[issue44921] dict subclassing is slow

2021-08-17 Thread Kevin Shweh


Kevin Shweh  added the comment:

Of course it's reasonable to support dict subclasses. We already have a bunch 
of dict subclasses in the standard library, like collections.defaultdict and 
collections.Counter, and collections.Counter is significantly slower than it 
could be because of this issue. (collections.defaultdict seems to be unaffected 
due to differences between classes implemented in C and Python.) 
dict.__getitem__ even has dedicated support for a __missing__ hook, which is 
only useful for subclasses.

--
nosy: +Kevin Shweh

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

> Could you outline how are you reproducing the leaks?

Sorry I missed this. Just run the script:


iritkatriel@Irits-MBP cpython-1 % ./python.exe refleak.py
-- 1 --
beginning 6 repetitions
123456
..
-- 2 --
beginning 6 repetitions
123456
..
-- 3 --
beginning 6 repetitions
123456
..
test leaked [2, 4, 2] references, sum=8
test leaked [2, 4, 2] memory blocks, sum=8

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

I'm using a mac. It typically fails within at most 10-20 iterations.

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Mark Shannon


Mark Shannon  added the comment:

refleak.py seems to run forever for me. Got bored after 6000 iterations.

Which O/S and configure options are needed for refleak.py to fail?

--

___
Python tracker 

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



[issue42448] re.findall have different match result against re.search or re.sub

2021-08-17 Thread Rondevous


Rondevous  added the comment:

I was frustrated for hours when I couldn't figure out why this won't match:

>>> re.findall(r'(foo)?bar|cool', 'cool')

Now I know, I have to make this change: (?:foo)
But this isn't obvious.
Should it be mentioned in the docs of re.findall() to use (?:...) for 
non-capturing groups?

--
nosy: +rondevous

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

This doesn't leak:

try:
raise B()
except B:
tb = sys.exc_info()[1].__traceback__

So this isn't about the traceback being part of the cycle. The B() needs to be 
there too.

--

___
Python tracker 

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



[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla


Marco Sulla  added the comment:

 I not finished my phrase. I'm sure that if there's a way to turn lemons 
into lemonade, she is **MUCH** more skilled than me to find one.

--

___
Python tracker 

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



[issue44921] dict subclassing is slow

2021-08-17 Thread Marco Sulla


Marco Sulla  added the comment:

Since my knowledge of this is very poor, I informed Monica about the issue. I'm 
quite sure that if there's a way to turn lemons into lemonade :)

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> But this makes it not leak again, so now we know it's the traceback:

The traceback is a very heavy gc object because it contains the frames, and in 
the locals of the frame is the traceback itself via the exception. This is a 
well known heavy cycle, but the gc should take care of it if the cycle becomes 
isolated

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I am still amazed that I cannot reproduce the leaks on my machine. Maybe I am 
missing some steps.

Could you outline how are you reproducing the leaks?

--

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 17.0 -> 18.0
pull_requests: +26269
pull_request: https://github.com/python/cpython/pull/27801

___
Python tracker 

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



[issue44939] proposal: add support for regex in Literal type hint

2021-08-17 Thread Leon Mintz


New submission from Leon Mintz :

Could typing.Literal (or analogous) accept a regex pattern to match against?

For example, if I want a duration string,

duration: str  # allowed syntax: 3s, 3m, 3h etc.

vs

duration: LiteralPattern['[0-9]+[smh]']

--
messages: 399787
nosy: leon.mintz
priority: normal
severity: normal
status: open
title: proposal: add support for regex in Literal type hint

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

But this makes it not leak again, so now we know it's the traceback:

try:
raise B()
except B:
b = sys.exc_info()[1]
b.__traceback__ = None

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

It's probably not that because this leaks too, and it skips the cleanup:

try:
raise B()
except B:
b = sys.exc_info()[1]

--

___
Python tracker 

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



[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-08-17 Thread Achraf Merzouki


Achraf Merzouki  added the comment:

Can we backport the security fix from this issue 
https://bugs.python.org/issue36384#msg392684 to version 3.8
The comment explicitly says that it was decided to not include in 3.8, I am not 
sure this is best, since it prevents using 3.8 because of this open 
vulnerability, and it does not seem to be a breaking change or too hard to port.

--
components:  -Documentation
nosy: +achraf.merzouki
versions: +Python 3.8 -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



[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2021-08-17 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

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



[issue44932] `issubclass` and `isinstance` doesn't check for all 2nd argument types

2021-08-17 Thread Guido van Rossum


Guido van Rossum  added the comment:

Agreed. Thanks, Serhiy.

--

___
Python tracker 

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



[issue42560] Improve Tkinter Documentation

2021-08-17 Thread E. Paine


E. Paine  added the comment:

> In particular, you added OS-specific info

I also deemed this very useful information. The issue is that it is not 
documented in the man pages and so those values are pulled straight from the 
source code. We would need to decide whether we keep such information in our 
docs, which is subject to change without warning.

> Did you exactly copy the tk manual wordings or rewrite in your own words?

All of the text was originally copied from the man pages. I have done a 
reasonable amount of rewording, reformatting and elaborating.

> Do you intend to contribute what you wrote?

If we conclude a complete doc is the way to go, I would finish documenting the 
canvas widget, make relevant reformatting changes (such as moving common widget 
options) and then open a PR.

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Guido van Rossum


Guido van Rossum  added the comment:

So there's code generated for an except clause with a variable that clears the 
variable at the end, so that this works:

try:
  ...
except Exception as err:
  ...
print(err)  # Should fail, since err was cleared when the except clause exited.

Maybe there's a bug here, either in the runtime or in the way that the code is 
generated?

--
nosy: +gvanrossum

___
Python tracker 

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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington


miss-islington  added the comment:


New changeset 826e059bb9b42e17bef2186938a2bd3f33610e69 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-44935: enable posix_spawn() on Solaris (GH-27795) (GH-27800)
https://github.com/python/cpython/commit/826e059bb9b42e17bef2186938a2bd3f33610e69


--

___
Python tracker 

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



[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson


Mark Dickinson  added the comment:

Re-closing; we should be good now.

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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +26268
pull_request: https://github.com/python/cpython/pull/27800

___
Python tracker 

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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset b1930bf75f276cd7ca08c4455298128d89adf7d1 by Jakub Kulík in branch 
'main':
bpo-44935: enable posix_spawn() on Solaris (GH-27795)
https://github.com/python/cpython/commit/b1930bf75f276cd7ca08c4455298128d89adf7d1


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-08-17 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Currently, exception chaining in the C-API must be done by hand. This is a 
painstaking process that involves several steps and is very easy to do 
incorrectly.

We currently have a private function: _PyErr_ChainExceptions that does this 
job. Given that exception chaining is a very fundamental operation, this 
functionality must be exposed in the stable C-API

--
messages: 399777
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Expose PyErr_ChainExceptions in the stable API

___
Python tracker 

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



[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset beb3a835dae3cd940b93e7caa32450890c4cd539 by Miss Islington (bot) 
in branch '3.9':
bpo-44698: Restore complex pow behaviour for small integral exponents 
(GH-27772) (GH-27797)
https://github.com/python/cpython/commit/beb3a835dae3cd940b93e7caa32450890c4cd539


--

___
Python tracker 

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



[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 3f81e9628f6f104c103d0e38adb84c51e5261626 by Miss Islington (bot) 
in branch '3.10':
bpo-44698: Restore complex pow behaviour for small integral exponents 
(GH-27772) (GH-27796)
https://github.com/python/cpython/commit/3f81e9628f6f104c103d0e38adb84c51e5261626


--

___
Python tracker 

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



[issue44926] typing.get_type_hints() raises for type aliases with forward references

2021-08-17 Thread Guido van Rossum


Guido van Rossum  added the comment:

Maximilian, I think your last analysis is spot on. The problem is specific to 
type aliases and how at runtime they do not carry information about scope with 
them. The current type alias syntax (both the original form and the form using 
"x: TypeAlias = ...") was designed for static analysis only.

I suppose we could fix cases like

A = List["Foo"]

but we can't fix for example

A: TypeAlias = "Foo"

since at runtime this just ends up creating a variable A whose value is the 
string "Foo", and if you import and use that in another module, all you have is 
the value "Foo".

I think we have to accept this as a limitation of type aliases when combined 
with runtime access to types (it's not just get_type_hints(), but any mechanism 
that introspects types at runtime).

I'm reluctant to fix the List["Foo"] case, if only because that case is being 
phased out in favor of list["Foo"] anyway, and because it depends on 
typing.List being special -- we can't do the same kind of fixup for 
user-defined classes (e.g. C["Foo"]).

--

___
Python tracker 

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



[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


STINNER Victor  added the comment:

The machine was busy when test_concurrent_futures: system load of 5.59.

2021-08-16T17:14:01.3805500Z 0:01:58 load avg: 5.59 [ 93/428/1] 
test_concurrent_futures failed (2 failures) (1 min 49 sec) -- running: 
test_regrtest (39.2 sec)

--

___
Python tracker 

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



[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


STINNER Victor  added the comment:

In another commit of the same PR 27774, I don't even see test_regrtest in the 
list of the "10 slowest tests", so test_regrtest took less than "test_socket: 
46.4 sec".

If test_regrtest is killed after 20 minutes, it's likely that it was stuck 
somewhere.

test_tools_script_run_tests() runs Tools/scripts/run_tests.py with command line 
arguments.

In the past, I see many issues with PermissionError: something prevents to 
delete a directory on Windows. I never understood what.

regrtest creates a temporary directory, run a process in this directory, and 
then removes the directory. Here, something is stuck.

--

___
Python tracker 

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



[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +erlendaasland, lukasz.langa, pablogsal

___
Python tracker 

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



[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


STINNER Victor  added the comment:

> AssertionError: Process return code is 3221225477
> (...)
> AssertionError: Process return code is 3221225477

This is STATUS_ACCESS_VIOLATION: the process crashed, not good :-(

Moreover, even if the process was run with -X faulthandler, stderr is empty :-(

--

___
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

2021-08-17 Thread STINNER Victor


STINNER Victor  added the comment:

Recent failure on GHA Windows x64:

https://github.com/python/cpython/runs/3342514542

2021-08-16T17:19:58.4338049Z 
==
2021-08-16T17:19:58.4339129Z FAIL: 
test_sendfile_close_peer_in_the_middle_of_receiving 
(test.test_asyncio.test_sendfile.ProactorEventLoopTests)
2021-08-16T17:19:58.4340315Z 
--
2021-08-16T17:19:58.4340937Z Traceback (most recent call last):
2021-08-16T17:19:58.4341846Z   File 
"D:\a\cpython\cpython\lib\test\test_asyncio\test_sendfile.py", line 457, in 
test_sendfile_close_peer_in_the_middle_of_receiving
2021-08-16T17:19:58.4342849Z with self.assertRaises(ConnectionError):
2021-08-16T17:19:58.4343398Z 
2021-08-16T17:19:58.4343982Z AssertionError: ConnectionError not raised

--

___
Python tracker 

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



[issue44937] test_regrest: test_tools_script_run_tests() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor

New submission from STINNER Victor :

GitHub Action Windows x64 CI:
https://github.com/python/cpython/runs/3342514542

First, test_regrtest was killed after 20 minutes, while it was running 
test_tools_script_run_tests(). Then, re-running test_regrtest in verbose mode 
failed with a PermissionError.

2021-08-16T17:33:22.5453810Z 0:21:19 load avg: 0.02 [428/428/3] test_regrtest 
crashed (Exit code 1)
2021-08-16T17:33:22.5454836Z Timeout (0:20:00)!
2021-08-16T17:33:22.5456120Z Thread 0x0d2c (most recent call first):
2021-08-16T17:33:22.5457237Z   File "D:\a\cpython\cpython\lib\subprocess.py", 
line 1493 in _readerthread
2021-08-16T17:33:22.5459078Z   File "D:\a\cpython\cpython\lib\threading.py", 
line 946 in run
2021-08-16T17:33:22.5460342Z   File "D:\a\cpython\cpython\lib\threading.py", 
line 1009 in _bootstrap_inner
2021-08-16T17:33:22.5461365Z   File "D:\a\cpython\cpython\lib\threading.py", 
line 966 in _bootstrap
2021-08-16T17:33:22.5461983Z 
2021-08-16T17:33:22.5462583Z Thread 0x02e8 (most recent call first):
2021-08-16T17:33:22.5464628Z   File "D:\a\cpython\cpython\lib\threading.py", 
line 1099 in _wait_for_tstate_lock
2021-08-16T17:33:22.5466364Z   File "D:\a\cpython\cpython\lib\threading.py", 
line 1083 in join
2021-08-16T17:33:22.5468053Z   File "D:\a\cpython\cpython\lib\subprocess.py", 
line 1522 in _communicate
2021-08-16T17:33:22.5469685Z   File "D:\a\cpython\cpython\lib\subprocess.py", 
line 1148 in communicate
2021-08-16T17:33:22.5471344Z   File "D:\a\cpython\cpython\lib\subprocess.py", 
line 503 in run
2021-08-16T17:33:22.5473016Z   File 
"D:\a\cpython\cpython\lib\test\test_regrtest.py", line 521 in run_command
2021-08-16T17:33:22.5474852Z   File 
"D:\a\cpython\cpython\lib\test\test_regrtest.py", line 546 in run_python
2021-08-16T17:33:22.5476717Z   File 
"D:\a\cpython\cpython\lib\test\test_regrtest.py", line 600 in run_tests
2021-08-16T17:33:22.5478416Z   File 
"D:\a\cpython\cpython\lib\test\test_regrtest.py", line 647 in 
test_tools_script_run_tests
2021-08-16T17:33:22.5480110Z   File 
"D:\a\cpython\cpython\lib\unittest\case.py", line 549 in _callTestMethod
2021-08-16T17:33:22.5481748Z   File 
"D:\a\cpython\cpython\lib\unittest\case.py", line 592 in run
2021-08-16T17:33:22.5483362Z   File 
"D:\a\cpython\cpython\lib\unittest\case.py", line 652 in __call__
2021-08-16T17:33:22.5484975Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-08-16T17:33:22.5486506Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-08-16T17:33:22.5488012Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-08-16T17:33:22.5489316Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-08-16T17:33:22.5490786Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-08-16T17:33:22.5492556Z   File 
"D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-08-16T17:33:22.5494071Z   File 
"D:\a\cpython\cpython\lib\unittest\runner.py", line 176 in run
2021-08-16T17:33:22.5495666Z   File 
"D:\a\cpython\cpython\lib\test\support\__init__.py", line 997 in _run_suite
2021-08-16T17:33:22.5496563Z test_curses test_dbm_gnu test_dbm_ndbm 
test_devpoll test_epoll
2021-08-16T17:33:22.5497530Z   File 
"D:\a\cpython\cpython\lib\test\support\__init__.py", line 1122 in run_unittest
2021-08-16T17:33:22.5498484Z test_fcntl test_fork1 test_gdb test_grp 
test_ioctl test_kqueue
2021-08-16T17:33:22.5499441Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 261 in _test_module
2021-08-16T17:33:22.5500545Z test_multiprocessing_fork 
test_multiprocessing_forkserver test_nis
2021-08-16T17:33:22.5501639Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 297 in 
_runtest_inner2
2021-08-16T17:33:22.5502797Z test_openpty test_ossaudiodev test_pipes 
test_poll test_posix
2021-08-16T17:33:22.5503867Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 335 in 
_runtest_inner
2021-08-16T17:33:22.5504886Z test_pty test_pwd test_readline test_resource 
test_spwd
2021-08-16T17:33:22.5505946Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 202 in _runtest
2021-08-16T17:33:22.5506925Z test_syslog test_threadsignals test_wait3 
test_wait4
2021-08-16T17:33:22.5507892Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 245 in runtest
2021-08-16T17:33:22.5508801Z test_xxtestfuzz test_zipfile64
2021-08-16T17:33:22.5509740Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\runtest_mp.py", line 83 in 
run_tests_worker
2021-08-16T17:33:22.5511140Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 675 in _main
2021-08-16T17:33:22.5512662Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 655 in main
2021-08-16T17:33:22.5513586Z test_asyncio test_concurrent_futures 
test_regrtest
2021-08-16T17:33:22.5514516Z   File 
"D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 733 

[issue44936] test_concurrent_futures: test_cancel_futures_wait_false() and test_interpreter_shutdown() failed on GHA Windows x64

2021-08-17 Thread STINNER Victor


New submission from STINNER Victor :

GitHub Action Windows x64:
https://github.com/python/cpython/runs/3342514542

test_concurrent_futures failed when tests are run in parallel, but then passed 
then re-run in verbose mode.

==
FAIL: test_cancel_futures_wait_false 
(test.test_concurrent_futures.ThreadPoolShutdownTest)
--
Traceback (most recent call last):
  File "D:\a\cpython\cpython\lib\test\test_concurrent_futures.py", line 486, in 
test_cancel_futures_wait_false
rc, out, err = assert_python_ok('-c', """if True:
   ^^
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 160, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
   ^^^
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 145, in 
_assert_python
res.fail(cmd_line)
^^
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 72, in 
fail
raise AssertionError("Process return code is %d\n"
^^
AssertionError: Process return code is 3221225477
command line: ['D:\\a\\cpython\\cpython\\PCbuild\\amd64\\python.exe', '-X', 
'faulthandler', '-I', '-c', 'if True:\nfrom concurrent.futures 
import ThreadPoolExecutor\nfrom test.test_concurrent_futures import 
sleep_and_print\nif __name__ == "__main__":\nt = 
ThreadPoolExecutor()\nt.submit(sleep_and_print, .1, "apple")\n  
  t.shutdown(wait=False, cancel_futures=True)\n']

stdout:
---
apple
---

stderr:
---

---

==
FAIL: test_interpreter_shutdown 
(test.test_concurrent_futures.ThreadPoolShutdownTest)
0:01:59 load avg: 5.63 [100/428/1] test_lltrace passed -- running: 
test_regrtest (40.5 sec)
--
Traceback (most recent call last):
  File "D:\a\cpython\cpython\lib\test\test_concurrent_futures.py", line 307, in 
test_interpreter_shutdown
rc, out, err = assert_python_ok('-c', """if 1:
   ^^^
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 160, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
0:01:59 load avg: 5.63 [101/428/1] test_ucn passed -- running: test_regrtest 
(40.5 sec)
   ^^^
fetching http://www.pythontest.net/unicode/13.0.0/NamedSequences.txt ...
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 145, in 
_assert_python
res.fail(cmd_line)
^^
  File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 72, in 
fail
raise AssertionError("Process return code is %d\n"
^^
AssertionError: Process return code is 3221225477
command line: ['D:\\a\\cpython\\cpython\\PCbuild\\amd64\\python.exe', '-X', 
'faulthandler', '-I', '-c', 'if 1:\nfrom concurrent.futures import 
ThreadPoolExecutor\nfrom time import sleep\nfrom 
test.test_concurrent_futures import sleep_and_print\nif __name__ == 
"__main__":\ncontext = \'\'\nif context == 
"":\nt = ThreadPoolExecutor(5)\nelse:\n 
   from multiprocessing import get_context\n
context = get_context(context)\nt = ThreadPoolExecutor(5, 
mp_context=context)\nt.submit(sleep_and_print, 1.0, "apple")\n  
  ']

stdout:
---
apple
---

stderr:
---

---

--

Ran 226 tests in 109.440s

FAILED (failures=2, skipped=111)
test test_concurrent_futures failed
(...)
0:21:19 load avg: 0.02 Re-running test_concurrent_futures in verbose mode 
(matching: test_cancel_futures_wait_false, test_interpreter_shutdown)

test_interpreter_shutdown 
(test.test_concurrent_futures.ProcessPoolForkProcessPoolShutdownTest) ... 
skipped 'require unix system'
test_interpreter_shutdown 
(test.test_concurrent_futures.ProcessPoolForkserverProcessPoolShutdownTest) ... 
skipped 'require unix system'
test_interpreter_shutdown 
(test.test_concurrent_futures.ProcessPoolSpawnProcessPoolShutdownTest) ... 
1.33s ok
test_cancel_futures_wait_false 
(test.test_concurrent_futures.ThreadPoolShutdownTest) ... 0.27s ok
test_interpreter_shutdown (test.test_concurrent_futures.ThreadPoolShutdownTest) 
... 1.14s ok

--

Ran 5 tests in 2.756s

OK (skipped=2)

--
components: Tests
messages: 399768
nosy: lukasz.langa, pablogsal, vstinner
priority: normal
severity: 

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26265
pull_request: https://github.com/python/cpython/pull/27796

___
Python tracker 

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



[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26266
pull_request: https://github.com/python/cpython/pull/27797

___
Python tracker 

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



[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-17 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699 by Mark Dickinson in 
branch 'main':
bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772)
https://github.com/python/cpython/commit/4b9a2dcf19e5d13c3bc2afea2de1f65cd994c699


--

___
Python tracker 

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



[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions: +Python 3.11 -Python 3.10

___
Python tracker 

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



[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-08-17 Thread Dong-hee Na


Dong-hee Na  added the comment:

Let's deprecate it from 3.11 and remove it at 3.12 :)

--
nosy: +corona10

___
Python tracker 

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



[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2021-08-17 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Mark Roseman

Mark Roseman  added the comment:

Łukasz, I've got a bunch of individual branches for each of those sections. 
What I posted the link to was a merge of all of them just for overview 
purposes, but the PR's will be created from the individual branches. I can 
start creating those now or wait a bit, whatever is easiest workflow-wise.

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

I'm pretty sure the frame locals is involved. 

This leaks (not a is being re-raised, not b):

-
def test_no_hang_on_context_chain_cycle2():
class A(Exception): pass
class B(Exception): pass

try:
try:
raise A()
except A as _a:
a = _a
try:
raise B() 
except B as _b:
b = _b
raise a 
except A: 
pass
-

But this doesn't leak:

-
def test_no_hang_on_context_chain_cycle2():
class A(Exception): pass
class B(Exception): pass

try:
try:
raise A()
except A as _a:
a = _a
try:
raise B() 
except B as _b:
pass # b = _b  <== not saving b in a local
raise a 
except A: 
pass
-

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Change by Irit Katriel :


--
Removed message: https://bugs.python.org/msg399763

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

I'm pretty sure the frame locals is involved. 

This leaks (note that a is being re-raised, not b):

-
def test_no_hang_on_context_chain_cycle2():
class A(Exception): pass
class B(Exception): pass

try:
try:
raise A()
except A as _a:
a = _a
try:
raise B() 
except B as _b:
b = _b
raise a 
except A: 
pass
-

But this doesn't leak:

-
def test_no_hang_on_context_chain_cycle2():
class A(Exception): pass
class B(Exception): pass

try:
try:
raise A()
except A as _a:
a = _a
try:
raise B() 
except B as _b:
pass # b = _b  <== not saving b in a local
raise a 
except A: 
pass
-

--

___
Python tracker 

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



[issue44895] refleak test failure in test_exceptions

2021-08-17 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset c2c857b40f226575d64e0d56a759cbd799f51e62 by Dong-hee Na in branch 
'main':
bpo-44895: Introduce PYTHONDUMPREFSFILE variable for refcount dumping (GH-27767)
https://github.com/python/cpython/commit/c2c857b40f226575d64e0d56a759cbd799f51e62


--

___
Python tracker 

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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin


Change by Petr Viktorin :


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



[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Ken Jin


Ken Jin  added the comment:

Some improvements can be made (see 
https://github.com/python/cpython/pull/27722#issuecomment-900369714), but for 
the most part we're done.

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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread hai shi


hai shi  added the comment:

> Now, I wonder if we should also introduce PyType_GetModuleName for 
> __module__, or stop and close this as fixed.

IMO, I suggest to close this bpo. We can get the `tp_name` by the C API now. If 
there have user want get `__module__`, we can open a new bpo to discuss :)

--

___
Python tracker 

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



[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 96346cb6d0593ef9ec122614347ccb053cd63433 by Ken Jin in branch 
'main':
bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter (GH-27722)
https://github.com/python/cpython/commit/96346cb6d0593ef9ec122614347ccb053cd63433


--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue44934] Windows installer: Append Python to PATH instead of prepending it

2021-08-17 Thread Steve Dower


Steve Dower  added the comment:

Prepending is used because it makes the most recently installed version of 
Python the "active" one. It also ensures that a deliberate install is going to 
override any applications that may have put their own copy on PATH 
(deliberately or otherwise). There's no real mechanism for managing multiple 
Python entries on PATH, so it just works out better to prepend and let the 
latest install win.

However, we also disable this option by default because it can lead to 
confusion like what you've experienced. The best option here is to leave it 
disabled and update PATH yourself (or use "py.exe" which is always on PATH), 
since you've got the best awareness of your environment.

--

___
Python tracker 

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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin


Petr Viktorin  added the comment:

Now, I wonder if we should also introduce PyType_GetModuleName for __module__, 
or stop and close this as fixed.

--

___
Python tracker 

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



[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

Link to python-dev thread: 

https://mail.python.org/archives/list/python-...@python.org/message/LWP6MOLP5UW2TH3MROZQK4N64SX35N2B/

--

___
Python tracker 

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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23 by Hai Shi in branch 
'main':
bpo-42035: Enhance test_get_type_name() of _testcapi (GH-27649)
https://github.com/python/cpython/commit/fcd651d16fc5ac3d07dd3f57f1001a861a2e7d23


--

___
Python tracker 

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



[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-17 Thread Irit Katriel


Irit Katriel  added the comment:

Following discussion on python-dev I added a compile-time deprecation warning.

With this, and after reverting PR27683 I get the warning below. The build 
succeeds and the tests pass.


% make -s -j2
Objects/frameobject.c:622:5: warning: 'UsingDeprecatedTrashcanMacro' is 
deprecated [-Wdeprecated-declarations]
Py_TRASHCAN_SAFE_BEGIN(f)
^
./Include/cpython/object.h:545:9: note: expanded from macro 
'Py_TRASHCAN_SAFE_BEGIN'
UsingDeprecatedTrashcanMacro cond=1; \
^
./Include/cpython/object.h:542:1: note: 'UsingDeprecatedTrashcanMacro' has been 
explicitly marked deprecated here
Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;
^
./Include/pyport.h:509:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
 ^

--

___
Python tracker 

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



[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi


hai shi  added the comment:

> (Note that the "def->m_size == -1" means that the module does not support 
> sub-interpreters, because it has global state.

Make Sense. It's more better and exact than my suggestion :)

--

___
Python tracker 

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



[issue26871] Change weird behavior of PyModule_AddObject()

2021-08-17 Thread Petr Viktorin


Petr Viktorin  added the comment:

Since https://github.com/python/cpython/pull/23122, there is 
PyModule_AddObjectRef doesn't steal a reference.
PyModule_AddObject is discouraged in the docs, but not formally deprecated. (As 
Stefan notes, the leaks are single references in case of a module 
initialization failure -- the cost of using the API incorrectly is very small; 
requiring everyone to change their code because it was possible to misuse it is 
overkill.)

See https://docs.python.org/3.10/c-api/module.html#c.PyModule_AddObjectRef

I think this is enough to close the issue.

--
nosy: +petr.viktorin
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



[issue44931] Add "bidimap" to collections library: a simple bidirectional map

2021-08-17 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This has come up several times in the past and never moved forward.  Part of 
the reason is that the mapping API doesn't translate cleanly to bidirectional 
lookups and it leaves users trapped if two keys every end up needing to be 
mapped to the same value (i.e. libre->free and gratis->free). Mostly, folks are 
better-off with two separate dictionaries augmented by a single function to 
create the initial pairing.  Also note that there are several bimaps published 
on PyPi but they have very low uptake.

If you want to pursue this further, I suggest bringing this to python-ideas 
(but first scan the archives for previous discussions and scan github for cases 
where projects have used one of the existing implementations).

--
nosy: +rhettinger
resolution:  -> rejected
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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik


Change by Jakub Kulik :


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

___
Python tracker 

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



[issue42560] Improve Tkinter Documentation

2021-08-17 Thread Richard Sheridan


Change by Richard Sheridan :


--
nosy: +Richard Sheridan

___
Python tracker 

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



[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Jakub Kulik


New submission from Jakub Kulik :

Solaris also provides posix_spawn() syscall that can/should be used in the 
subprocess module to spawn new processes.

--
components: Library (Lib)
messages: 399750
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Solaris: enable posix_spawn in subprocess
versions: Python 3.10, 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



[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-17 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f by Hai Shi in branch 
'main':
bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551)
https://github.com/python/cpython/commit/3e2c643ae0b21f9e596bfd9c8ec99ca546ea8d0f


--

___
Python tracker 

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



[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-17 Thread hai shi


hai shi  added the comment:

> Maybe the old behavior was better: if an extension uses the old API, share 
> its state between all interpreters.

+1. I create PR-27794, which use `def->m_slots` to identify the extension 
module created from `PyModule_Create()` or not. cc @petr

--

___
Python tracker 

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



  1   2   >