]> granicus.if.org Git - python/commit
_asyncio uses _PyObject_CallMethodIdObjArgs()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Dec 2016 08:05:11 +0000 (09:05 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Dec 2016 08:05:11 +0000 (09:05 +0100)
commitcb2128cada922741381bcb6ee73a33842a9a43db
tree2bb8be4f82d94b81d5e590c81115df7414578be8
parent0bf590627b14b9ffab4a24c49a8e21b7ff49886d
_asyncio uses _PyObject_CallMethodIdObjArgs()

Issue #28920: Replace _PyObject_CallMethodId(obj, meth, "O", arg) with
_PyObject_CallMethodIdObjArgs(obj, meth, arg, NULL) to avoid
_PyObject_CallMethodId() special case when arg is a tuple.

If arg is a tuple, _PyObject_CallMethodId() unpacks the tuple: obj.meth(*arg).
Modules/_asynciomodule.c