]> granicus.if.org Git - python/commit
Use _PyObject_CallMethodIdObjArgs()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Dec 2016 23:36:19 +0000 (00:36 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Dec 2016 23:36:19 +0000 (00:36 +0100)
commit7e42541d08b6cc103b892c1cb70ea68c66751078
tree082013fb3c953cb156f6591cbc3bcca6db787ca8
parent4c38154a432885a933b539c2682e66caaf440117
Use _PyObject_CallMethodIdObjArgs()

Issue #28915: Replace _PyObject_CallMethodId() with
_PyObject_CallMethodIdObjArgs() when the format string only use the format 'O'
for objects, like "(O)".

_PyObject_CallMethodIdObjArgs() avoids the code to parse a format string and
avoids the creation of a temporary tuple.
Modules/_io/textio.c
Objects/descrobject.c
Python/sysmodule.c