[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

Jeroen Demeyer report at bugs.python.org
Thu May 16 05:21:33 EDT 2019


New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:

Document and add an assertion that the "keyword names" tuple of the CALL_FUNCTION_KW opcode must be non-empty. This is already the case with the current compiler: if there are no keyword arguments in a call, then the CALL_FUNCTION_KW opcode is not used.

In light of https://github.com/python/peps/pull/1049 it's good to make this an explicit guarantee.

----------
components: Interpreter Core
messages: 342631
nosy: Mark.Shannon, jdemeyer, petr.viktorin, vstinner
priority: normal
severity: normal
status: open
title: CALL_FUNCTION_KW opcode: keyword names must be non-empty
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36936>
_______________________________________


More information about the Python-bugs-list mailing list