This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Certain uses of dictionary unpacking raise TypeError
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Mark.Shannon Nosy List: BTaskaya, Kodiologist, Mark.Shannon, lukasz.langa, miss-islington, pablogsal, terry.reedy
Priority: release blocker Keywords: 3.9regression, patch

Created on 2020-05-30 20:07 by Kodiologist, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20553 merged Mark.Shannon, 2020-05-31 11:42
PR 20569 merged miss-islington, 2020-06-01 09:45
Messages (4)
msg370400 - (view) Author: (Kodiologist) * Date: 2020-05-30 20:07
On Python 3.8.2, the below program runs without errors. On Python 3.9.0b1, it raises "TypeError: 'tuple' object is not callable" for the last line.

d1 = {'a': 1}
d2 = {'c': 3}
def fun(a, b, c):
    return a, b, c
print(fun(**d1, b='b', **d2))
msg370403 - (view) Author: Batuhan Taskaya (BTaskaya) * (Python committer) Date: 2020-05-30 20:22
@Kodiologist do you have a setup to try your cause before the commit 8a4cd700a7426341c2074a2b580306d2d60ec839?
msg370407 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2020-05-30 23:27
Thanks for the report.
I'm looking in to it.
msg370823 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-06-06 14:08
On Windows: works in installed 3.8.3, fails in 3.9.0b1. Works in freshly compiled 3.9 and master.  The patch seems to have worked.  Mark, is there any reason to not close this as fixed?
History
Date User Action Args
2022-04-11 14:59:31adminsetnosy: + pablogsal, lukasz.langa
github: 85007
2020-06-06 20:22:54pablogsalsetstatus: open -> closed
resolution: fixed
stage: resolved
2020-06-06 14:08:17terry.reedysetnosy: + terry.reedy

messages: + msg370823
stage: patch review -> (no value)
2020-06-01 09:45:33miss-islingtonsetkeywords: + patch
nosy: + miss-islington
pull_requests: + pull_request19809
2020-05-31 11:43:05Mark.Shannonsetkeywords: - patch
2020-05-31 11:42:30Mark.Shannonsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request19796
2020-05-30 23:27:45Mark.Shannonsetpriority: normal -> release blocker
assignee: Mark.Shannon
messages: + msg370407

stage: needs patch
2020-05-30 20:23:12BTaskayasetkeywords: + 3.9regression
components: + Interpreter Core
versions: + Python 3.10
2020-05-30 20:22:38BTaskayasetnosy: + Mark.Shannon
2020-05-30 20:22:00BTaskayasetmessages: + msg370403
2020-05-30 20:19:23BTaskayasetnosy: + BTaskaya
2020-05-30 20:07:09Kodiologistcreate