]> granicus.if.org Git - python/commit
Use _PyObject_CallMethodIdObjArgs() in _elementtree
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 14:26:00 +0000 (15:26 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 14:26:00 +0000 (15:26 +0100)
commitf561634c82aaeb3aa60dcd2f1e2878f998d9f501
tree2944bf6d83a1c7ad9f22738d40daee25c408c342
parent56707648120de77a5167c363cc4104dfe2cef5be
Use _PyObject_CallMethodIdObjArgs() in _elementtree

Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() 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/_elementtree.c