[issue2292] Missing *-unpacking generalizations
Joshua Landau
report at bugs.python.org
Fri Jan 23 00:41:13 CET 2015
Joshua Landau added the comment:
We wouldn't actually need to raise it "from" somewhere else; the line numbering and frame are already correct. The only difficulty is that the traceback currently says
# func(a=1, **{'a': 1})
TypeError: func() got multiple values for keyword argument 'arg'
↑↑↑↑
To do this from the UNPACK opcode would require knowing where the function is in order to print its name. (We also need to know whether to do the check at all, so we'd be hijacking some bits the UNPACK opcode anyway.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2292>
_______________________________________
More information about the Python-bugs-list
mailing list