[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Dong-hee Na


Dong-hee Na  added the comment:

>Interestingly, this doesn't seem to have a negative effect on correctness as 
>the silently omitted unhashable

I think so too.

The error actually raises when adding the object into the set.
https://github.com/python/cpython/blob/818628c2da99ba0376313971816d472c65c9a9fc/Objects/dictobject.c#L4384

Since the target object to be added is dynamically generated, I think that the 
issue does not need to be fixed.
Otherwise, we have to check that all objects are addable to `set` object before 
executing this operation but it looks harmful to performance.

--

___
Python tracker 

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



[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread miss-islington


miss-islington  added the comment:


New changeset 016af14d93cfba43e7a95721a97fa954c534af8e by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-44589: raise a SyntaxError when mapping patterns have duplicate 
literal keys (GH-27131) (GH-27157)
https://github.com/python/cpython/commit/016af14d93cfba43e7a95721a97fa954c534af8e


--

___
Python tracker 

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



[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


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

___
Python tracker 

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



[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland


New submission from Erlend E. Aasland :

pysqlite_collation_callback() currently uses the variable argument function 
PyObject_CallFunctionObjArgs(). Suggesting micro-optimise this by using 
PyObject_Vectorcall instead.

--
components: Extension Modules
messages: 397521
nosy: erlendaasland
priority: normal
severity: normal
status: open
title: [sqlite3] Use vectorcall in pysqlite_collation_callback
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



[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Jack DeVries


Jack DeVries  added the comment:

I'm not able to reproduce this on my machine; the script runs without any issue.

> the `TestClass` instance is being closed

What do you mean by this statement? You aren't doing anything to TestClass or 
its instance ("test") in this script. They remain in scope, so they will always 
be referenced.

--
nosy: +jack__d

___
Python tracker 

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



[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +25694
pull_request: https://github.com/python/cpython/pull/27157

___
Python tracker 

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



[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Brandt Bucher


Brandt Bucher  added the comment:


New changeset 2693132292b2acf381ac6fa729bf3acf41d9d72b by Jack DeVries in 
branch 'main':
bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal 
keys (GH-27131)
https://github.com/python/cpython/commit/2693132292b2acf381ac6fa729bf3acf41d9d72b


--

___
Python tracker 

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



[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread miss-islington

miss-islington  added the comment:


New changeset 3b8075f9076490508567f0fb3dc689861544d1a8 by Vinay Sajip in branch 
'main':
bpo-44473: Update docstring and documentation for QueueHandler.prepar… 
(GH-27140)
https://github.com/python/cpython/commit/3b8075f9076490508567f0fb3dc689861544d1a8


--
nosy: +miss-islington

___
Python tracker 

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



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25693
pull_request: https://github.com/python/cpython/pull/27156

___
Python tracker 

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



[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread miss-islington


miss-islington  added the comment:


New changeset ff7af2203c1f03d9300e93e3e06a47fb78cc2bef by Miss Islington (bot) 
in branch '3.10':
bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)
https://github.com/python/cpython/commit/ff7af2203c1f03d9300e93e3e06a47fb78cc2bef


--

___
Python tracker 

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



[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Thanks Mark, that's a good real world experience example from the IPython side.

--

___
Python tracker 

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



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25692
pull_request: https://github.com/python/cpython/pull/27155

___
Python tracker 

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



[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25691
pull_request: https://github.com/python/cpython/pull/27153

___
Python tracker 

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



[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset d59d7374a364c4e5c2b9a83d8e4543ee494285b8 by Shane Harvey in 
branch 'main':
bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)
https://github.com/python/cpython/commit/d59d7374a364c4e5c2b9a83d8e4543ee494285b8


--
nosy: +pablogsal

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

Thanks John, for the report, and Jack, for the fix!

--
nosy: +erlendaasland
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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 421b543311c2eee67482bba894e475a2696423d5 by Miss Islington (bot) 
in branch '3.9':
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) 
(GH-27149)
https://github.com/python/cpython/commit/421b543311c2eee67482bba894e475a2696423d5


--

___
Python tracker 

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



[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

On Wed, Jul 14, 2021 at 08:10:51PM +, Aaron Meurer wrote:

> There are already pseudo-keywords in the language, in particular, 
> super()

super is not a pseudo-keyword. It's a regular builtin object that 
interacts with some (quite clever) compiler magic that occurs when 
classes are created.

https://stackoverflow.com/questions/19608134/why-is-python-3-xs-super-magic

The big difference here is that the magic behind super helps to prevent 
serious bugs in user code. super's magic isn't to reduce typing, it is 
to solve a number of real problems with the way people use inheritence.

--

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3048b8bd2a5c62b9c65ff4cf75399c7e732acdea by Miss Islington (bot) 
in branch '3.10':
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) 
(GH-27148)
https://github.com/python/cpython/commit/3048b8bd2a5c62b9c65ff4cf75399c7e732acdea


--
nosy: +pablogsal

___
Python tracker 

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



[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Marking as a release blocker. Mark, please take a look at your earliest 
convenience

--

___
Python tracker 

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



[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-14 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal
priority: normal -> release blocker

___
Python tracker 

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



[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal
priority: normal -> release blocker

___
Python tracker 

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



[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-07-14 Thread Irit Katriel


Change by Irit Katriel :


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



[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-14 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25690
pull_request: https://github.com/python/cpython/pull/27149

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington


miss-islington  added the comment:


New changeset 1ca27f264730abaaa48b3c5e7c6eafb45017b824 by Jack DeVries in 
branch 'main':
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145)
https://github.com/python/cpython/commit/1ca27f264730abaaa48b3c5e7c6eafb45017b824


--

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +25689
pull_request: https://github.com/python/cpython/pull/27148

___
Python tracker 

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



[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-07-14 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

The AMD64 Fedora Stable 3.x buildbot has not been red for one week. Closing 
this now. Victor/Pablo, please reopen if you disagree.

--
resolution:  -> not a bug
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



[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Mark Dickinson


Mark Dickinson  added the comment:

> the confusion that it can cause when there is a mismatch between the 
> interactive interpreter and noninteractive execution

I've witnessed similar confusion when teaching, using IPython. After 
discovering that you can do

In [1]: import pandas as pd
In [2]: cd datafiles
/Users/mdickinson/Desktop/datafiles
In [3]: df = pd.read_csv("experiment0023.csv")

it's then a common error to copy those lines to a script and expect them to 
work. We learned to recommend that IPython's automagic always be turned off, so 
that at least we could easily explain that "if it starts with a %, it's a magic 
command interpreted by the IPython layer; otherwise it's passed to Python".

If Python grew a similar interpreter layer (which seems like one possible 
solution here), I think we'd have the same issue of making it easy for users to 
distinguish "commands" intended for the interactive interpreter from those 
interpreted by the Python core. I could imagine ending up with users typing 
"%exit" or "!exit" to exit, but one you're adding an extra sigil to distinguish 
your commands from plain old references to Python objects it doesn't seem so 
different from having to type "exit()".

--

___
Python tracker 

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



[issue44479] Windows build doesn't regenerate some files

2021-07-14 Thread neonene


neonene  added the comment:

When building, some pull-requests invoke regeneration of test_frozenmain.h.
On PGO mode, MSVC tries to call instrumented python and stops with 
"pgort140.dll not found" error.
Would it be OK to run python in externals folder instead ?

--

___
Python tracker 

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



[issue44479] Windows build doesn't regenerate some files

2021-07-14 Thread neonene


Change by neonene :


--
nosy: +neonene
nosy_count: 7.0 -> 8.0
pull_requests: +25688
pull_request: https://github.com/python/cpython/pull/27146

___
Python tracker 

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



[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Aaron Meurer


Aaron Meurer  added the comment:

When talking about making exit only work when typed at the interpreter, 
something to consider is the confusion that it can cause when there is a 
mismatch between the interactive interpreter and noninteractive execution, 
especially for novice users. I've seen beginner users add exit() to the bottom 
of Python scripts, presumably because the interpreter "taught" them that you 
have to end with that. 

Now imagine someone trying to use exit as part of control flow 

if input("exit now? ") == "yes":
exit

Unless exit is a full blown keyword, that won't work. And the result is yet 
another instance in the language where users become confused if they run across 
it, because it isn't actually consistent in the language model. 

There are already pseudo-keywords in the language, in particular, super(), but 
that's used to implement something which would be impossible otherwise. Exiting 
is not impossible otherwise, it just requires typing (). But that's how 
everything in the language works. I would argue it's a good thing to reinforce 
the idea that typing a variable by itself with no other surrounding syntax does 
nothing. This helps new users create the correct model of the language in their 
heads.

--
nosy: +asmeurer

___
Python tracker 

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



[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread Jack DeVries


Jack DeVries  added the comment:

I have another question about the docstring in the source beneath 
logging.handlers.QueueHandler.prepare. It says:

> The object returned by this method is enqueued.

But, the prepare method doesn't do the enqueuing operation, it just prepares 
the record and returns it back, so it seems like this statement is not accurate?

--
nosy: +jack__d

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Jack DeVries


Jack DeVries  added the comment:

To my understanding, it's supposed to say "transaction".

The source code is here:

https://github.com/python/cpython/blob/a158b20019b50e3ece6e4743ec4e6ae8d818b690/Modules/_sqlite/connection.c#L1434-L1467

I've opened a PR to fix the typo.

--

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Jack DeVries


Change by Jack DeVries :


--
keywords: +patch
nosy: +jack__d
nosy_count: 3.0 -> 4.0
pull_requests: +25687
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27145

___
Python tracker 

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


wyz23x2  added the comment:

Changed to only 2).

--

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Zachary Ware


Change by Zachary Ware :


--
nosy: +zach.ware

___
Python tracker 

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread Jack DeVries


Jack DeVries  added the comment:

The current string is correct. The word "union" is actually an exception to the 
"a/an" rule. Here is more detail:

https://english.stackexchange.com/questions/266309/why-is-union-an-exception-to-the-a-an-rule

--
nosy: +jack__d

___
Python tracker 

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


Change by wyz23x2 :


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

___
Python tracker 

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



[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

I just retested my test case (see the coveragepy link below) with Python 3.10 
git head and coveragepy git head, and I'm still seeing the misses only in 
Python 3.10:

-- coverage: platform darwin, python 3.10.0-beta-4 ---
Name  Stmts   Miss Branch BrPart  Cover   Missing
-
flufl/lock/__init__.py5  0  0  0   100%
flufl/lock/_lockfile.py 253  0 80  399%   412->415, 
418->420, 535->exit
-


The lines in question:

if is_locked:
try:
os.unlink(self._lockfile)
except OSError as error:
if error.errno not in ERRORS:
raise
# Remove our claim file.
try:
os.unlink(self._claimfile)
except OSError as error:
if error.errno not in ERRORS:
raise

I'm not sure whether coveragepy needs to be updated or whether there are other 
lurking bugs in Python 3.10.  I'm reopening this issue until this is resolved.

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


New submission from wyz23x2 :

>>> isinstance(2, 1)
Traceback (most recent call last):
  ...
TypeError: isinstance() arg 2 must be a type, a tuple of types or a union
>>> issubclass(int, 1)
Traceback (most recent call last):
  ..
TypeError: issubclass() arg 2 must be a class, a tuple of classes, or a union.

1) It should be "an union", not "a union".
2) The punctuation marks aren't the same -- there's a comma before "or" in 
issubclass, but not isinstance(). And issubclass()'s ends with a period, which 
isn't the same with other builtins' messages.

--
components: Interpreter Core
messages: 397499
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Typos in error messages of isinstance() & issubclass()
type: behavior
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



[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Jack DeVries


Jack DeVries  added the comment:

@brandtbucher, I'm sorry for the miscommunication. I started working on this 
patch at the beginning of the week after message 397215... I'm a new 
contributor too, and I wasn't sure if I would be able to make something that 
worked, so I just kept my mouth shut. Then, all of a sudden, it came together 
and I had a (mostly) working patch.

I'm going to incorporate your review now; thank you for the feedback, and I'm 
very sorry for any toes I may have stepped on.

--

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a158b20019b50e3ece6e4743ec4e6ae8d818b690 by Serhiy Storchaka in 
branch 'main':
bpo-44632: Fix support of TypeVar in the union type (GH-27139)
https://github.com/python/cpython/commit/a158b20019b50e3ece6e4743ec4e6ae8d818b690


--

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +25685
pull_request: https://github.com/python/cpython/pull/27143

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +25684
pull_request: https://github.com/python/cpython/pull/27142

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +25683
pull_request: https://github.com/python/cpython/pull/27141

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b81cac05606c84958b52ada09f690463a3c7e949 by Serhiy Storchaka in 
branch 'main':
bpo-44635: Convert None to NoneType in the union type constructor (GH-27136)
https://github.com/python/cpython/commit/b81cac05606c84958b52ada09f690463a3c7e949


--

___
Python tracker 

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



[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread John M. Boger


New submission from John M. Boger :

In the documentation for sqlite3.executescript() in python 3.9+, the pseudoword 
"transation" appears.  I am reasonably sure "transaction" is meant, although it 
could be "translation".

--
assignee: docs@python
components: Documentation
messages: 397495
nosy: John M. Boger, docs@python
priority: normal
severity: normal
status: open
title: [sqlite3] Confusing typo "transation"
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



[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Łukasz Langa

Łukasz Langa  added the comment:

This caused an unintentional behavior change in the following code:

>>> {1: 2}.items() & {1: {2: 3}}.items()
set()

Before this change, Python 3.6 - 3.8 behaved like this instead:

>>> {1: 2}.items() & {1: {2: 3}}.items()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'dict'

Interestingly, this doesn't seem to have a negative effect on correctness as 
the silently omitted unhashable (k, v) pair is only omitted if it's different 
between the two dictionaries:

>>> {1: {2: 4}}.items() & {1: {2: 3}}.items()
set()
>>> {2: 1, 1: {2: 4}}.items() & {2: 1, 1: {2: 3}}.items()
{(2, 1)}

If it's the same, we still get an error in Python 3.9:

>>> {1: {2: 3}}.items() & {1: {2: 3}}.items()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'dict'
>>> {2: 1, 1: {2: 3}}.items() & {2: 1, 1: {2: 3}}.items()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unhashable type: 'dict'

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Brandt Bucher


Brandt Bucher  added the comment:

Thanks for the patch @jack__d! I'll try to find time to review it today.

I do wish you would have coordinated with me here before writing it, though. 
I'd already begun working on a patch with a few new contributors yesterday, as 
I mentioned in my comment.

In the future, please check in with those involved in the PR discussion first 
(*especially* if the issue is already "assigned"). We're doing this for fun, 
too. :)

--

___
Python tracker 

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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-14 Thread Steve Dower


Steve Dower  added the comment:

Thanks for the contribution!

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



[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-14 Thread Steve Dower


Steve Dower  added the comment:


New changeset 5fc784e28ab9cd02c30395d1973ff825b787efa2 by Miss Islington (bot) 
in branch '3.9':
bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent 
erroneous STDIN consumption (GH-27092)
https://github.com/python/cpython/commit/5fc784e28ab9cd02c30395d1973ff825b787efa2


--

___
Python tracker 

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



[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread Vinay Sajip


Change by Vinay Sajip :


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

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Steve Dower


Steve Dower  added the comment:

Apart from the duplication, is there some reason why this is a problem?

The name is used in a number of other places where the version number is very 
helpful. I'm not sure we can separate the variables in WiX.

--

___
Python tracker 

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



[issue33125] Windows 10 ARM64 platform support

2021-07-14 Thread Steve Dower


Steve Dower  added the comment:

I'm sure it will help, but official support will continue to be blocked by 
availability of CI/CD systems for first- and third-party packages/testing.

--

___
Python tracker 

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



[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Guido van Rossum


Guido van Rossum  added the comment:

You're right, it seems specific to built-in *classes* like those in datetime. 
We get the same with inspect.signature(int), since int is also a built-in class.

I don't know who maintains inspect, but it's not me. :-(

--

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Good question. It works correctly in list[T]. There is a tiny difference 
between implementations of the check in genericaliasobject.c and unionobject.c.

--

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Ken Jin


Ken Jin  added the comment:

Oh this is a fun one :).

> The code for recognizing TypeVars must be wrong. Is it also wrong in e.g. 
> list[T]?

list[T] is correct. I was pretty puzzled since I thought their code is nearly 
the same, but then I noticed a subtle difference -- GenericAlias checks for 
type(o).__module__ == "typing", while Union checks for o.__module__ == 
"typing", and o.__module__ is wherever the user defines it.

--

___
Python tracker 

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



[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This seems similar to https://bugs.python.org/issue40564

--
nosy: +jaraco, xtreak

___
Python tracker 

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



[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Mauricio Villegas

Mauricio Villegas  added the comment:

> Doesn’t it do that with any built in function?

Sorry. I did not include what is the behavior for other classes. An example 
could be calendar.Calendar. In this case the signature gives:

>>> from calendar import Calendar
>>> import inspect
>>> print(inspect.signature(Calendar.__init__))
(self, firstweekday=0)
>>> print(inspect.signature(Calendar))
(firstweekday=0)

Note that the signature gives firstweekday which is the only init parameter. 
Calendar is not implemented with __new__ so getting the signature would be for 
object, that does not include named parameters.

It also works fine when you implement a class with __new__. For example:

>>> class MyClass:
def __new__(cls, paramA, paramB=1):
obj = object.__new__(cls)
obj.paramA = paramA
obj.paramB = paramB
return obj
>>> print(inspect.signature(MyClass.__new__))
(cls, paramA, paramB=1)
>>> print(inspect.signature(MyClass))
(paramA, paramB=1)

I do think it is a bug specific to the datetime classes.

--

___
Python tracker 

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



[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Christian Steinmeyer


New submission from Christian Steinmeyer :

When executing the code below with the attached zip file (or any other that has 
one or more files directly at root level), I get a "ValueError: seek of closed 
file". It seems, the zipfile handle being part of the `TestClass` instance is 
being closed, when the `zipfile.Path` is garbage collected, when it is no 
longer referenced. Since `zipfile.Path` even takes a `zipfile.Zipfile` as an 
argument, I don't think it is intended? It surprised me at least.


```
import zipfile


class TestClass:
def __init__(self, path):
self.zip_file = zipfile.ZipFile(path)

def iter_dir(self):
return [each.name for each in zipfile.Path(self.zip_file).iterdir()]

def read(self, filename):
with self.zip_file.open(filename) as file:
print(file.read())

root = "zipfile.zip"
test = TestClass(root)
files = test.iter_dir()
test.read(files[0])
```

--
components: Library (Lib)
files: zipfile.zip
messages: 397483
nosy: christian.steinmeyer
priority: normal
severity: normal
status: open
title: zipfile.ZipFile is closed when zipfile.Path is closed
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50150/zipfile.zip

___
Python tracker 

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



[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Guido van Rossum


Guido van Rossum  added the comment:

The code for recognizing TypeVars must be wrong. Is it also wrong in e.g. 
list[T]?

--

___
Python tracker 

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



[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Guido van Rossum

Guido van Rossum  added the comment:

Doesn’t it do that with any built in function? Try Len or open, for example. I 
think that’s a feature, at least not a bug specific to date time.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue44637] Quoting issue on header Reply-To

2021-07-14 Thread R. David Murray


R. David Murray  added the comment:

There is definitely a problem here, though I see a different problem when I run 
it (AttributeError: 'Group' object has no attribute 'local_part', presumably 
because of the ':' not getting escaped correctly).  I believe it applies to any 
address header, not just Reply-To.  Unfortunately I don't have time to 
investigate the cause, at least right now.  An interesting first step on 
diagnosing it might be to produce a minimal example: start deleting special 
characters from inside that quoted string until you find the one (or ones) that 
is triggering it.

--

___
Python tracker 

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



[issue44627] Python terminal cmd line recall

2021-07-14 Thread jg


jg  added the comment:

Thanks, I didn't know about the F7 or F8 commands.

My 'Discard Old Duplicates' was already disabled (default?).

John G. Gammon -.  ..    ..  .-..  .-  -..  --  ..  .-.  .-  .-.  ..
This message and any attachments hereto may contain confidential and/or 
privileged information. If you are not the intended recipient or authorized to 
receive this for the intended recipient, please advise the sender immediately 
by reply e-mail and delete this message; you must not use, copy, disclose or 
take any other action based on this message or any information herein. Thank 
you for your cooperation.


From: report=bugs.python@roundup.psfhosted.org 
 on behalf of Eryk Sun 

Sent: Tuesday, July 13, 2021 16:55
To: jggam...@hotmail.com 
Subject: [issue44627] Python terminal cmd line recall

Eryk Sun  added the comment:

By default, reading input from the console uses the console's built-in 
command-line editor. You can clear the console input history with Alt+F7; 
display the history list with F7; navigate in the history list with the up and 
down arrow keys, even when the list isn't displayed; recall the first and last 
entries of the list with page up and page down; and cycle through matching 
command completions with F8.

Having said that, the new implementation of the console in Windows 10 has a bug 
in the "Discard Old Duplicates" history option [1]. Try disabling this option 
in the console's "Properties" dialog, which can be accessed from the Alt+Space 
control menu.

---
[1] https://github.com/microsoft/terminal/issues/4186

--
nosy: +eryksun

___
Python tracker 

___

--

___
Python tracker 

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



[issue44637] Quoting issue on header Reply-To

2021-07-14 Thread Baptiste


New submission from Baptiste :

Hello,

When using as_string() on a Reply-To header like the following:
msg['Reply-To'] = '"foo Research, Inc. Foofoo BarBar on Summer Special Friday: 
0.50 days (2021-02-31)" '

The double quote disappear, which lead to wrong header value

See attached file for example

--
components: email
files: Reply-To.py
messages: 397478
nosy: Abridbus, Julien Castiaux, barry, r.david.murray
priority: normal
severity: normal
status: open
title: Quoting issue on header Reply-To
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50149/Reply-To.py

___
Python tracker 

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



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread miss-islington


miss-islington  added the comment:


New changeset 05162993fe62e7fa3acebdd0062586b9bf63d46a by Erlend Egeberg 
Aasland in branch 'main':
bpo-42064: Move `sqlite3` exceptions to global state, part 2 of 2 (GH-26884)
https://github.com/python/cpython/commit/05162993fe62e7fa3acebdd0062586b9bf63d46a


--

___
Python tracker 

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



[issue44633] Indexing the union type can return NotImplemented

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +Union with TypeVar does not work as intended

___
Python tracker 

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



[issue44636] It is possible to create a 1-type union type

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +Union with TypeVar does not work as intended

___
Python tracker 

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



[issue44636] It is possible to create a 1-type union type

2021-07-14 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

typing.Union always collapsed to a simple type if it contains a single type.

>>> import typing
>>> typing.Union[int, typing.T][int]


But the builtin union type can contain a single type:

>>> (int | typing.T)[int]
int
>>> type((int | typing.T)[int])


--
components: Interpreter Core
messages: 397476
nosy: gvanrossum, kj, serhiy.storchaka
priority: normal
severity: normal
status: open
title: It is possible to create a 1-type union type
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +gvanrossum, kj

___
Python tracker 

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



[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko


Change by Pavel Moiseenko :


Added file: https://bugs.python.org/file50148/2021-07-14 13-50-19 Programs and 
Features.png

___
Python tracker 

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



[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There is a difference between typing.Union and the builtin union type in 
representing None in __args__:

>>> import typing
>>> typing.Union[int, None].__args__
(, )
>>> typing.Union[int, type(None)].__args__
(, )
>>> (int | None).__args__
(, None)
>>> (int | type(None)).__args__
(, )

The former converts None to NoneType, the latter leaves it as is, and only 
performs conversion in __instancecheck__ and __subclasscheck__. In the 
discussion for issue44606 it was proposed to convert None to NoneType in the 
union type constructor to make more uniform with typing.Union and simplify 
__instancecheck__ and __subclasscheck__.

--
components: Interpreter Core
messages: 397475
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Convert None to NoneType in the union type constructor
type: enhancement
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko


New submission from Pavel Moiseenko :

The version of the app is duplicated in the name of the app in the list of 
installed apps in "Settings - Apps - Apps & features" and "Control Panel - 
Programs - Programs and Features" in the version for Windows. Please remove the 
version number from the app name, as the version number is displayed next to 
the name in a separate field.

--
components: Windows
files: 2021-07-14 13-49-41 Settings.png
messages: 397474
nosy: paul.moore, rakleed, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Version is duplicated in name of app in list of installed apps
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50147/2021-07-14 13-49-41 Settings.png

___
Python tracker 

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



[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 794ff7d505f852dc4e0f94901dc7387afaead3bb by Mark Shannon in 
branch '3.10':
bpo-44616: Mark all clean up instructions at end of named exception block as 
artificial (GH-27109) (GH-27135)
https://github.com/python/cpython/commit/794ff7d505f852dc4e0f94901dc7387afaead3bb


--

___
Python tracker 

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



[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Ned Batchelder


Ned Batchelder  added the comment:

The original reporter of the coverage.py issue says they have a simpler 
reproducer: 
https://github.com/nedbat/coveragepy/issues/1188#issuecomment-879572874

--

___
Python tracker 

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



[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +25678
pull_request: https://github.com/python/cpython/pull/27135

___
Python tracker 

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



[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset e5862f79c16e28f1ec51d179698739a9b2d8c1d2 by Mark Shannon in 
branch 'main':
bpo-44616: Mark all clean up instructions at end of named exception block as 
artificial (GH-27109)
https://github.com/python/cpython/commit/e5862f79c16e28f1ec51d179698739a9b2d8c1d2


--

___
Python tracker 

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



[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-14 Thread Mauricio Villegas


Mauricio Villegas  added the comment:

I created another issue since the problem appears to be a bit different: 
https://bugs.python.org/issue44618

--

___
Python tracker 

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