[Python-ideas] Bytecode for calling function with keyword arguments

Chris Angelico rosuav at gmail.com
Thu Apr 21 12:00:35 EDT 2016

On Fri, Apr 22, 2016 at 1:52 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 2. Since the number of keyword arguments is obtained from tuple's size, new
> CALL_FUNCTION opcode needs only the number of positional arguments. It's
> argument is simpler and needs less bits (important for wordcode).

What about calls that don't include any keyword arguments? Currently,
no pushing is done. Will you have two opcodes, one if there are kwargs
and one if there are not?

Also: How does this interact with **dict calls?


More information about the Python-ideas mailing list