From 561ca80cffd37445bac82ff820b8f52b98c50517 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 23 Feb 2017 18:26:43 +0100 Subject: Document why functools.partial() must copy kwargs (#253) Add a comment to prevent further attempts to avoid a copy for optimization. --- Objects/call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objects/call.c') diff --git a/Objects/call.c b/Objects/call.c index bc32090938..310b4a205f 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -317,8 +317,8 @@ _PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, if (nk != 0) { Py_ssize_t pos, i; - /* Issue #29318: Caller and callee functions must not share the - dictionary: kwargs must be copied. */ + /* bpo-29318, bpo-27840: Caller and callee functions must not share + the dictionary: kwargs must be copied. */ kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { return NULL; -- cgit v1.2.1