Kaydet (Commit) f94d1eee authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst 684ef2c8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment