From: Victor Stinner Date: Sat, 29 Oct 2016 07:05:39 +0000 (+0200) Subject: Issue #28544: Fix inefficient call to _PyObject_CallMethodId() X-Git-Tag: v3.6.0b3~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f94d1eee7499bc00fe78eab8e3d43cc381ab2407;p=python Issue #28544: Fix inefficient call to _PyObject_CallMethodId() "()" format string creates an empty list of argument but requires extra work to parse the format string. --- diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 6278b25693..18dd37b5a8 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -152,7 +152,7 @@ future_init(FutureObj *fut, PyObject *loop) Py_CLEAR(fut->fut_loop); fut->fut_loop = loop; - res = _PyObject_CallMethodId(fut->fut_loop, &PyId_get_debug, "()", NULL); + res = _PyObject_CallMethodId(fut->fut_loop, &PyId_get_debug, NULL); if (res == NULL) { return -1; }