Browse Source

Add a note explaining why dict_update() doesn't use METH_FASTCALL

Issue #29312.
pull/2/head
Victor Stinner 9 years ago
parent
commit
91f0d4aa2f
  1. 3
      Objects/dictobject.c

3
Objects/dictobject.c

@ -2347,6 +2347,9 @@ dict_update_common(PyObject *self, PyObject *args, PyObject *kwds,
return result;
}
/* Note: dict.update() uses the METH_VARARGS|METH_KEYWORDS calling convention.
Using METH_FASTCALL would make dict.update(**dict2) calls slower, see the
issue #29312. */
static PyObject *
dict_update(PyObject *self, PyObject *args, PyObject *kwds)
{

Loading…
Cancel
Save