]> granicus.if.org Git - python/commit
Use _PyObject_CallMethodIdObjArgs()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 15:09:30 +0000 (16:09 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 15:09:30 +0000 (16:09 +0100)
commit55ba38a48097e4b21b406cc617df1481727f5c25
tree623f4fa4c83ecbdd1c0170399ca72741fbe0fb82
parent61bdb0d31924ec5fd12aa8dbe197002c57dfbf82
Use _PyObject_CallMethodIdObjArgs()

Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() in various modules when the format string was
only made of "O" formats, PyObject* arguments.

_PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and
doesn't have to parse a format string.
Modules/_pickle.c
Modules/arraymodule.c
Modules/cjkcodecs/multibytecodec.c
Python/_warnings.c
Python/import.c
Python/marshal.c