]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145876: Do not mask AttributeErrors raised during dictionary unpacking (GH-145906)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 26 Mar 2026 13:48:57 +0000 (15:48 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2026 13:48:57 +0000 (13:48 +0000)
commit0e543055b01203b7a26424675913de3284375a40
treebc9c51d58024a6422412b7d910f0b3d66306bc17
parente1d48237973f0257f84cb5682014b38d18f3d76d
gh-145876: Do not mask AttributeErrors raised during dictionary unpacking (GH-145906)

AttributeErrors raised in keys() or __getitem__() during
dictionary unpacking ({**mymapping} or func(**mymapping)) are
no longer masked by TypeError.
Lib/test/test_extcall.py
Lib/test/test_unpack_ex.py
Misc/NEWS.d/next/Core_and_Builtins/2026-03-13-12-24-17.gh-issue-145876.LWFO2K.rst [new file with mode: 0644]
Modules/_testinternalcapi/test_cases.c.h
Python/bytecodes.c
Python/ceval.c
Python/executor_cases.c.h
Python/generated_cases.c.h