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

Issue #19512: _count_elements() of _collections reuses PyId_get identifier

instead of literal "get" string
üst d9d0419a
......@@ -1816,7 +1816,7 @@ _count_elements(PyObject *self, PyObject *args)
Py_DECREF(key);
}
} else {
bound_get = PyObject_GetAttrString(mapping, "get");
bound_get = _PyObject_GetAttrId(mapping, &PyId_get);
if (bound_get == NULL)
goto done;
......
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