[issue29318] Optimize _PyFunction_FastCallDict() for **kwargs

INADA Naoki report at bugs.python.org
Thu Jan 19 06:44:38 EST 2017


INADA Naoki added the comment:

Since mutating kw dict shouldn't affect caller's dict, caller and callee can't share the dict.

One possible optimization is using PyDict_Copy() to copy the dict.
It can reduce number of hash() calls.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29318>
_______________________________________


More information about the Python-bugs-list mailing list