STINNER Victor added the comment: Serhiy Storchaka added the comment: > See issue27213. Maybe fast call with keyword arguments would avoid the > creation of a dict.
In a first verison of my implementation, I used dictionary items stored a a list of (key, value) tuples in the same PyObject* C array than positional parameters. But in practice, it's very rare in the C code base to have to call a function with keyword parameters, but most functions expect keyword parameters as a dict. They are implemented with PyArg_ParseTupleAndKeywords() which expects a dict. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27128> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com