◐ Shell
clean mode source ↗

gh-145876: Do not mask AttributeErrors raised during dictionary unpacking by serhiy-storchaka · Pull Request #145906 · python/cpython

… unpacking

AttributeErrors raised in keys() or __getitem__() during
dictionary unpacking ({**mymapping} or func(**mymapping)) are
no longer masked by TypeError.

NickCrews

@serhiy-storchaka

@serhiy-storchaka

clin1234 pushed a commit to clin1234/cpython that referenced this pull request

Apr 16, 2026
… unpacking (pythonGH-145906)

AttributeErrors raised in keys() or __getitem__() during
dictionary unpacking ({**mymapping} or func(**mymapping)) are
no longer masked by TypeError.

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
… unpacking (pythonGH-145906)

AttributeErrors raised in keys() or __getitem__() during
dictionary unpacking ({**mymapping} or func(**mymapping)) are
no longer masked by TypeError.