]> granicus.if.org Git - python/commit
Use PyObject_CallFunctionObjArgs()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 15:22:32 +0000 (16:22 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 15:22:32 +0000 (16:22 +0100)
commit5abaa2b139fb75a76933fb5437e09021fd080fae
tree6c58da8c7648f939bcb5b8e50755cf9013d8e00f
parent55ba38a48097e4b21b406cc617df1481727f5c25
Use PyObject_CallFunctionObjArgs()

Issue #28915: Replace PyObject_CallFunction() with
PyObject_CallFunctionObjArgs() when the format string was only made of "O"
formats, PyObject* arguments.

PyObject_CallFunctionObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Modules/_elementtree.c
Objects/abstract.c
Objects/descrobject.c