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 <rep...@bugs.python.org>
<http://bugs.python.org/issue2292>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to