summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-23 17:26:43 (GMT)
committerGitHub <noreply@github.com>2017-02-23 17:26:43 (GMT)
commit561ca80cffd37445bac82ff820b8f52b98c50517 (patch)
tree54cb4548eb710ebda5e6cc5e896ef1f9ac2dc3ad /Objects
parent324c5d8ca6ed1c964d3b20e5762139ec65c7827c (diff)
downloadcpython-561ca80cffd37445bac82ff820b8f52b98c50517.zip
cpython-561ca80cffd37445bac82ff820b8f52b98c50517.tar.gz
cpython-561ca80cffd37445bac82ff820b8f52b98c50517.tar.bz2
Document why functools.partial() must copy kwargs (#253)
Add a comment to prevent further attempts to avoid a copy for optimization.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/call.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/call.c b/Objects/call.c
index bc32090..310b4a2 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;