]> granicus.if.org Git - python/commit
Use _PyObject_CallMethodIdObjArgs() in _io
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 14:39:28 +0000 (15:39 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Dec 2016 14:39:28 +0000 (15:39 +0100)
commit61bdb0d31924ec5fd12aa8dbe197002c57dfbf82
tree8b2b7b6564c1997cea13060a769ddc56240f45c0
parent20401deae219ed38e8a7e9f960ef3b0dc3850dce
Use _PyObject_CallMethodIdObjArgs() in _io

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/_io/bufferedio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/_io/winconsoleio.c